复制了一个eth0 的网卡 内容为eth1
但是在service network restart 重启的时候
出现
[[email protected] ~]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... done. [ OK ] Bringing up interface eth1: Device eth1 does not seem to be present, delaying initialization. [FAILED]
解决方法如下:
打开文件
vim /etc/udev/rules.d/70-persistent-net.rules
查看eth2 的MAC地址
将 DEVICE="eth0" 改成 DEVICE="eth1" ,
将 HWADDR="xx:xx:xx:xx:xx:xx" 改成上面的mac地址 HWADDR="xx:xx:xx:xx:xx:xx"
重启网卡 解决
时间: 2024-10-15 18:04:44