当前位置:首页 > 操作系统 > MacOs

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC

摘要:VMWare CentOS 6 Clone 重设网卡MAC


方法一

1. 备份或删除文件:mv ifcfg-eth* ifcfg-eth*.bak

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

2. 编辑:vim /etc/udev/rules.d/7*-persistent-net.rules

将冲突的网卡资讯内容删除或注解,然后重新启动机器。

系统会侦测网卡,重新产生新的设定资讯。

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

方法二

1. 编辑ifcfg-eth*:vim ifcfg-eth*

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

2. 编辑:vim /etc/udev/rules.d/7*-persistent-net.rules

在‘/etc/udev/rules.d/7*-persistent-net.rule’会看到旧有的设定资讯(eth0、eth1)与新的设定资讯(eth2、eth3)。

如果不想保留旧的设定数据,可以删除或注释掉,而将新的设定数据名称改为eth0、eth1。

当然也可以不改,但就必须更改‘/etc/sysconfig/network-scripts/ifcfg-eth0’和‘ifcfg-eth1’的名称。

但为了避免麻烦,个人建议还是更改会比较好。

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

3. 重启服务:service network restart

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

4. 观察:‘ip a’ or ‘ifconfig’

【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC - 文章图片

参考来源

1. http://www.centos.org/forums/viewtopic.php?t=7684

2. http://alexcline.net/2011/11/15/reconfiguring-network-interfaces-in-centosrhel-systems-cloned-with-vcenter/

原文:大专栏  【笔记整理】VMWare CentOS 6 Clone 重设网卡MAC



【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐