Because of the need to configure a fixed IP, on the internet for a long time finally found a viable example, the configuration was successful.
1. First access to your gateway
Convenient to use the Select menu bar in the cento system configuration: edit->virtual Network Editor
Select VMnet8, click Nat settings to view the gateway address: The gateway IP here is 192.168.110.2
The next step is to get to the chase.
2. Set up a CentOS static IP:
Three configuration files are involved, namely:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/resolv.conf
A. First modify the/etc/sysconfig/network as follows:
Specifies the gateway address.
B. Then modify the/etc/sysconfig/network-scripts/ifcfg-eth0:
C. Final configuration under/etc/resolv.conf: (In fact, this step can be omitted, the above set the DNS server address after the system will automatically modify this configuration file.) )
This is a simple few steps after the virtual machine's IP has been 192.168.110.129.
Once the IP is fixed, you can then set the host
Finally, this configuration must be configured to change the virtual machine configuration Network connection mode to NAT mode Oh.
"Go" This article turns from: http://www.cnblogs.com/zhja/p/3964159.html
Effectively available. Favorite Spare
"Go" VMware virtual machines in CentOS set fixed IP