centos6在workstations克隆后的网卡消失的问题

大家可能都有过这样的经历,我们克隆一台centos6后,使用ifconfig -a 命令看,发现网卡名字不是从eth0开始了。这是由一个配置文件决定的/etc/udev/rules.d/70-persistent-net.rules 
 
 
要想让它从eth0开始,很简单。首先ifconfig -a 查看网卡的mac地址,然后vim  /etc/udev/rules.d/70-persistent-net.rules  找到和该mac一样的那行,然后修改网卡名字为eth0, 同时把上面eth0那行给注释掉,重启系统就ok啦。
 
参考:https://my.oschina.net/grubby/blog/1677501
参考:https://www.wenkuxiazai.com/doc/97e0bb1aa300a6c30c229f8a.html

猜你喜欢

转载自www.cnblogs.com/yudeyinji90/p/10536826.html