Jan 9, 2009

rename your network card by udev config

my os is debian 5.0 testing
~# dpkg -l | grep udev
ii udev 0.125-7 /dev/ and hotplug management daemon


# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.

# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:05:5d:07:48:e5", NAME="eth2"

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:23:a5:a4:b5", NAME="eth1"

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:23:a5:a4:b4", NAME="eth0"


define via-rhine is eth0, e1000(dual port) are eth1 and eth2

# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:05:5d:07:48:e5", NAME="eth0"

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:23:a5:a4:b4", NAME="eth1"

# PCI device 0x8086:0x1079 (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:04:23:a5:a4:b5", NAME="eth2"

No comments: