ethxとNICの関連付けを変更する
Ubuntu 7.10でeth0とeth1を入れ替える必要があったので,やり方を調べてみました.
- /etc/udev/rules.d/70-persistent-net.rulesをエディタで開く.
- eth1をeth0に,eth0をeth1に書き換える
- 再起動をして終了*1.
以上の3ステップでeth0とeth1を入れ替えることができました.ちなみに,70-persistent-net.rulesの中身は以下のようになっています*2.
# PCI device 0x10ec:0x8169 (r8169) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:a0:b0:xx:xx:xx", NAME="eth1" # PCI device 0x1106:0x3065 (via-rhine) SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:19:66:xx:xx:xx", NAME="eth0"