Posts

Showing posts from April, 2009

Naming of ethernet devices on Debian

If you change network cards in Debian, the new card will get a new "ethX" name, assuming that perhaps you want to put the old one back one day and keep the configuration. Sometimes this isn't the case and you don't want to have ethernet devices named eth5 or similar. A simple fix, the file: /etc/udev/rules.d/70-persistent-net.rules has the rules to persistently name your ethernet interfaces, simply edit that and remove any entries that are no longer needed; renaming the other ones to your needs. The file had the driver and MAC address so they are simple to find. Here's an example (with the macs slightly changed): # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:14:22:72:d7:2d", NAME="eth0" # PCI device 0x8086:0x1076 (e1000) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:14:22:72:d7:2c", NAME="eth1" # USB device 0b95:7720 (asix) SUBSYSTEM==&