当前位置:网站首页>Three network modes of VMware virtual machine
Three network modes of VMware virtual machine
2022-07-23 23:03:00 【Everything is lovely 33】
vmware It provides three working modes for our network card , They are bridging mode 、NAT Pattern 、 Host only mode . Different modes bring different Internet effects to virtual machines , Then how should we choose the appropriate network card mode ?
First , We can see windows The network card inside is set there , Installed on vmware after , There will be two more network cards :VMware Network Adapter VMnet1 and VMware Network Adapter VMnet8, These two network cards are installed vmware Only some , Corresponding to host only mode and NAT Pattern .
meanwhile , stay vmware Of the options bar of “ edit ” Under the “ Virtual Network Editor ” Can be seen in :VMnet0( Bridging mode )、VMnet1( Host only mode )、VMnet8(NAT Pattern )
Actually , What we see now VMnet0 Represents a virtual switch used in bridge mode ;VMnet1 Represents a virtual switch used in host only mode ;VMnet8 It is used for NAT Virtual switch in mode .
stay vmware Virtual network editor of vmnet1 and vmnet8 Information about , that Windows In the system VMware Network Adapter VMnet1 and VMware Network Adapter VMnet8 The information of these two network cards will also change .
Bridging mode (Bridged Pattern )
Bridging mode : Virtual machines can communicate with the local , It can also communicate with other real machines in the LAN or virtual machines in the bridge mode . In the bridge mode, the status of virtual machine is the same as that of real machine , All access the Internet through the external router , And in the same network segment as the real machine , If the virtual machine in bridge mode IP The address and the real machine are not in the same network segment , Then the bridge mode cannot access the Internet .
Bridge mode is to use virtual bridge to communicate between host network card and virtual machine network card . Under the function of bridge , It's similar to virtualizing a physical host as a switch , All virtual machines with bridging settings are connected to an interface of this switch , The physical host is also plugged into the switch , So all the network cards under the bridge are in switching mode , Mutual access without interference . In bridge mode , virtual machine ip The address needs to be in the same network segment as the host , If networking is needed , Then the gateway and DNS It needs to be consistent with the host network card .
If there are many machines in your LAN , If you use bridge mode , There may be IP Address conflict , Therefore, there are many machines that need to be networked in the LAN , Bridge mode is not suitable , More suitable for NAT Pattern ; But if you want the machines in the LAN to be interconnected , Then the bridge mode is more suitable .
NAT Pattern
NAT Pattern : stay NAT In the pattern , Host network card and virtual directly NAT Equipment connection , And then virtual NAT Devices and virtual DHCP The servers are connected together in a virtual switch VMnet8 On , In this way, virtual machine networking is realized . Then we'll find it strange , Why do I need a virtual network card VMware Network Adapter VMnet8 Well ? It turns out that our VMware Network Adapter VMnet8 The virtual network card is mainly for the communication between the host and the virtual machine . Virtual machines really rely on virtual NAT Devices and virtual DHCP Connect the virtual machine to the Internet .
If you are in the windows It's disabled inside VMware Network Adapter VMnet8 This network card , You will find that you can still surf the Internet in the virtual machine , Sure ping through www.baidu.com, But your real machine and virtual machine can't communicate , It's your xshell Unable to connect to the virtual machine , When you get rid of it VMnet8 Disable this network card , You'll find that xshell It can be connected again
NAT In mode , The machine can access the Internet , But it can't communicate with other machines in the LAN
Use NAT Pattern , There will be delays on the Internet , Because after layers of router forwarding 
Host only mode (hostonly Pattern )
Host only mode (hostonly): Virtual machines can only communicate with our real machines , It can be understood that they are all in the same network segment , The same vlan, But you can't communicate with machines in other network segments through routers , Only the host mode has no gateway configured .( If you give it by hand hostonly Virtual machines in mode are equipped with gateways and default routes , Then the virtual machine in the host mode can also be connected to the Internet normally )
Use host only mode , Will not communicate with other machines , So not IP Address conflict
In host mode only ,xshell Want to connect to the virtual machine , First of all, we need to keep the virtual machine IP Address with VMware Network Adapter VMnet1 Of IP The address is the same gateway , But not the same , such xshell You can connect .xhsell Connecting virtual machines , stay hostonly In mode , Through the machine VMnet1 Interface connected , therefore VMnet1 Want to follow IP The address is in the same gateway 
About the specific configuration of each mode , Check out this article :VMware There are three network modes of virtual machine
边栏推荐
- 121. The best time to buy and sell stocks
- TikTok推出多语种字幕和翻译工具
- Analysis of mobile semantics and perfect forwarding
- unity visual studio2019升级到2022版本(扔掉盗版红渣)
- Array - 11. Containers with the most water
- J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
- MySQL的 DDL和DML和DQL的基本语法
- About synchronizing data from computer to mobile
- Tap series article 9 | application development accelerator
- Raspberry pie SSH login
猜你喜欢

Tools in the tools package of Damon database (operate Damon database)

Mongodb - Introduction to the use of $exists and the combination of $ne, $nin, $nor, $not in query statements
![[jailhouse article] a novel software architecture for mixed criticality systems (2020)](/img/ab/b9269acfa5135fdaa3d0d8cc052105.png)
[jailhouse article] a novel software architecture for mixed criticality systems (2020)

Drools (1): introduction to drools

Rails搭配OSS最佳实践

Crazy God redis notes 10

Preparation for raspberry pie 3B serial port login

Build your own target detection environment, model configuration, data configuration mmdetection

DHCP: prevent rogue DHCP server in the network

Investment suggestions for overseas senior players (3) 2021-05-04
随机推荐
Tools in the tools package of Damon database (operate Damon database)
小说里的编程 【连载之十六】元宇宙里月亮弯弯
None and Nan, Nan, Nan
Programming in the novel [serial 20] the moon bends in the yuan universe
Inspiration from Buffett's shareholders' meeting 2021-05-06
FL Studio 20.9 update Chinese version host Daw digital audio workstation
Array -- 209. Subarray with the smallest length
Finding all paths between two points in a directed graph
Remember an experience of being cheated by the Internet
DeFi项目的盈利逻辑 2021-04-26
Basic syntax of MySQL DDL and DML and DQL
Getting started database days3
Mongodb - Introduction to the use of $exists and the combination of $ne, $nin, $nor, $not in query statements
Use boundschecker "suggestions collection"
EasyNVR平台如何关闭匿名登录?
[nuxt 3] (IX) server routing
[leetcode ladder] linked list · 203 remove linked list elements
Wechat applet implements a global event bus by itself
Is Ping An Securities' low commission account opening link safe? How to handle low commission
ospf终极实验——学会ospf世纪模板例题