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

David Vincent dvincent at sleepdeprived.ca
Tue Jan 29 17:22:11 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Derek Broughton wrote:
> 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?
>>
> 
> Create a file /etc/iftab with the mapping you want - like:
>  eth0 mac 00:00:00:1a:73:5b arp 1
>  eth1 mac 00:1b:24:4b:5c:ff arp 1
> 
> Then run /usr/lib/udev/migrate-iftab.pl (which is a standard part of udev)
> 
> I can't believe somebody went to the trouble of replacing a perfectly simple
> config file with a really hard to maintain udev rule!

/etc/iftab has been replaced by /etc/udev/rules.d/70-persistent-net.rules

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

- -d


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHn2DDfpRzWFIV0XMRAsE9AJ4qjkURP4pt+F19KgUoUU3LrDkBtgCdES3+
yYKs2+t5K/kH/dO0l1CV6kw=
=Qxiv
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list