有时候会出现添加第二块网卡但是系统不显示ip的问题,解决方案是自己去/etc/sysconfig/network-scripts 里面去手动添加编辑对应的网卡信息
17 cp ifcfg-enp0s3 ifcfg-enp0s8
18 vi ifcfg-enp0s8
19 systemctl restart network
然后保存后重启
systemctl restart network
网卡出现,可以ssh从外面登入了
添加第二块网卡参考这位大佬的教程:https://wells.blog.youkuaiyun.com/article/details/106605149
记得先把虚拟机关机才能添加