Configuration instructions for virtual machine NAT sharing online under VMware

Source: Internet
Author: User


operating system: Win Ten bit

virtual machines: Vmware workstation Ten

Linux operating system: Centos Linux + bit

The use of shared Internet access: The computer uses wireless Internet access, virtual machines using NAT to share the Internet.

One, host configuration

1. First determine the host ADSL can be normal Internet access , start " VMware dhcpservice" vmwarenat Service" (Thanks to VMware 's services slowing down the system, I changed the service to Manual, and then started it when needed)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/0F/wKiom1YRIwLRfsxaAADCnvPv4WQ393.jpg "title=" 1.png " alt= "Wkiom1yriwlrfsxaaadcnvpv4wq393.jpg"/>

2. on a network that can connect to the Internet , click Right, and select the properties tab, for example WLAN:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/0C/wKioL1YRIx2zF8jOAAHXEuKHsso318.jpg "title=" 2.png " alt= "Wkiol1yrix2zf8joaahxeukhsso318.jpg"/>

3. Select the " share" tab and select " Local Area Connection " in the Home network connection " , tick "Allow other network users to access the computer's Internet Connect to connect "

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/0F/wKiom1YRIxXgWTt6AAEc14farrg263.jpg "title=" 3.png " alt= "Wkiom1yrixxgwtt6aaec14farrg263.jpg"/>

4 , VMnet8 of the IP The address will automatically become 192.168.137.1 , the subnet mask is 255.255.255.0

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/0C/wKioL1YRIzDCl8K4AARzPI-ZeJ0051.jpg "title=" 4.png " alt= "Wkiol1yrizdcl8k4aarzpi-zej0051.jpg"/>

Second, Vmware workstation configuration

1. Click on the "virtual machine" menu bar ---select "Settings"- - Select "On the" Hardware "tab" Network adapter " --In the Right network connection" setting, select "NAT" Internet mode, as follows:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/0F/wKiom1YRIyeTX-2IAAIzGU8C_A8753.jpg "title=" 5.png " alt= "Wkiom1yriyetx-2iaaizgu8c_a8753.jpg"/>

2. Click on the "edit" menu bar and select "Virtual network editor ... " "

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/0C/wKioL1YRI0GDP1fjAAJPTrd3BQc061.jpg "title=" 6.png " alt= "Wkiol1yri0gdp1fjaajptrd3bqc061.jpg"/>

3 , set gateway and port forwarding rules

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/0F/wKiom1YRIzjhcqU1AAGIKiPCWq8087.jpg "title=" 7.png " alt= "Wkiom1yrizjhcqu1aagikipcwq8087.jpg"/>

Third, Linux of the IP Set

1 , edit /etc/sysconfig/network-scripts/ifcfg-eth0 , set ipaddr , GATEWAY , DNS1

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/0C/wKioL1YRI1Pwvm2GAAF767xmlL0067.jpg "title=" 8.png " alt= "Wkiol1yri1pwvm2gaaf767xmll0067.jpg"/>

2 , restart the network: Service Network Restart , log in using a browser www.baidu.com test,OK, configuration successful

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/0F/wKiom1YRI0qw_hHYAAGriAoVA90589.jpg "title=" 9.png " alt= "Wkiom1yri0qw_hhyaagriaova90589.jpg"/>


Configuration instructions for virtual machine NAT sharing online under VMware

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.