linux NetworkManager和networking 冲突网络跳线

1. 关闭network-manager

service network-manager stop
systemctl disable NetworkManager.service
systemctl status NetworkManager.service
systemctl stop  NetworkManager.service
systemctl disable  NetworkManager.service

2. 配置DNS

rm -rf resolv.conf
touch resolv.conf
vim resolv.conf 
/etc/init.d/networking restart
ping 114.114.114.114
ping www.baidu.com

参考:
1.Ubuntu中启用关闭Network-manager网络设置问题!

你可能感兴趣的:(linux)