Network error question: RTNETLINK answers: File exists

When the network card is restarted, the prompt: RTNETLINK answers: File exists appears

 The following is the solution to the error of the network card:

The first one: There is a conflict with the NetworkManager service. This is easy to solve. Just turn off the NetworkManger service directly, service NetworkManager stop, and prohibit the startup of chkconfig NetworkManager off. Just restart after that.

The second type: does not match the MAC address of the configuration file, this is easy to solve, directly modify the MAC address of the /etc/udev/rules.d/70-persistent-net.rules file and /etc/sysconfig/network-scripts/ ifcfg-eth0 is the same.

The third: ip addr flush dev eth0

The fourth type: ifdown solves it directly

ifdown enp0s3  //enp0s3是我的网卡名字,文件名称ifcfg-enp0s3,ifdown表示禁用该网络

//之后重启网络
systemctl restart network

 I hope the above method is helpful to everyone! ! !

おすすめ

転載: blog.csdn.net/wuds_158/article/details/131409495