(1)第二个虚拟机第一次启动后网络设备名改变的问题:
第二个虚拟机第一次启动后,检查网络设备,发现名称不是RAC1机的eth0和eth1,而变为了eth2和eth3。检查发现在/etc/udev/rules.d/70-persistent-net.rules文件中,名称为eth0和eth1的对应了原RAC1机的MAC地址,多出了名称为eth2和eth3的几行,对应的MAC地址正是RAC2机的现在的网卡的MAC,修改eth0和eth1的地址为新MAC地址,并删除eth2和eth3的行,重启系统后,名称恢复正常。
# 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, and change only the value of the NAME= key.
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:86", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:85", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:98", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
修改为:
# 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, and change only the value of the NAME= key.
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:98", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:8e:56:97", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"