当使用VMware的克隆技术时,它克隆出虚拟机的是配置是一致的,包括网络方面。导致
Mac地址也是一样的,解决方法如下:
先注释掉后面eth0和eth1网卡的信息,然后重新启动服务器,让他们重新生成新的eth0的mac地址。
[root@mysql01 ~]# cat /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, and change only the value of the NAME= key.
# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2a:3f", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2d:08", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:2d:08", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
在配置ifcfg-eth0即可
[root@mysql01 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
HWADDR="00:50:56:85:2d:08"
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.1.80
NETMASK=255.255.255.0
GATEWAY=192.168.1.249
IPV6INIT=no
USERCTL=no
阅读(2421) | 评论(0) | 转发(0) |