依次输入命令:
1.chkconfig NetworkManager off
2.chkconfig network on
3.service NetworkManager stop
4.service network start
5./etc/init.d/network restart
PS:该方案只针对centos7及以下版本 centos8没有network service
文转载至: https://blog.csdn.net/reai2011/article/details/ps93973162