1、
ifconfig eth1 up
打开:
vi /etc/udev/rules.d/70-persistent-net.rules
其内容如下:
# PCI device 0x1022:0x2000(pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:96:cc:5e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000(pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ac:77:96:aa:5e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
2、
删除最后面那一段,同时把第二段的:TTR{address}=="00:0c:29:96:cc:5e"覆盖第一句的同一地方,最后其内容如下:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:ac:77:96:aa:5e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
然后打开/etc/sysconfig/network-scripts/ifcfg-eth0
修改成HDWADDR="00:ac:77:96:aa:5e"
3、
ifconfig eth1 down
重启电脑reboot