Tuesday, December 31, 2013

eth0 does not exist ( renamed in enp2s0 )

I upgraded my gentoo and I had a problem with internet connection.
The following command told me that eth0 didn't exist :

/etc/init.d/net.eth0 restart

I checked if my network card exists by making :

dmsg -v | less

It exists because I had a line similary to:

02:00:00 Ethernet controller : .....

So, I checked all my network interface  :

ls /sys/class/net 

In the result list, there was no eth0 interface. However, there was enp2s0 interface.
I solved my problem by creating a symbolic link ( you could see this good wiki : https://wiki.archlinux.org/index.php/Dhcpcd#Dynamic_IP_address )

ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules

No comments:

Post a Comment