编辑网络配置文件 nano /etc/netplan/50-cloud-init.yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
network: ethernets: ens33: addresses: - 172.16.110.88/24 nameservers: addresses: - 172.16.110.10 search: - ubuntu-server routes: - to: default via: 172.16.110.253 version: 2 |
保存,应用设置 netplan apply