分享
分享赚钱 收藏 举报 版权申诉 / 11

类型(国术荟古籍百科)理解VMware的3种网络模型电子版网盘下载.pdf(11页)

  • 上传人:逍***
  • 文档编号:382742
  • 上传时间:2024-11-04
  • 格式:PDF
  • 页数:11
  • 大小:350.81KB
  • 配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    理解 VMware 网络 模型
    资源描述:

    1、 理解 VMware 的 3 种 网络模型 很多朋友都曾问到关于 Guest 和 Host 互联,其实这并不是一件困难的事情,只要能够理解 VMware 的网络模型即可,今天结合着我的虚拟机,来详细介绍一下 VMware 的 3 种网络结构 在说到 VMware 的网络模型之前,先说一下 VMware 的几个虚拟设备:VMnet0:这是 VMware 用于虚拟桥接网络下的虚拟交换机;VMnet1:这是 VMware 用于虚拟 Host-Only 网络下的虚拟交换机;VMnet8:这是 VMware 用于虚拟 NAT 网络下的虚拟交换机;VMware Network Adapter VMnet1

    2、:这是 Host 用于与 Host-Only 虚拟网络进行通信的虚拟网卡;VMware Network Adapter VMnet8:这是 Host 用于与 NAT 虚拟网络进行通信的虚拟网卡;关于桥接网络:拓扑图:Host 的物理网卡和 Guest 的网卡在 VMnet0 交换机上通过虚拟网桥进行桥接,这也就是说,我的物理网卡和我的 Guest 的虚拟网卡(注:这个虚拟网卡不等于 VMware Network Adapter VMnet1 或者 VMware Network Adapter VMnet8)处于同等地位,此时的 Guest 就好像我的 Host 所在的一个网段上的另外一台机器。

    3、打个比方来说:我的 Host 的物理网卡配置如下:IP 地址为手工指定方式,网关为 192.168.0.1,那么我的 Guest 就应该和我的 Host 处于同一个网段,它的配置可为:同样,IP 地址也为手工指定方式,网关也为 192.168.0.1,这样的话,IP 地址为 192.168.0.2 的 Host 和 IP 地址为192.168.0.158 的 Guest 就可以互通了:当然,Guest 所配置的 IP 地址一定要在 192.168.0 网段没有被占用,而且我的网络管理员允许我来使用这个 IP 地址。如果在 192.168.0 网段,存在 DHCP 服务器,那么 Host 和 G

    4、uest 都可以把 IP 地址获取方式设置为 DHCP 方式。VMware 中对于 Bridged 网络的定义(引用自 VMware GSX Server Users Manual):Bridged networking connects a virtual machine to a network using the host computers Ethernet adapter.Bridged networking is set up automatically if you select Use bridged networking in the New Virtual Machine

    5、Wizard or if you select the Typical setup path.This selection is available on a Linux host only if you enable the bridged networking option when you install GSX Server.If your host computer is on an Ethernet network,bridged networking is often the easiest way to give your virtual machine access to t

    6、hat network.On a Windows host,you can use bridged networking to connect to either a wired or a wireless network.On a Linux host,you can use bridged networking to connect to a wired network.If you use bridged networking,your virtual machine needs to have its own identity on the network.For example,on

    7、 a TCP/IP network,the virtual machine needs its own IP address.Your network administrator can tell you whether IP addresses are available for your virtual machine and what networking settings you should use in the guest operating system.Generally,your guest operating system may acquire an IP address

    8、 and other network details automatically from a DHCP server,or you may need to set the IP address and other details manually in the guest operating system.If you use bridged networking,the virtual machine is a full participant in the network.It has access to other machines on the network and can be

    9、contacted by other machines on the network as if it were a physical computer on the network.Be aware that if the host computer is set up to boot multiple operating systems and you run one or more of them in virtual machines,you need to configure each operating system with a unique network address.Pe

    10、ople who boot multiple operating systems often assign all systems the same address,since they assume only one operating system will run at a time.If you use one or more of the operating systems in a virtual machine,this assumption is no longer true.If you make some other selection in the New Virtual

    11、 Machine Wizard and later decide you want to use bridged networking,you can make that change in the virtual machine settings editor(VM Settings).For details,see Changing the Networking Configuration.关于 NAT 网络拓扑图:在 NAT 网络中,会使用到 VMnet8 虚拟交换机,Host 上的 VMware Network Adapter VMnet8 虚拟网卡被连接到 VMnet8交换机上,来与

    12、 Guest 进行通信,但是 VMware Network Adapter VMnet8 虚拟网卡仅仅是用于和 VMnet8 网段通信用的,它并不为 VMnet8 网段提供路由功能,处于虚拟 NAT 网络下的 Guest 是使用虚拟的 NAT 服务器来连接到 Internet 的。VMware 功能非常强大,在 NAT 网络下,我们甚至可使用 Port Forwarding 功能,来把 Host 的某一个 TCP 或者 UDP 端口映射到 Guest 上!如图:我的 VMware Network Adapter VMnet8 虚拟网卡的 IP 地址配置如下:IP 地址是手工指定的,但却不是由我

    13、来指定的,而是 VMware 在安装的时候自动随机指定的一个 IP 地址(注意,不要修改 VMware Network Adapter VMnet8 虚拟网卡所在的网络 ID,这样的话会造成 Host 和 Guest 无法通信)那么,我的 NAT 网络的虚拟机的 IP 地址也为 192.168.85.0 这个网段,其 IP 地址配置为:可以看到,它的 IP 地址分是由 DHCP 服务器分配的的,DHCP 服务器的地址为 192.168.85.254,那为什么会有 DHCP 服务器存在呢?这是因为 VMware 安装之后,会有一台虚拟的 DHCP 服务器为虚拟机来分配 IP 地址,这个 DHCP

    14、 服务器,你可以 ping 通它,但是无法进行访问,因为实际上它就是一个系统服务而已,在开始运行中输入 services.msc,就会看到这个服务:此时可以看到,Guest 的网卡和 Host 上的 VMware Network Adapter VMnet8 虚拟网卡拥有相同的网络 ID,这样的话,在Guest 中,ping 通 Host 就没有问题了:有一点需要说明的是,在 NAT 方式的网络中,Guest 的 Gateway 都指向了 192.168.X.2,在本例中,X=85,也就是那个虚拟的 NAT 服务器的地址,这个服务器是一台虚拟的 NAT 服务器,可以 ping 通它,但是却无法

    15、访问到这台虚拟机,因为这同样也是一个系统服务:这时候,我的 Guest 和 Host 就可以实现互访了,并且如果我的 Host 此时已经连接到了 Internet,那么我的 Guest 也就可以连上 Internet 了。那么 Host 上的 VMware Network Adapter VMnet8 虚拟网卡在这里扮演了一个什么角色呢?它仅仅是为Host 和 NAT 虚拟网络提供了一个通信接口,所以,即便在 Host 中 Disable 掉这块虚拟网卡,Guest 仍然是可以上网的,只是Host 无法再访问 VMnet8 网段,也即是无法访问 Guest 而已。VMware 中对于 NAT

    16、网络的定义(引用自 VMware GSX Server Users Manual):NAT gives a virtual machine access to network resources using the host computers IP address.A network address translation connection is set up automatically if you follow the Custom path in the New Virtual Machine Wizard and select Use network address translation.If you want to connect to the Internet or other TCP/IP network using the host computers dial-up networking or broadband connection and you are not able to give your virtual machine an IP address

    展开阅读全文
    提示  荟百科知识所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:(国术荟古籍百科)理解VMware的3种网络模型电子版网盘下载.pdf(11页)
    链接地址:https://www.huibaike.com/382742.html
    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2020-2023 荟百科知识文档 | 经营许可证编号:豫ICP备2023012140号-1

    免责声明:本站资源由用户分享,本站仅提供存储展示服务,所有文档下载所得的收益归上传人(含作者)所有,对上载内容本身不做任何修改或编辑。

    网站有监管的责任,但不对所涉及的版权问题负法律责任,若文档所含内容侵犯了您的版权或隐私,请联系我们删除。

    专利商标号:71631114

    收起
    展开