1、打开/etc/udev/rules.d/70-persistent-net.rules:
cat /etc/udev/rules.d/70-persistent-net.rules
文件内容如图:
记录下eth1的MAC地址:00:50:56:39:db:ae
2、编辑网卡配置文件/etc/sysconfig/network-scripts/ifcfg-eth0 :
vim /etc/sysconfig/network-scripts/ifcfg-eth0
如图:
修改DEVICE=eth1
修改HWADDR=00:50:56:39:db:ae
保存并退出。
3、重启网卡即可:
service network restart