Device eth0 does not seem to be present,delaying initialization问题

时间:2022-06-11 04:29:37

 

1、打开/etc/udev/rules.d/70-persistent-net.rules:

cat /etc/udev/rules.d/70-persistent-net.rules

文件内容如图:

Device eth0 does not seem to be present,delaying initialization问题

 

记录下eth1的MAC地址:00:50:56:39:db:ae

2、编辑网卡配置文件/etc/sysconfig/network-scripts/ifcfg-eth0 :

vim /etc/sysconfig/network-scripts/ifcfg-eth0

如图:

Device eth0 does not seem to be present,delaying initialization问题

修改DEVICE=eth1

修改HWADDR=00:50:56:39:db:ae

保存并退出。

3、重启网卡即可:

service network restart