默认配置/etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens160:
dhcp4: true
version: 2
我试图修改配置
network:
ethernets:
eth0:
dhcp4: no
eth1:
dhcp4: no
addresses: [192.168.0.7/24]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
IP地址没有绑定