<script type="text/JavaScript"> </script> <script src="http://a.alimama.cn/inf.js" type="text/javascript"></script>

<script type="text/JavaScript"> </script> <script src="http://a.alimama.cn/inf.js" type="text/javascript"></script>

 

DHCP的设置是关键:

       1、虚拟机装完后会自动使用DHCP分配IP地址,  在网络邻居中把VMnet1 VMnet8ip地址改为动态获得的那些地址范围内的地址,在我的机子上VMnet1192.168.94.150/24  网关是192.168.94.2VMnet8192.168.253.150/24 网关是192.168.253.2,具体的ip地址范围可以到虚拟机的edit-》虚拟机网络设置-》DHCP下可以看到相应的IP地址的范围以及相应的掩码。并且设置相应的dns是的跟window下默认的网络连接一样的。

       2、在虚拟机上设置连接方式为NAT方式,我设置的为custom,VMnet8(NAT),在虚拟机的linux上到/etc/network/interfaces修改ip地址,改为192.168.253.150/24,网关改为192.168.253.2,/etc/resolv.conf下修改DNSwindows上上网的一样。然后先ping 192.168.253.2网关看看是否能通。通后,在ping一下外面主机windows的IP地址,如果能通的华就可以上网了。


 


<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

QQ书签 新浪ViVi 365Key网摘 天极网摘 spurl 百度收藏 Google书签 diglog Del.icio.us digg 雅虎收藏 收藏到〖就喜欢〗网络收藏夹

<script type="text/JavaScript"> </script> <script src="http://a.alimama.cn/inf.js" type="text/javascript"></script>

<script type="text/JavaScript"> </script> <script src="http://a.alimama.cn/inf.js" type="text/javascript"></script>

Logo

更多推荐