Introduction to VMware Virtual Machine host-only (host-only), Bridging (bridge), Nat three network modes

Source: Internet
Author: User

Introduction to VMware Virtual Machine host-only (host-only), Bridging (bridge), Nat three network modes

To introduce you to the virtual machine three kinds of network mode, I hope to be helpful to everyone.

    虚拟机在创建完成以后,会在物理主机上创建两个虚拟连接vmnet1和vmnet8,想必大家都知道了吧。

    下面开始讲一下这三种网络连接吧
Host only (host-only) mode:
    仅主机模式,可以实现虚拟机和物理主机之间相互通信,但虚拟机无法与外网(Internet)之间互相通信。    如所示:

    我们可以认为虚拟机网卡与vmnet1连接在一个虚拟的交换机上,这样当它们的IP在同一个网段的时候,虚拟机与虚拟机之间,虚拟机与物理机之间就可以正常通信了。    补充:虚拟机与物理之间是否可以通信,与物理机本地连接无关,与vmnet1有关 。
Bridging (bridge) mode:
    桥接模式下,可以实现虚拟机与虚拟机、虚拟机与物理机之间相互通信,同时虚拟机可以连接外网(Internet)。    如所示:    桥接模式下,我们可以认为虚拟机主机网卡和物理主机网卡连接在同一台虚拟机上,它们之间可以通过虚拟交换机互相通信,再通过物理主机实现与外网通信。

    补充:            1、桥接模式下,虚拟机与物理机之间通信,与虚拟机桥接的本地连接有关。                    可以手动设置桥接的网卡                                打开虚拟机窗口,进入“编辑”下,选择“虚拟机网络编辑器”

            2、桥接模式下,虚拟机是否能联网与物理机能否联网无关,与物理机物理连接是否接入网络有关。                    主机IP:192.168.1.107                    子网掩码:255.255.255.0                    不能连接外网

                虚拟机IP:192.168.0.108                子网掩码:255.255.255.0                可以连接外网

Nat Mode
    虚拟机与虚拟机、虚拟机与物理机之间相互通信,同时虚拟机可以连接外网(Internet)。    如所示:    虚拟机网卡与Vmnet8连接到虚拟的交换机上,实现互相通信。再通过物理主机NAT服务,通过物理主机网卡实现与外网(Internet)连接。

    补充:    1、虚拟机与物理机之间的通信,与物理主机vmnet8相关,与本地连接无关。    2、物理主机不能连接外网,虚拟机也无法连接外网。

VMware Virtual Machine host only (host-only), Bridging (bridge), Nat three network mode introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.