In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how Mac VMware Fusion CentOS7 configures static IP. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Undefined
Install CentOS7
Here we are going to install CentOS7 64-bit, so choose CentOS7 64-bit configuration
After we click on storage, vmware will automatically create a virtual machine for us, but we haven't added an image yet, so we need to shut it down first.
Set up an image for the newly created virtual machine
Let's talk about the reason why it is set to English, because English is a more international language. If something goes wrong when it is set to English, it will be an English error prompt. It is easier to find a solution on the Internet through English error prompt. If you make a mistake in Chinese, it is more difficult to find a solution.
Set the time zone. The default is New York, and it will be changed to Shanghai, China.
Configure static IP
1. Change the network configuration to nat mode
Enter the VMware Fusion vmnet8 directory through the Mac terminal
Cd / Library/Preferences/VMware\ Fusion/vmnet8
View nat.conf content
Cat nat.conf
Remember the data in the red box, which you need to use in the following configuration
View cat dhcpd.conf
Cat dhcpd.conf
Note that range is a range of static ip addresses that virtual machines are allowed to choose, and custom static ip addresses must be in this range (this article intends to use 172.16.104.130 as an example)
Get DNS (in mac system preferences-> Network->)
Log in to CentOS7
Enter the network-scripts directory of the virtual machine
Cd / etc/sysconfig/network-scripts
Find the file at the beginning of ifcfg-en. I have ifcfg-ens33 in the picture above.
Edit the file through vi
The following figure is the default configuration
Let's change it to the following configuration
After saving, restart the service to make the changes take effect
Service network restart
Ping to take a look at Baidu, successfully Ping to
Then we can connect remotely through tools such as SecureCRT. Please remember that if you go to another place to surf the Internet, you may find that your virtual machine is not connected. That is because the DNS address has changed. At this time, you just need to edit the ifcfg-enxxx file again and add the DNS address of your current network.
Such as:
DNS1=192.168.0.1DNS2=114.114.114.114
Let's test it through a SecureCRT connection
Thank you for reading! This is the end of this article on how to configure static IP in Mac VMware Fusion CentOS7. I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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: 269
*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.