Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
network interface problem related to udev and eudev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
aeronova
n00b
n00b


Joined: 23 Jun 2003
Posts: 14

PostPosted: Fri Aug 08, 2014 7:37 am    Post subject: network interface problem related to udev and eudev Reply with quote

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
View user's profile Send private message
wraeth
Developer
Developer


Joined: 08 May 2007
Posts: 71
Location: Australia

PostPosted: Fri Aug 08, 2014 9:10 am    Post subject: Reply with quote

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
View user's profile Send private message
aeronova
n00b
n00b


Joined: 23 Jun 2003
Posts: 14

PostPosted: Fri Aug 08, 2014 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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