Fedora eth0 to eth1

If you ever find your self wondering why your replacement ethernet NIC is being renamed from eth0 -> eth1, then check out the file /etc/udev/rules.d/70-persistent-net.rules.

It contains lines like the following…

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
 
# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:40:63:eb:9c:10", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Obviously, you need to change the MAC address in there to get it all working.

/sbin/ifconfig eth1

There maybe a tool for this, but I have not had time to go digging for that yet ..

Posted by on November 21, 2009 in Brain Purge ..

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments are closed.