网上很多解决方法都是说修改/etc/NetworkManager/NetworkManager.conf
实际测试的结果是:无效!
真正解决方案是修改/etc/netplan/50-cloud-init.yaml
#/etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: NetworkManager
然后执行
sudo systemctl restart NetworkManager
网上很多解决方法都是说修改/etc/NetworkManager/NetworkManager.conf
实际测试的结果是:无效!
真正解决方案是修改/etc/netplan/50-cloud-init.yaml
#/etc/netplan/50-cloud-init.yaml
network:
version: 2
renderer: NetworkManager
然后执行
sudo systemctl restart NetworkManager