Changing identifiers of network interfaces using udev rules (Debian / Unstable)
English, Hardware, Howto, Linux May 10th, 2007When I installed the new mainboard into my server, I came across a problem, the new onboard ethernet device was identified by eth9 instead of eth0. There is a very easy way to fix that, by slightly editing the udev rules for network interfaces. Choose your preferred editor and edit the z25_persistent-net.rules file:
$EDITOR /etc/udev/rules.d/z25_persistent-net.rules
Now find the network interface(s) whose identifier you wish to change, the line of each NIC/Firewire/etc device should look a bit like this:
# PCI device 0×1100:0×4265 (woot)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:13:32:bc:8a:21″, NAME=”eth9″
The only parameter you got to change in this case is the NAME of the NIC, here it’s called eth9.
# PCI device 0×1100:0×4265 (woot)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:13:32:bc:8a:21″, NAME=”eth0″
In order to apply the settings you got to restart udev and probably networking, however that did not work for me so that I had to reboot my server.





