I borrowed a picture from a certain blogger because I forgot to take a screenshot. I am politely attaching the link
. The error message should be like this. You can check the blogger's error first. If it doesn't work, you can try this method again
after confirming the attributes of ONBOOT. I performed
a network restart when it was set to yes.
service network restart
Obviously it failed.
It was found that there was a conflict between the network service and the NetworkManager service.
The solution
was to just stop the NetworkManager service.
关闭 NetworkManger
service NetworkManager stop
禁止开机启动
chkconfig NetworkManager off
重启网络
service network restart
at last
ping www.baidu.com
Try it.
If you still can't ping, it just means that the error type is different. You can read this article .