In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
After installing the virtual machine, two virtual network cards VMnet1 and VMnet8 will appear in the network connection dialog box.
Let's start with a brief description of virtual devices:
VMnet0: Virtual switch for virtual bridge network
VMnet1: Virtual switch for virtual host-only networks
VMnet8: Virtual switch for virtual NAT networks
VMware Network Adapter VMnet1: Host Virtual NIC used to communicate with host-only virtual networks
VMware Network Adapter VMnet8: Host Virtual NIC used to communicate with NAT virtual networks
There are three modes for network configuration (IP\DNS\Gateway required): bridging, host-only, NAT (the most common).
(i) Bridging mode:
Treating a virtual machine as a computer in a local area network requires an IP. That is, we need to manually configure the IP address and subnet mask for the virtual machine, and we need to be on the same network segment as the host so that we can communicate with the host. (First, the network mode is set to: Bridge.) Then when configuring the network, the gateway is the same as the host, the first three bits of IP are set the same as the gateway, and the fourth bit is OK as long as it is not occupied. Finally, don't forget to activate the network card service network restart. ping the host, OK if it is connected)
(ii) NAT:
NAT mode is to let the virtual system access the public network through the network where the host machine is located by means of NAT(Network Address Translation) function. That is to say, NAT mode can be used to access the Internet in the virtual system. TCP/IP configuration information for a virtual system in NAT mode is provided by the DHCP server of the VMnet8(NAT) virtual network-in other words, the IP address of the shared host. (Detailed steps below)
(c) host only
In some special network debugging environments, it is required to isolate the real environment from the virtual environment, then you can use Host-only mode. In Host-only mode, all virtual systems can communicate with each other, but the virtual system and the real network are isolated, you can use Windows XP inside the Internet connection sharing (actually a simple routing NAT), to let the virtual machine through the host real network card access. TCP/IP configuration information of virtual system (such as IP address gateway address DNS server, etc.) is dynamically allocated by DHCP server of VMnet1 (Host-only) virtual network.
The following is a graphical description of how to configure NAT networks.
1. Activate VMnet of host 8.
Open the network connection, find VMnet8, right click Properties-Configuration-Enable this device. Verify that the status is Enabled, not Disabled.
2. Set the virtual machine network mode.
Click "NAT Settings" to see the gateway IP used by our virtual machine, and then click "OK". (Don't change that. However, some virtual machines need to be re-configured, that is, changed to other ones first, and then changed back before they can save them.)
3. Network configuration.
In the virtual machine, click System-Administration-Network at the bottom of the desktop. You will enter the following interface:
Double-click the device, set the gateway address to the address seen above, i.e. 192.168.159.2;IP address: 192.168.159.5 (as long as the first three digits are the same), select
Then select "hardware devices," usually the longest.
After confirmation,"activate." (Ps: If there is a physical address overwrite error, how to deal with it: click "Probe" to automatically get the address; or ifconfig, after checking the address, modify the MAC address)
4. Start the service:
5. Verify whether the network is unblocked
First check the local IP, command: ipconfig
Virtual machine ping host:
Host ping virtual machine:
So far, the network has been connected!
Again, with the command configuration, the simplest ~(alias is what, which is. Usually eth0)
1) View eth7 configuration:
2) Configure IP:
!! This method takes effect immediately, but it is not written to the configuration file, so it is necessary to reconfigure the next boot.
The configuration file for network settings can be found in/etc/sysconfig/network-scripts/ifcfg-eth0.
Modifying the configuration file is the most direct way!
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.