新版本在ubuntu系统已经使用yml 文件方式配置了,配置位置: /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
eno1np0:
dhcp4: no
addresses:
- 192.168.1.234/24
- 192.168.0.234/24
eno2np1:
dhcp4: no
addresses: [192.168.8.234/24]
routes:
- to: default
via: 192.168.8.1
nameservers:
addresses: [223.5.5.5,114.144.114.144]
version: 2