Page 1 of 1

Static IP Address [Solved]

Posted: Sun Apr 30, 2017 3:25
by Lazydog
Hello,

I recently installed Sabayon on my desktop and I'm finding it impossible to figure out how to set a static IP Address.
What are the procedures for stetting a static IP Address? shystem is Sabayon Linux amd64 17.04

Thank you.

Re: Static IP Address

Posted: Sun Apr 30, 2017 3:59
by albfneto
In the University, i have Static IP.
Generally, the Network connection can be setted in the NetworkManager Client from your Graphical Environment.

But in many cases, prior, you should deactivate and remove the DHCP support....:

Code: Select all

# sudo equo rm --configfiles --nodeps dhcp dhcpcd


then, configure "via" you graphical interface. Sometimes, for me, it was necessary to change the NetworkManager, substitute it by the WICD package.

Re: Static IP Address

Posted: Sun Apr 30, 2017 21:49
by Lazydog
Hello albfneto,

Thank you for the reply. I have found a way to do it that I like a whole lot better.

Here are the steps I've taken:

1. Edit the following file. If it doesn't exist then you should create it.

Code: Select all

/etc/systemd/network/25-wired.network
Add the following to your or modify to match your system

Code: Select all

[Match]
Name=enp0s31f6 <[i]*** This should be your interface that the network is connected to ***[/i]>

[Network]
Address=192.168.15.100/24 <[i]*** Your network IP Address ***[/i]>
Gateway=192.168.15.1
2. We need to stop NetwokManager and start systemd-networkd with the following:

Code: Select all

systemctl stop NetworkManager
systemctl enable systemd-networkd
systemctl start systemd-networkd
3 Reboot

You will now have a static IP Address.