cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      dhcp4: no
      addresses: [192.168.3.80/24]
      gateway4: 192.168.3.1
      nameservers:
        addresses: [114.114.114.114]

 执行如下命令 使得如上更改生效

 

netplan apply

 

 

 

相关文章:

  • 2021-05-10
  • 2022-12-23
  • 2021-12-04
  • 2021-04-07
  • 2021-04-22
  • 2021-06-06
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2021-07-20
  • 2022-01-22
  • 2022-12-23
相关资源
相似解决方案