VMware ESXi 5.5OVF テンプレートを使用してデプロイすると

NIC の情報が、eth0 から eth1 に入れ替わる現象が発生しました

NIC が動作すれば問題無いと思っていたら・・・

iptables の設定で デプロイ前の eth0 が使える必要があるので

調査する事にしました

 

調査したサイト情報

eth0とeth1の入れ替え

 

修正方法

①.vi /etc/udev/rules.d/70-persistent-net.rules

70-persistent-net.rules を修正します。

変更前

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rule written by anaconda)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:da:f4:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9d:af:bf", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

 

変更後

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rule written by anaconda)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:da:f4:44", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9d:af:bf", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

 

eth1部分eth0 に変更します。

eth0部分eth1  に変更します。

再起動後、正常に変更されている事を確認します。