View previous topic :: View next topic |
Author |
Message |
aeronova n00b
Joined: 23 Jun 2003 Posts: 14
|
Posted: Fri Aug 08, 2014 7:37 am Post subject: network interface problem related to udev and eudev |
|
|
Hello all,
I need some help with not-running network interfaces after resolving a conflict between udev and eudev. After a fresh installation, I bumped into a blocking issue saying "sys-fs/udev is blocking sys-fs/eudev." So I googled and found a post (https://forums.gentoo.org/viewtopic-t-966786-start-0.html), which says
emerge -Ca udev
emerge -1a eudev
etc-update
emerge @preserved-rebuild
Note that I also recompiled the kernel to enable CONFIG_FHANDLE. Everything went smooth, but after rebooting my system, I found 1) the names of my network interfaces are changed and 2) they are not running. Originally the network interfaces are denoted by enp0s25 and enp6s0, and now they are shown as eth1 and eth0, respectively. What bugs me is none of them is running. I used the installation CD to chroot then install udev again, but still the network devices are not running. I'd appreciate if if someone could help me with this problem.
Best regards. |
|
Back to top |
|
|
wraeth Retired Dev
Joined: 08 May 2007 Posts: 72 Location: Australia
|
Posted: Fri Aug 08, 2014 9:10 am Post subject: |
|
|
When you first built the system, the devices were probably named with the predictable device naming schema used by sys-fs/udev and sys-apps/systemd. When you've changed to sys-fs/eudev, it's fallen back to the traditional device naming.
If you want to revert to using predictable device naming, you need to re-emerge sys-fs/eudev with the 'rule-generator' use flag switched (I think you need to disable it, but I can't remember exactly which way around it is). Once you've done that and rebooted, your network devices will return to their original names and should start at boot.
If you want to keep the legacy device naming scheme, then you need to update your network init scripts to match the different naming by removing the net.<iface> init scripts and recreating them with the new names:
Code: | cd /etc/init.d
rc-update del net.enp0s25 default
rc-update del net.enp6s0 default
rm net.enp0s25 net.enp6s0
ln -s net.lo net.eth0
ln -s net.lo net.eth1
rc-update add net.eth0 default
rc-update add net.eth1 default |
|
|
Back to top |
|
|
aeronova n00b
Joined: 23 Jun 2003 Posts: 14
|
Posted: Fri Aug 08, 2014 12:14 pm Post subject: |
|
|
Thanks for the instructions, wreath!
Somehow I fixed the problem by updating system and world as follows:
Code: |
emerge -uDv system
emerge -uDv world
emerge --update --newuse --deep @world
emerge --depclean
|
I also found a post relevant to my udev & eudev problem: https://forums.gentoo.org/viewtopic-p-7585260.html#7585260
According to the post, I think what you meant by the use flag "rule-generator" is
Code: |
USE="-rule-generator" emerge eudev
|
I haven't tried it since my network is fine now as it is. Thanks again for your help, wreath. |
|
Back to top |
|
|
|
|
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
|
|