Environment: Window 7, VMware 9, installation centos6.5
Install VMware it defaults to using the Nat,dhcp method to build the virtual machine's network, the default installation of centos6.5 will be able to access the external network such as (www.baidu.com), and to ping the real machine
The following is said, I want to statically configure IP How to configure the destination to reach can access the external network www.baidu.com and ping the real machine
Vim/etc/sysconfig/network-script/ifcfg-eth0
Device= "Eth0"
bootproto= "Static"
Hwaddr= "00:0c:29:22:80:xx"
ipv6init= "Yes"
Nm_controlled= "Yes"
onboot= "Yes"
Type= "Ethernet"
Uuid= "5603d0e0-daa4-42d1-ab39-a990f2xxxxx"
Ipaddr= "192.168.42.200"
netmask= "255.255.255.0"
Gateway= "192.168.42.2"
dns1= "192.168.1.1"
Description
How to find the gateway you can see the Virtual Netwok Editor in the first line of the VMware software interface, where you can find the gateway IP
DNS1 how to find, under the real machine cmd ipconfig/all found inside the DNS server is
After modifying the configuration, don't forget to restart the service/etc/init.d/network restart
VMware's NAT mode network configuration for static IP mode