天天看點

Ubuntu 20.04 網絡配置

編輯 /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens32:
      addresses:
       - 172.16.10.21/24 # IP位址
      dhcp4: no
      dhcp6: no
      gateway4: 172.16.10.1 # 網關
      nameservers:
        addresses:
        - 114.114.114.114 # DNS配置
        search:
        - 114.114.114.114
  version: 2
           

配置生效

netplan apply
           

繼續閱讀