- CentOS虚拟机克隆后网卡配置问题
-
CentOS 虚拟机克隆后网卡配置问题CentOS虚拟机克隆,物理地址会冲突,于是自动新建了网卡eth1,无法启动网卡。解决办法: www.2cto.com方式1:1)修改/etc/sysconfig/network-scripts/ifcfg-eth0 为 /etc/sysconfig/network-scripts/ifcfg-eth12)配置/etc/sysconfig/network-scripts/ifcfg-eth1# 修改为eth1DEVICE="eth1"BOOTPROTO="static"# 硬件地址取自eth1(通过“ifconfig -a”获取)HWADDR="00:0C:29:91:42:2C"MTU="1500"NM_CONTROLLED="yes"ONBOOT="yes"IPADDR=192.168.152.101NETMASK=255.255.255.0GATEWAY=192.168.152.23)service network restart方式2:1)修改/etc/udev/rules.d/70-persistent-net.rules拷贝eth1的硬件地址到eth0删除eth1信息2)配置/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"BOOTPROTO="static"HWADDR="00:0C:29:91:42:2C"MTU="1500"NM_CONTROLLED="yes"ONBOOT="yes"IPADDR=192.168.152.101NETMASK=255.255.255.0GATEWAY=192.168.152.23)reboot方式3(未测试):1)删除/etc/udev/rules.d/70-persistent-net.rules2)配置/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE="eth0"BOOTPROTO="static"HWADDR="00:0C:29:91:42:2C"MTU="1500"NM_CONTROLLED="yes"ONBOOT="yes"IPADDR=192.168.152.101NETMASK=255.255.255.0GATEWAY=192.168.152.23)reboot
转载于:https://blog.51cto.com/fccwcom/1137572