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 > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of "the method of static IP connection to external network in NAT mode in centos". Xiaobian shows the operation process to everyone through actual cases. The operation method is simple, fast and practical. I hope this article "the method of static IP connection to external network in NAT mode in centos" can help you solve the problem.
1. In the cmd command line of the physical machine, use ipconfig command to view ip configuration. As shown in the figure, the subnet ip of the physical machine is 192.168.0.0, subnet mask is 255.255.0, and gateway is 192.168.0.1.
c:\users\huanongying>ipconfig
2. Close the virtual machine where ip will be configured, and then click Edit-> Virtual Network Editor in the vmware main panel
3. Select nat mode, set subnet ip and subnet mask to be consistent with physical machine, refer to the values obtained in step 1
4. Click nat settings to set the gateway value to be consistent with the physical machine, click OK to save the configuration and return to the virtual network editor panel, click Apply Yes to step 3 and step 4 to take effect (it is best to click Apply, at first, because there is no application, so you cannot log on to the network), and finally click OK to exit the virtual network editor.
5. Find the vmnet8 NIC in the network connection of the physical machine, configure the IP address, subnet mask and preferred DNS (you cannot connect to the external network without DNS). IP network segment and physical host consistent is 192.168.0, host segment is 1, subnet mask and physical machine consistent, dns
Can be configured to be the same gateway as the physical machine
6. Start the virtual machine, configure static ip, except for the host segment of ip address, I configure 131 here, other configurations are consistent with physical host, and save configuration
7. Restart the network card, ping Baidu try, through, you can surf the Internet
About "the method of static IP connection to the external network in NAT mode in centos", the content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the industry information channel. Xiaobian will update different knowledge points for you every day.
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.