1.编辑 vim /etc/udev/rules.d/70-persistent-net.rules ,将eth0那行删去,下面的eth1改为eth0,将剩下那行的mac地址记下来。
2.打开 vim /etc/sysconfig/network-scripts/ifcfg-eth0,该文件中的mac地址为原来eth0网卡的物理地址,将HWADDR的地址信息修改为刚刚记下的那个地址,再次重启网络,启动网络命令service network restart,如果无效则重启机器。
1.编辑 vim /etc/udev/rules.d/70-persistent-net.rules ,将eth0那行删去,下面的eth1改为eth0,将剩下那行的mac地址记下来。
2.打开 vim /etc/sysconfig/network-scripts/ifcfg-eth0,该文件中的mac地址为原来eth0网卡的物理地址,将HWADDR的地址信息修改为刚刚记下的那个地址,再次重启网络,启动网络命令service network restart,如果无效则重启机器。