Ubuntu网络配置

参考:http://www.3gcomet.com/ubuntu20-04中使用netplan配置网络/

cat /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    enp1s0:
      dhcp4: true
      #addresses:
      #- 172.18.225.240/24
      #gateway4: 172.18.225.254
      nameservers:
        addresses:
        - 223.6.6.6
        - 223.5.5.5
        search: []
  version: 2


分享