how do I lock physical NIC's to static device names?

Nils Kassube kassube at gmx.net
Tue Jan 29 16:18:23 UTC 2008


stan wrote:
> I poked around a bit in /etc/udev and /lib/udev, and frankly I am
> confused. I want to absolutely lock down a mapping between MAC
> addresses and device names on UBUNTU 7.10 installations. can some kind
> soul point me to how to do this?

My /etc/udev/rules.d/70-persistent-net.rules looks like this:

# PCI device 0x10ec:0x8029 (ne2k-pci)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:20:18:2e:9f:f1", NAME="eth1"

# PCI device 0x14e4:0x167b (tg3)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:30:05:fe:b9:b1", NAME="eth0"


Nils




More information about the ubuntu-users mailing list