Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 not found :( predictable names? enpos31f6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Rossy65
n00b
n00b


Joined: 14 Sep 2016
Posts: 27

PostPosted: Wed Sep 14, 2016 5:38 pm    Post subject: eth0 not found :( predictable names? enpos31f6 Reply with quote

I just got my Gentoo build to boot but the eth0 network was not found.

I took care to make sure the proper e1000 intel driver was built in the kernel, but this didn't help.

Turns out there is something out there called udev, which renames your eth interfaces (and other devices). I must have stumbled into changing a config in my kernel that turns this on because the livecd doesn't seem to do this.

As a result, my network is down.

Anyone know the two options:
1) is there a config setting to turn this off? Get back to eth0 enumeration?
2) with it on, what does one do to make sure eth0 is replaced by the new string. Do we just plant a soft link?
What's the best practice?
Thanks!
_________________
Remember, Wherever you go, there you are. --Buckaroo Banzai
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13848

PostPosted: Thu Sep 15, 2016 1:18 am    Post subject: Reply with quote

No, you did not change anything to cause this problem. As of several years ago, udev defaults to mangling your interface names unless you affirmatively tell it not to. This is the Predictable Network Interface Names feature and was discussed rather routinely when it first showed up and started breaking network configurations. There are two Gentoo news items about this: 2013-03-29-udev-upgrade and later 2014-02-25-udev-upgrade. In short, you can disable this misfeature by adding net.ifnames=0 to your kernel command line, which udev will parse and discover that you want it to leave you alone.
Back to top
View user's profile Send private message
Rossy65
n00b
n00b


Joined: 14 Sep 2016
Posts: 27

PostPosted: Thu Sep 15, 2016 11:04 pm    Post subject: Thanks Reply with quote

Thanks for the tip.
I ended up just planting a link as this was in line with the HANDBOOK "use your device name" in fine print.
I did see some of the other override options in the google search.
_________________
Remember, Wherever you go, there you are. --Buckaroo Banzai
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum