Reference http://tczhangle.blog.51cto.com/789538/330939
First, set the virtual machine to NAT mode, and the Vmware8 will appear.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m00/80/5e/wkiol1c-zn3y6edoaaan6rqb4ju648.png "title=" Image.png "alt=" Wkiol1c-zn3y6edoaaan6rqb4ju648.png "/>
Then look at this machine Vmware8 this NIC click, more info
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m01/80/61/wkiom1c-zdbsowe5aaayz99bqca254.png "title=" Image.png "alt=" Wkiom1c-zdbsowe5aaayz99bqca254.png "/>
The IP and gateway DNS that are displayed are set in the virtual machine
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m02/80/61/wkiom1c-ze2xqvemaaawaj6mnag023.png "title=" Image.png "alt=" Wkiom1c-ze2xqvemaaawaj6mnag023.png "/>
Vi/etc/sysconfig/network-script/ifc-eth0
Bootproto=static
ipaddr=192.168.18.3 the same network segment can be
gateway=192.168.18.2
dns1=8.8.8.8
dns2=192.168.18.2
Onboot=yes
: Wq
Service Network Restart
Ok!!!!
Ping the 192.168.18.1 on the virtual machine can ping to the host ping 192.168.18.3 can also pass
Finished
This article is from the "11617433" blog, please be sure to keep this source http://11627433.blog.51cto.com/11617433/1775455
How to make a virtual machine go online NAT