1.首先在虚拟机上设置网络模式为桥接 2.进入etc/sysconfig/network-scripts 修改网卡文件 3.修改为 4.重启网卡 service network restart 或者 systemctl restart network.service 5.检测 ping www.baidu.com 来源:oschina链接:https://my.oschina.net/u/2723374/blog/1920982 标签 CentOS Linux