Good old eth0 got renamed
September 28, 2016 —
BarryK
Running Quirky on the Odroid XU4, when I launched SNS (Simple Network Setup), it identified the network interface as 'enx*' (where the * is a long string), instead of the old familiar 'eth0'.
Explanation of why is given here:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
How to get 'eth0' back is explained here:
http://raspberrypi.stackexchange.com/questions/43560/raspberry-pi-3-eth0-wrongfully-named-enx
The kernel knows the interfaces as eth0, eth1, etc., and the culprit that changes the names is the udev rule:
/lib/udev/rules.d/80-net-name-slot.rule
The udev package (actually, 'eudev' in the case of Quirky, 'systemd' for most other distros) provides the rules in /lib/udev/rules.d.
Any of these can be overridden in /etc/udev/rules.d.
However, in Quirky I don't just use the rules from the udev package, instead I have a cutdown set in /etc/udev and /lib/udev.
So, I have just removed 80-net-name-slot.rules.
I have just finished compiling the 3.10.103 kernel for the XU4, running it right now. And, oddly, the old naming has come back anyway, I didn't have to remove that rule.
But, I have removed it, so it won't be in woofQ builds.
Tags: linux