从 networkd 切换到 NetworkManager 时出现的问题

从 networkd 切换到 NetworkManager 时出现的问题

在 Google Cloud 上的 Ubuntu 22.04 实例上,我可以像这样从 networkd 切换到 NetworkManager:

$ sudo apt install network-manager

$ sudo nano /etc/netplan/50-cloud-init.yaml
# add:
network: 
  renderer: NetworkManager

$ sudo reboot

$ nmcli device
DEVICE  TYPE      STATE                   CONNECTION
ens4    ethernet  connected               netplan-ens4

但在 Oracle Cloud 实例上执行相同的步骤会导致:

$ nmcli device
DEVICE  TYPE      STATE                   CONNECTION
enp0s6  ethernet  connected (externally)  enp0s6

为什么状态connected在Google Cloud上,但connected (externally)在Oracle Cloud上呢?

相关内容