debian lennyで現象確認したもの
LANボードの変更もしくは、Linuxイメージを別の機器にリストアするようなことを
行った場合、MACアドレスの変更により、eth番号変更される
OSでは、MACアドレスとeth番号のマッチングをするために、
/etc/udev/rules.d/70-persistent-net.rules
に情報を保持している。
------------------------------------------------------------------
# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:c7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:c6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x108b (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:b1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x8086:0x108b (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
--------------------------------------------------------------------
この場合、マシン更新時たとえばLANポートが2ポートの場合# PCI device 0x8086:0x10d3 (e1000e)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:c6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x108b (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:b1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x108b (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:80:62:XX:XX:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
--------------------------------------------------------------------
赤字の部分が追記もしくは変更した箇所