当前位置:网站首页>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
边栏推荐
- What if the content of software testing is too simple?
- [C language] address book (static version)
- ospf终极实验——学会ospf世纪模板例题
- Niuke C basic exercises
- DeFi項目的盈利邏輯 2021-04-26
- TAP 系列文章8 | TAP 学习中心——通过动手教程来学习
- Array -- 27. remove elements
- ES6箭头函数的使用
- fl studio 20.9更新中文版宿主DAW数字音频工作站
- The ultimate experiment of OSPF -- learn the example of OSPF century template
猜你喜欢

The ultimate experiment of OSPF -- learn the example of OSPF century template

Mongodb - Introduction to the usage of logical operators not, and, or, nor in query statements

Matlab wavelet toolbox import signal error (doesn't contain one dimensional single)

FL Studio 20.9 update Chinese version host Daw digital audio workstation

Remember an experience of being cheated by the Internet

Getting started database Days1

Rails with OSS best practices

EasyNVR平台如何关闭匿名登录?

Lixia action 2022 Yuanqi digital round table forum will be launched soon

Series of articles | the way to advance the microservice architecture in the cloud native era - best practices of microservice splitting
随机推荐
Financial products with an annual yield of 6%
【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf
QT set cache and compile output path
狂神redis笔记10
FL Studio 20.9 update Chinese version host Daw digital audio workstation
J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
Light up the LED light of little bear patting learning
[leetcode ladder] linked list · 206 reverse linked list
D2admin framework is basically used
砺夏行动 2022|源启数字化圆桌论坛即将上线
(CVPR-2022)BiCnet
Is the height of binary tree [log2n]+1 equal to log2 (n+1)
Finding all paths between two points in a directed graph
砺夏行动|源启数字化:既有模式,还是开源创新?
Sword finger offer II 115. reconstruction sequence
Lixia action | Yuanqi Digitalization: existing mode or open source innovation?
Microsoft SQL Server database language and function usage (XIII)
After reading this article, thoroughly understand grpc!
TAP 系列文章9 | 应用开发加速器
Mongodb - Introduction to the usage of logical operators not, and, or, nor in query statements