將eth1改爲 eth0的步驟:
1、
vi /etc/sysconfig/network-scripts/ifcfg-eth0
將 BOOTPROTO=none 修改爲 BOOTPROTO=static 並刪除 下邊一行 (HWADDR=00:0c:29:2a:75:7b) 修改後保存退出
2、
rm -f /etc/udev/rules.d/70-persistent-net.rules
3、reboot 重啓機器
4、重啓後 重啓網卡
service network restart
5、ok