首页 > linux 无法正常上网

linux 无法正常上网

报错:does not seem to be present, delaying initialization.

我查的资料,一般这个错误前会提示是eth0之类

一般修复 都提到要修改几个文件

1、/etc/udev/rules.d/70-persistent-net.rules
2、/etc/sysconfig/network-scripts/ifcfg-eth0

本机截图如下:
70-persistent-net.rules:

ifcfg-eth0

无法ping通外网,能ping通内网ip:172.25.33.49

/etc/resolv.conf
配置如下


看起来像是 CentOS(伙计,我打赌这是CentOS) ,看起来是网卡配置文件的问题。/etc/udev/rules.d/70-persistent-net.rules 直接删掉再重启,就会生成新的配置文件,然后进去看下网卡的名字,然后再去 /etc/sysconfig/network-scripts 看看对应名字的网卡配置文件是否存在,不存在的话,就改成/etc/udev/rules.d/70-persistent-net.rules 里面的名字。
然后,

systemctl restart network
ip a

不要手工去改 /etc/udev/rules.d/70-persistent-net.rules

【热门文章】
【热门文章】