网管联盟 | 网管论坛 | 网管u家 | 网管博客 | 网管软件 | 网管求职 | 小游戏 | 网管搜索 | 网管原创 | 网管聚合 | 网管读摘 | 网管焦点 | 世界素材 | 会员投稿 | 会员中心 
中国网管联盟
Windows Linux Cisco 网络技术 数据库 黑客攻防 DotNet Java PHP 认证 新闻资讯 服务器 存储资讯 网络设备 网管学堂 技术专题 焦点 网吧频道
 当前位置: > bitsCN.com > linux > 网络管理 > 网络管理 > 理解VMware虚拟机下网络连接的三种模式  

理解VMware虚拟机下网络连接的三种模式

2007-09-13  作者:bitsCN整理  来源:中国网管联盟  点评 投稿 收藏

  很多朋友都用vmware来测试不同的系统,我结合自己的经验谈一下对网络设置的理解,不对的地方请指正。 网管网www.bitscn.com

  bridge:

网管网www.bitscn.com

  screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}\" onclick=\"if(!this.resized) {return true;} else {window.open('http://Linux.bitscn.com/UploadFiles_7565/200709/20070913112003592.gif');}\" src=\"\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}\" border=0>

中国网管联盟bitsCN.com

  这种方式最简单,直接将虚拟网卡桥接到一个物理网卡上面,和linux下一个网卡 绑定两个不同地址类似,实际上是将网卡设置为混杂模式,从而达到侦听多个IP的能力。 网管下载dl.bitscn.com

  在此种模式下,虚拟机内部的网卡(例如linux下的eth0)直接连到了物理网卡所在的网络上,可以想象为虚拟机和host机处于对等的地位,在网络关系上是平等的,没有谁在谁后面的问题。

网管联盟bitsCN_com

  使用这种方式很简单,前提是你可以得到1个以上的地址。对于想进行种种网络实验的朋友 不太适合,因为你无法对虚拟机的网络进行控制,它直接出去了。

网管联盟bitsCN@com

  nat方式: 网管网www_bitscn_com

  screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}\" onclick=\"if(!this.resized) {return true;} else {window.open('http://Linux.bitscn.com/UploadFiles_7565/200709/20070913112004638.gif');}\" src=\"\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}\" border=0>

中国网管论坛bbs.bitsCN.com

  这种方式下host内部出现了一个虚拟的网卡vmnet8(默认情况下),如果你有过 做nat服务器的经验,这里的vmnet8就相当于连接到内网的网卡,而虚拟机本身则相当于运 行在内网上的机器,虚拟机内的网卡(eth0)则独立于vmnet8。 中国网管论坛bbs.bitsCN.com

  你会发现在这种方式下,vmware自带的dhcp会默认地加载到vmnet8界面上,这样虚拟机就可以使用dhcp服务。更为重要的是,vmware自带了nat服务,提供了从vmnet8到外网的地址转 换,所以这种情况是一个实实在在的nat服务器在运行,只不过是供虚拟机用的。 网管下载dl.bitscn.com

  很显然,如果你只有一个外网地址,此种方式很合适。 网管下载dl.bitscn.com

网管网www.bitscn.com


TAGs   连接   模式   网络   虚拟   理解   to   screen.width   0.7   可以      
 上一篇:Linux操作系统上ADSL拨号上网的方法详解   下一篇:Linux操作系统下简单的远程桌面实现方法
理解VMware虚拟机下网络连接的三种模式 评论:
loading.. 评论加载中…
评论:请自觉遵守互联网相关政策法规,评论不得超过250字。

验证码: 注册用户
本类热门排行:
最新推荐文章:
网管论坛交流: