In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how VM installed virtual machines access each other in a local area network." The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn "how VM installed virtual machines access each other in a local area network."
The author's local Win10 operating system installation environment is as follows:
VM 15 Pro
Install CentOS 7
This chapter mainly realizes that the installed virtual machine needs to be accessed by other machines in the local area network. The following is to configure the network. First, VM supports three network adapter modes:
host mode
bridge mode
Nat mode
If the virtual machine is to be accessed by other machines in the local area network, then we need to select the bridge mode here, and the specific settings are as follows:
1. Find the network adapter normally used by the current host, right click the wifi icon or network cable picture in the lower right corner-> Open the network and Interl settings, the author appears here as follows:
2, and then stand-alone Ethernet-> change adapter options, the author here appears similar to the following figure:
3. Right-click Adapter-> Properties, similar to the following figure appears (check Bridge Protocol):
4. Remember the name above
5. Go back to VM, click Edit-> Virtual Network Editor, and something like the following will appear:
6. Click to change settings. The specific configurations are as follows:
Select a virtual machine-> Edit virtual machine settings
8. Choose from the following:
9. Local Win + R, enter cmd Enter, enter ipconfig name to view local NIC information:
9. Open the virtual machine, log in, edit the network card, the network card here is ens33:
vi /etc/sysconfig/network-scripts/ifcfg-ens33
10. Enter the following:
Modifications: BOOTPROTO="static"ONBOOT="yes"UUID="403bc27b-ed4b-4321-a0a7-cb98942ba5fd" #If cloned, this needs to be modified manually Add an item to the end of the other values: IPADDR=192.168.1.101 #This corresponds to the network segment 192.168.1.3 ~ 192.168.1.254 output by ipconfig above. Just choose one randomly, but do not be the same as the host. NETMASK= 255.255.0GATEWAY = 192.168.1.1 #This corresponds to the default gateway DNS1=8.8.8.8 output by ipconfig above.
11. Restart the NIC
systemctl restart network
12. Now other machines in the local area network can ping the virtual machine directly for testing.
Thank you for reading, the above is "VM installed virtual machines how to access each other in the local area network" content, after learning this article, I believe that we have a deeper understanding of VM installed virtual machines how to access each other in the local area network this problem, the specific use of the situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.