Setting a static IP for CentOS7 under VMware can be divided into three main steps:
1. Setting up VMware-created virtual networks in Windows
2. Setting up VMware as a static IP
3. Set the CENTOS7 network as a static IP
First come to the control Panel
, click on "VMware Network Adapter VMnet8" to see the interface as shown
Click Properties and we can see the next screen.
Double-click the section in the red box, and you can see the following screen
The section in the red box can be modified or not modified, to see what you like, remember that the above numbers will be used, and then in Windows This section of the setup is complete, the following into the VMware
Click on the "Virtual network editor" to set up, anyway, my subnet IP did not change, or follow this to, careful point can be found that the subnet IP of the first three paragraphs and before the IPV4 IP is the same. Follow the following interface:
After clicking on the NAT setting, the following interface will be available
Gateway IP When I click on the NAT setting it is 192.168.11.2, so I don't have to do what settings, finally click OK, and then save the previous changes, the changes made in VMware ended
The following starts the setup of CentOS 7 and edits the file, which may vary depending on the system situation
Then follow the configuration changes, IP address of the last one can be set in between 10~160, anyway, I was set up
After modifying and saving, you can restart the CentOS Network service.
# Systemctl Retart Network.service
Here you can see that it's OK, and then try to connect remotely with putty.
Set static IP for CentOS7 under VMware