centos 6.8
背景:在vcenter上克隆完毕一台虚拟机
要在新克隆的虚拟机上配置静态ip
配置静态ip完毕,运行service network restart
报错 Error:No suitable device found: no device found for connection “System eth1″
问题不在解释,直接上解决办法
ifconfig 显示 网卡是 eth1
但是在 /etc/sysconfig/network-scripts/ 下 没有eth1文件,只有ifcfg-eth0
首先删除 /etc/udev/rules.d/70-persistent-net-rules文件
reboot 重启虚拟机
然后发现 ifconfig 下的eth1 变成了eth0
记录下HWADDR
到/etc/sysconfig/network-scripts/ifcfg-eth0 中修改
保存
service network restart
问题完美解决。
转载于:https://blog.51cto.com/youshoutech/1839328