1、修改eth0
修改/etc/sysconfig/netowrk.script/if-eth0
删除原有的MAC地址和UUID值,其他值需要修改的处理一下。
2、eth0,eth1交换
网络接口识别并命名相关的udev配置文件
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:bb:fa:c1", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
删除eth0相关信息,把eth1改为eth0
3、更新网卡驱动
卸载网卡驱动
modprobe -r e1000
装载网卡驱动
modprobe e1000
4重启网络服务
service network restart