In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, share a wireless connection or a local connection to VMnet8.
In the network configuration, select Wireless connection, right-click Properties, and share.
The virtual network card VMnet8 is assigned by default, and IP:192.168.137.1 is assigned.
Second, configure VMnet8 in VMware
1) Edit > Virtual Network Editor. Select VMnet8. Configure the subnet IP:192.168.101.0. Remove the Use local DHCP service to distribute IP address to VMs option.
2) you can see that the IP of the virtual network card VMnet8 has become 192.168.101.1.
3) View the gateway. Edit > Virtual Network Editor > Select VMnet8 > Nat Settings. You can see that the IP of the gateway is 192.168.101.2.
Third, configure static IP of virtual machine
1) configure the gateway for CentOS.
# vi / etc/sysconfig/networkNETWORKING=yes HOSTNAME=centos64idx1 GATEWAY=192.168.101.2
2) modify the etho configuration of the network card. Configure IP to 192.168.101.130. Here, DNS1 must be set or the domain name cannot be resolved. (mainly modify IPADDR and DNS1)
# vi / etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0HWADDR=00:0C:29:CB:47:28TYPE=EthernetUUID=ea0bc70a-c20a-4507-b2ed-f9091a160f8cONBOOT=yesNM_CONTROLLED=yes#BOOTPROTO=dhcpBOOTPROTO=staticIPADDR=192.168.101.130NETMASK=255.255.255.0IPV6INIT=noDNS1=192.168.101.2
3) modify resolv.conf.
# vi / etc/resolv.confnameserver 192.168.101.2
4) restart the network card.
# service network restart
Fourth, check the network.
1) Virtual machine ping external network.
# ping www.baidu.com
2) the host ping virtual machine. Ping 192.168.101.130 in cmd.
Fifth, if you cannot access the public network, you can try to turn off local sharing.
It is OK for me to share wireless to vmare8 network card on my laptop. However, if you connect to the vmware8 card locally on a pc computer, you will not be able to connect to the external network. If you need to turn off sharing, you can ping baidu.)
A) problem: ping cannot be configured with baidu
B) configuration with normal access to the public network
The above article in the VMware Nat way to set static IP method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.
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.