Ubuntu 18.04 网卡配置IP
ifupdown has been replaced by netplan(5) on this system.
See /etc/netplan for current configuration.To re-enable ifupdown on this system,
you can run:
sudo apt install ifupdown
配置IP
vi /etc/netplan/50-cloud-init.yaml
sudo netplan apply
注意配置上的错误
3 配置nameserver
4 重启
reboot