码迷,mamicode.com
首页 > 其他好文 > 详细

虚拟机复制后修改eth1为eth0

时间:2015-07-26 06:23:08      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:linux基础

虚拟机克隆后网卡变成eth1,改变的方法如下:

1、vim /etc/udev/rules.d/70-persistent-net.rules

技术分享

删除上面两行,改红框里的位eth0

2、vim /etc/sysconfig/network-scripts/ifcfg-eth0

删除uuid和mac地址,修改ip

3、卸载网卡

modprobe -r e1000

4、装载网卡

modprobe e1000

5、重启

service network restart


本文出自 “行者” 博客,请务必保留此出处http://223228686.blog.51cto.com/2222284/1678313

虚拟机复制后修改eth1为eth0

标签:linux基础

原文地址:http://223228686.blog.51cto.com/2222284/1678313

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!