# 原配置 dncp
wang@1:~$ more /etc/netplan/00-installer-config.yaml.bak
network:
ethernets:
ens160:
dhcp4: true
version: 2
# 静态方法
wang@1:~$ more /etc/netplan/00-installer-config.yaml
network:
ethernets:
ens160:
dhcp4: no
addresses: [10.10.194.247/24]
gateway4: 10.10.194.254
nameservers:
addresses: [8.8.8.8,8.8.4.4]
version: 2