1、虚拟机能访问外网。
1.1、用桥接模式,“设置”-》“网络”-》“桥接网卡”,其他默认。宿主机界面
![](http://img.blog.itpub.net/blog/attachment/201508/12/642366_1439344102g7gG.png)
1.2、虚拟机界面,linux的网络设置如图
![](http://img.blog.itpub.net/blog/attachment/201508/12/642366_1439344103LXLT.jpg)
1.3、虚拟机中重启网络。命令行下执行:service network stop,
service network start
2、宿主机访问虚拟机
2.1、用“host-only”模式,
“设置”-》“网络”-》
“host-only“,宿主机界面
![](http://img.blog.itpub.net/blog/attachment/201508/12/642366_1439344104SO8A.png)
2.2、
1.2、虚拟机界面,linux的网络设置如图
![](http://img.blog.itpub.net/blog/attachment/201508/12/642366_1439344104oKGp.png)
1.3、虚拟机中重启网络。命令行下执行:service network stop,
service network start
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/642366/viewspace-1768923/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/642366/viewspace-1768923/