vmware克隆Centos网卡修改方法
# dmesg | grep eth
e1000 0000:02:00.0:eth0:(PCI:66MHz:32-bit) 00:50:56:8d:20:82
e1000 0000:02:00.0:eth0:Inter(R) PRO/1000 Network Connection
udev: renamed network interface eth0 to eth1
# vi /etc/sysconfig/network-script/ifcfg-eth0
找到HWADDR=00:50:56:8D:20:XX修改为HWADDR=00:50:56:8D:20:82
# vi /etc/udev/rules.d/70-persistent-net.rules
把NAME="eth0"的"ATTR(address)=="mac地址" 修改为正确的MAC地址然后删除NAME="eth1"的这块网卡信息
或者把原本NAME="eth0"网卡信息删掉,然后把NAME="eth1"修改为NAME="eth0"
# reboot
版权声明:本文为博主原创文章,未经博主允许不得转载。