ubuntu18.04添加静态ip ip a查看下机器的虚拟网卡名字,我的是ens192 -- 1.cd /etc/netplan 2.配置50-cloud-init.yam 3.netplan apply 4.验证 ifconfig -a