/etc/udev/rules.d/70-persistent-net.rules
Matthew Carpenter
mcarpenter at intelguardians.com
Mon Dec 31 11:32:49 PST 2007
fyi,
For those of you who may wish to build an ubuntu system with the hard-drive
in one machine, then move it to another (it works rather well, actually), or
if you simply want to manipulate how your network interfaces show up....
Instead of the "iftab" file which identifies which MAC address should be
which interface... ubuntu recently modified this to place the setup directly
into a udev config file...
/etc/udev/rules.d/70-persistent-net.rules
It's pretty self-explanatory once you look at it for a sec.
Mine looks like this (post-modification):
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.
## PCI device 0x8086:0x109a (e1000)
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:15:58:7b:23:95", NAME="eth0"
## PCI device 0x8086:0x4227 (ipw3945)
#SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:13:02:b9:e6:b3", NAME="eth1"
# PCI device 0x8086:0x109a (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:36:da:dc:fd", NAME="eth0"
# PCI device 0x8086:0x4222 (ipw3945)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:19:d2:22:45:7d", NAME="eth1"
Notice that the original machine's NICs are mentioned first. The current
machine's NICs were then mentioned as different interfaces. I commented out
the originals, and changed the existing NICs to the names I expect...
--
Matthew Carpenter
mcarpenter at intelguardians.com
http://www.intelguardians.com
PGP Fingerprint:
87EB 54A8 FB42 0A0E B8AE CDA7 FF99 2A64 E70F 4466
hkp://wwwkeys.pgp.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mailman.celestial.com/pipermail/linux-users/attachments/20071231/dc379ea4/attachment-0002.bin
More information about the Linux-users
mailing list