Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why has my network interface name changed?
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
noddyt
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2006
Posts: 79

PostPosted: Thu Sep 10, 2015 4:20 pm    Post subject: Why has my network interface name changed? Reply with quote

Hi

My network interface (net.enp14s0) failed to start up on boot today on my laptop. It's had gentoo on it for ~5 years, updated weekly.
The error:

Code:

* Bringing up interface enp14s0
*   ERROR: interface enp14s0 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* Error: net.enp14s0 failed to start


I haven't made any changes to my kernel since may.

So why has udev changed the name of my network card.

Code:
$ ls /sys/class/net/
lo p2p1 wlp20s0

(I don't use wlp20s0 wireless card)

Reading the gentoo x86 handbook on network interface naming says that name is from ID_NET_NAME_PATH. But checking that produces:
Code:
$ udevadm test-builtin net_id /sys/class/net/p2p1 2>/dev/null
ID_NET_NAME_MAC=[my mac address]
ID_OUI_FROM_DATABASE=[company name]
ID_NET_NAME_PATH=enp14s0


So the interface name shouldn't have changed according to that.

Setting up the network connection for net.p2p1 works but I don't like unnecessary changes.

I'm just trying to understand what's happened here and if this may be a bug.

Thanks
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Sep 14, 2015 7:31 pm    Post subject: Reply with quote

Quote:
So why has udev changed the name of my network card.

The unflattering truth is that "persistent network interface names" is anything but. I'd add something about udev's upstream developers being clueless idiots, but we have about ten active 500-post threads for that very subject already.

Just disable that antifeature entirely - your ethernet and wifi will then be named eth0 and wlan0 respectively and *stay* that way.
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