ubuntu 8.10 intrepid server が入った同じ構成のマシンを十数台用意するためにハードディスクを dd でシーケンシャルコピーして同じ内容が入ったディスクを台数分用意し、ホスト名やネットワークの設定だけ変更してマシンに搭載して電源を入れたわけだけれども、ネットワークの設定がうまくいっていない模様。
マシンには nic が 2 枚付いていて、通常ならば eth0 と eth1 として認識されるはずなのに、eth2 と eth3 として認識されている。
これはきっとどこかでディスク複製の雛型に使ったマシンの nic の mac address を覚えているに違いないと思い /var や /etc 以下に grep をかけてみたら、やっぱりあった。
mac address が記述されているファイルは /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules # program run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single line. # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="hogehoge", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="hogehoge", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="hogehoge", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="hogehoge", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
SUBSYSTEM で始まる行を削除して再起動してやったら、めでたくして eth0, eth1 として認識された。