In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to set the net mode of Vmware network". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "Vmware network net mode how to set" it!
1. NAT (address translation mode)
As we just said, if your network ip resources are scarce, but you want your virtual machine to be able to connect to the Internet, NAT mode is the best choice. NAT mode enables virtual machines to connect to the Internet with the help of virtual NAT devices and virtual DHCP servers. The network structure is shown in the following figure:
NAT mode
In NAT mode, the host network card is directly connected to the virtual NAT device, and then the virtual NAT device and the virtual DHCP server are connected to the virtual switch VMnet8, thus realizing the networking of virtual machines. So we will wonder why we need a virtual network card VMware Network Adapter VMnet8? It turns out that our VMware Network Adapter VMnet8 virtual network card is mainly to realize the communication between the host and the virtual machine. We can verify it in the following setup steps.
First of all, set the options for NAT mode in the virtual machine, open vmware, click "Virtual Network Editor" under "Edit", and set NAT parameters and DHCP parameters.
Virtual network editor
NAT parameter DHCP parameter
Change the network connection mode of the virtual machine to NAT mode, and click "Edit virtual machine settings".
Edit virtual machine settings
Click Network Adapter and select NAT Mode
NAT mode
Then boot the system and edit the configuration file of the network card with the command vi / etc/sysconfig/network-scripts/ifcfg-eth0
Edit the network card configuration file
The specific configuration is as follows:
Specific configuration
After editing, save and exit, then restart the virtual machine network card, obtain the ip address dynamically, and use the ping command to ping the external network ip to test whether the network can be connected.
Test whether you can connect to the Internet
We talked about the function of VMware Network Adapter VMnet8 virtual network card before, so let's test it now.
Whether the virtual network card can be connected to ping is disabled.
From this point of view, it is true that the virtual function is not connected to the external network through the VMware Network Adapter VMnet8 virtual network card, so why should there be this virtual network card?
We said earlier that the role of VMware Network Adapter VMnet8 is to communicate between the host and the virtual machine. Next, we will test it with the remote connection tool.
Remote connection tool testing
Then, after enabling VMware Network Adapter VMnet8, it is found that the remote tool can connect to the virtual machine.
So, this is the NAT mode, which uses virtual NAT devices and virtual DHCP servers to connect virtual machines to the external network, while VMware Network Adapter VMnet8 virtual network cards are used to communicate with virtual machines.
At this point, I believe you have a deeper understanding of "how to set the net mode of Vmware network". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.