Static IP Address [Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Static IP Address [Solved]

Postby Lazydog » Sun Apr 30, 2017 3:25

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.
Last edited by Lazydog on Sun Apr 30, 2017 21:49, edited 1 time in total.
--
Regards
Robert


Image
User avatar
Lazydog
Simple Hen
 
Posts: 75
Joined: Sat Sep 15, 2012 3:21

Re: Static IP Address

Postby albfneto » Sun Apr 30, 2017 3:59

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.
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1823
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: Static IP Address

Postby Lazydog » Sun Apr 30, 2017 21:49

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.
--
Regards
Robert


Image
User avatar
Lazydog
Simple Hen
 
Posts: 75
Joined: Sat Sep 15, 2012 3:21


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest