Replacement motherboard = no network?

Linux udev is great but if you forget about it, it’s a pain. When you replace a motherboard/network card in a machine, you just expect the primary network device to be eth0 again, but with udev it’s not going to do it.

Ubuntu uses a file at this location to store the udev rules for network cards:

/etc/udev/rules.d/70-persistent-net.rules

example of what’s in there:

# PCI device 0x14e4:/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="28:92:4a:30:5a:fb", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Remove all the rules in the file, reboot and it should sort you out… there’s more complex ways of dealing with it, but I like hitting things with hammers. 🙂



#Linux #tips #udev