eth0 と eth1 の入れ替え
NIC が二つある場合,意図したとおりに NIC にデバイス名が割当たらない場合があります.
これを入れ替える方法./etc/udev/rules.d/70-persistent-net.rules を開くと,以下のようになっています (抜粋).
# PCI device 0x8086:0x10bd (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:d1:9f:5b:75", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x8086:0x1229 (e100) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:b3:90:5d:84", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
e1000e を eth0 に e100 を eth1 にしたい場合は,"NAME" の値を入れ替えれば OK です.
# PCI device 0x8086:0x10bd (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:d1:9f:5b:75", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x1229 (e100) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:b3:90:5d:84", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"