After sabayon image upgrade eth0 never comes up during boot

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

arnaud
Young Hen
Posts: 20
Joined: Fri Jul 25, 2014 23:08

After sabayon image upgrade eth0 never comes up during boot

Post by arnaud » Fri Jul 25, 2014 23:34

I just upgraded our sabayon image and notice that eth0 never comes up during the boot process. After some investigation i noticed that i have to run dhcpcd manually for eth0 to get an IP and for the routing table to be configured etc..

dmesg shows that the correct kernel module "e1000" gets loaded but still the dhcp client never starts. Any ideas why this could be happening?

User avatar
albfneto
Sagely Hen
Posts: 1842
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil
Contact:

Re: After sabayon image upgrade eth0 never comes up during b

Post by albfneto » Sat Jul 26, 2014 0:39

my idea is that the DHCP service cannot be started by systemd.

please, post here the output of this command:

Code: Select all

systemctl status dhcp.service AND/OR
systemctl statua dhcpcd.service
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE

arnaud
Young Hen
Posts: 20
Joined: Fri Jul 25, 2014 23:08

Re: After sabayon image upgrade eth0 never comes up during b

Post by arnaud » Mon Jul 28, 2014 5:36

Here is the output of the command

Code: Select all

# systemctl status dhcpcd.service
dhcpcd.service - Lightweight DHCP client daemon
Loaded: loaded (/usr/lib64/systemd/system/dhcpcd.service; disabled)
Active: inactive (dead)


Can't we rely on OpenRC for this though?

svantoviit
Old Dear Hen
Posts: 716
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: After sabayon image upgrade eth0 never comes up during b

Post by svantoviit » Mon Jul 28, 2014 11:12

arnaud wrote:Can't we rely on OpenRC for this though?

Here's your answer:

Code: Select all

$ equo notice sabayon-weekly
╠ [0] [Mon, 29 Jul 2013 17:09:52 +0000] Title: Important: systemd replaces OpenRC as our main init system
╠ [1] [Sat, 09 Nov 2013 12:00:33 +0000] Title: GNOME users: please migrate to systemd now!
╠ [2] [Sat, 09 Nov 2013 12:03:06 +0000] Title: Important: Sabayon funding in 2013 and 2014
╠ [3] [Wed, 26 Feb 2014 13:46:17 +0000] Title: Running OpenRC is now unsupported
╠ [-1] Exit
Choose one by typing its identifier: 3
╠ [3] [Wed, 26 Feb 2014 13:46:17 +0000] Title: Running OpenRC is now unsupported
╠ Content:

Starting from the beginning of March 2014, running OpenRC is no
longer supported. In February 2013 we began rolling out systemd.
Now, after one solar year, we are happy to announce that the
migration period is over, and we will be no longer supporting
systems running openrc.
If you installed your system from Sabayon 13.04 onwards, you
should be already set. If you did not migrate to systemd, your
system may stop working properly if you apply all the updates.
To know if you are running systemd, open a terminal and type
"cat /proc/1/stat", if you read "(systemd)" you will be fine.
For support, see URL.

╠ Link: https://forum.sabayon.org

arnaud
Young Hen
Posts: 20
Joined: Fri Jul 25, 2014 23:08

Re: After sabayon image upgrade eth0 never comes up during b

Post by arnaud » Mon Jul 28, 2014 19:25

Thanks,

So i was able to enable NetworkManager for systemd wich works well for having eth0 get an IP via dhcp - but then configuring a static ip seems impossible using NetworkManager. Apparently "NetworkManager doesn't currently support (eg multiple network connections, static ip)" https://wiki.sabayon.org/index.php?titl ... king_Guide

How can i go about configuring my host/system so that i can set up static IPs and also multiple network connections?

Stupot
Sagely Hen
Posts: 1629
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: After sabayon image upgrade eth0 never comes up during b

Post by Stupot » Mon Jul 28, 2014 20:17

I'm confused.

If you wanted to be starting up dhcpcd.service, why are you starting up NetworkManager now instead? Or are you starting up both.

Sabayon changed it's init system from OpenRC to systemd, but the applications themselves didn't change, only how they are started up and controlled. If you had previously been using dhcpcd in openRC, all you need to do is enable it in systemd and doing any sort of configuring it was missing.

arnaud
Young Hen
Posts: 20
Joined: Fri Jul 25, 2014 23:08

Re: After sabayon image upgrade eth0 never comes up during b

Post by arnaud » Mon Jul 28, 2014 21:17

Basically I don't want to use NetworkManager as it doesn't support static IP configuration. My question is how can i configure systemd to solely use the baselayout/original Gentoo networking scripts (obviously this being on the latest Sabayon image)? My goal is to be able to configure static IPs and not use NetworkManager.

Stupot
Sagely Hen
Posts: 1629
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: After sabayon image upgrade eth0 never comes up during b

Post by Stupot » Tue Jul 29, 2014 3:17

I would suggest trying to follow along with this wiki: https://wiki.archlinux.org/index.php/Ne ... IP_address

Systemd should pretty much work on Sabayon the same way it works for Arch.

From what I read on this gentoo thread, it sure seems that way anyway: http://forums.gentoo.org/viewtopic-t-98 ... art-0.html

arnaud
Young Hen
Posts: 20
Joined: Fri Jul 25, 2014 23:08

Re: After sabayon image upgrade eth0 never comes up during b

Post by arnaud » Tue Jul 29, 2014 6:41

1- I tried what the links suggested. I set up the custom network.service (for setting the static IP) - then ran systemctl enable network.service to enable it but then after reboot this service is never started i always have to manually start it. Not sure what i am doing wrong... Please help

2- Also, is it possible in the latest image of Sabayon to not rely on Systemd at all for static IP/network configuration? Can we do it the way it used to be with OpenRC using the original Gentoo networking scripts?

Thanks.

svantoviit
Old Dear Hen
Posts: 716
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: After sabayon image upgrade eth0 never comes up during b

Post by svantoviit » Tue Jul 29, 2014 16:06

arnaud wrote:2- Also, is it possible in the latest image of Sabayon to not rely on Systemd at all for static IP/network configuration? Can we do it the way it used to be with OpenRC using the original Gentoo networking scripts?

Starting from the beginning of March 2014, running OpenRC is no longer supported. In February 2013 we began rolling out systemd.
Now, after one solar year, we are happy to announce that the migration period is over, and we will be no longer supporting systems running openrc.


arnaud, just forget about openrc.

Post Reply