ubuntu配置网络

第一个问题ifconfig只有lo网卡 其实是有其他的网卡的只是没有配置 可以用ifconfig -a来查看 我这里是 enp0s17

第二部配置这个网卡 编辑/etc/netplan/50-cloud-init.yaml

把里面的网卡改成enp0s17 重启虚拟机就OK了

原文地址:https://www.cnblogs.com/yuandaozhe/p/14154099.html