ubuntu18.04添加静态ip

ip a查看下机器的虚拟网卡名字,我的是ens192

--

1.cd /etc/netplan

2.配置50-cloud-init.yam

3.netplan apply

4.验证

ifconfig -a

 

posted @ 2020-12-11 11:48  frantzz  阅读(106)  评论(0编辑  收藏  举报