vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens160:
dhcp4: no
addresses: [192.168.199.102/24]
optional: true
gateway4: 192.168.199.1
nameservers:
addresses: [114.114.114.114]
version: 2
标签:addresses,IP地址,192.168,Ubuntu,config,20.04
From: https://www.cnblogs.com/5ixueweb/p/16585269.html