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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Write before the opening:
First of all, thanks to Mo Tianlun's 3 free public classes, from virtual machine installation, linux installation, to oracle database installation, Jiang teacher took me to get started, many times stuck in the network configuration, but also checked a lot of information, tried N times finally network connection success!
NAT Principle
WMWare NAT is equivalent to setting up a virtual router between virtual machines and hosts. Note that the last bit of gateway IP is set to 2, not 1.
Because it is equivalent to setting up a router, the network segment in the virtual machine can be different from the physical machine. My physical machine segment is 10.0.1.
Nat configuration
1. Open Virtual Network Editor and add Virtual Network VMnet8.
Subnet IP: 192.168.80.0
Subnet mask: 255.255.255.0
Gateway IP: 192.168.80.2
If the gateway IP is 192.168.80.1, the test network connection fails.
VMnet8 can be seen in the physical machine network connection
2. Edit virtual machine settings and add NAT network card (note that the first network card is used here)
3. Configure linux network, DNS and gateway address are the same, test found DNS can also use physical machine DNS (configure the first network card)
4, test the network, in the physical machine and linux system test separately
ping IP address
knowledge expansion
ifconfig View network configuration status
Go to/etc/sysconfig/network-scripts directory
View Network Profile ifcfg-ens33
information on
configured
description
DEVICE=ens33 NIC device name, ens33 indicates the first NIC BOOTPROTO=none Whether to automatically obtain IP (none, static, dhcp) IPV6INIT= yesIPv6 Whether to enable UUID Unique ID ONBOOT=yes Whether to start with network services The current NIC takes effect DNS1 =192.168.80.2DNSIPADDR=192.168.80.129IP address GATEWAY=192.168.80.2 Gateway summary
1. In the case of not mastering the principle at the beginning, NAT mode virtual network and physical machine network use the same network segment, which is unnecessary;
2. The last bit of the virtual network gateway is 1. Because it is occupied, the connection test has been unsuccessful. The virtual network gateway and the Linux gateway must be the same.
3. NAT card is not set for virtual machine;
4. NAT network card does not correspond to the network card configuration in Linux system;
5, the network configuration in Linux, first automatically obtained, and then manually configured.
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.