netplan配置ip地址
系统: ubuntu-18.04.3-live-server-amd64
修改 /etc/netplan/50-cloud-init.yaml
vim /etc/netplan/50-cloud-init.yaml
network:
ethernets:
enp0s3:
addresses:
- 192.168.56.20/24
gateway4: 192.168.56.1
version: 2
启动
netplan apply