手动配置ubuntu网络地址
配置文件路径:/etc/netplan/*.yaml
配置文件格式:
network:
ethernets:
eth0:
dhcp4: false
addresses:
- 10.0.0.100/24
gateway4: 10.0.0.2
nameservers:
addresses: [223.6.6.6, 114.114.114.114]
version: 2
生效:netplan apply