Install Linux on VMware and share the Internet with local clients through ADSL

Source: Internet
Author: User

Operating System: 64-bit for win7 flagship Edition

Virtual Machine: Vmware workstation 8

Linux: Redhat Linux 5.5 Server

Shared Internet access: the local computer win7 adopts the ADSL Internet access mode, and the virtual machine uses the NAT Internet access mode.

Vmware shared Internet knowledge reserve:

1. After the virtual machine is installed, two Vmware virtual network adapters VMnet1 and VMnet8 will be automatically installed.

2. By default, the VMnet1 virtual adapter is used for NAT Internet access and the VMnet8 virtual video player is used for hostonly Internet access.

3. After using NAT to access the Internet, the IP address is generally allocated as follows by default:

192.168.XXX.1: IP address of the host machine VMware Network Adapter VMnet8 Adapter.

192.168.XXX.2: NAT gateway IP Address

192.168.XXX.3 to 192.168.XXX.127: IP address pool that can be set when the Virtual Machine Sets static IP Address Allocation

192.168.XXX.128 to 192.168.XXX.254: the dynamic address pool when the Virtual Machine Sets DHCP to automatically allocate IP addresses

192.168.203.255: broadcast address (Reserved address, unavailable ).

Configuration process:

1. Host Configuration

1. first, make sure that the host machine ADSL can access the Internet normally and start the "VMware DHCP Service" and "VMware NAT Service" (because the VMware Service slowed down the system, I changed the Service to manual, start again when needed)

2. For Internet shared bandwidth connections, right-click ADSL Broadband connections and select the Properties tab.

3. Select the "share" tab, select "Local Connection" in the home network connection, and select "allow other network users to connect through the Internet connection of this computer"

4. The following dialog box is displayed automatically. Click "OK"

5. Click "OK" on the "share" tab. The following dialog box is displayed automatically. Then, click "OK"

The IP address of the local connection is set to 192.168.137.1, And the subnet mask is 255.255.255.0.

Note that this IP address is the DNS of Linux. How can this problem be solved? It will be explained at the end of this Article

 

Use ipconfig to view the VMnet8 IP Address: 192. 168. ***. 1 here, each person's network segment may be different. Therefore, When configuring the Linux IP address and gateway, you must change the network segment according to the network segment here.

Ii. Vmware workstation configuration

1. Click "VM" menu bar -- select "setting" -- select "Network Adapter" under the Hardware tab -- select "NAT" in the "Network connection" setting on the right, as shown below:

2. Click the "Edit" menu bar and select "Virtual Network Editor ..."

 

2. Select "VMnet8" -- check "Connect a host Virtual adapter to this network", and then click "OK"

 

Iii. Linux settings

1. log on to the Linux operating system and configure the network, for example:

 

2. Double-click the device "eth0"

3. Configure the static IP address as follows, and click "OK" to save

4. Configure DNS and save it, for example:

5. After configuration, restart the Linux operating system. Use a browser to log on to www.baidu.com for test. OK. The configuration is successful.

 

Note:

1. view the NAT gateway IP Address

Go to "Virtual Network Editor" -- select "NAT Setting"

The Gateway IP address is 192.168.126.2.

2. When configuring network sharing for the host, the error "shared access cannot be enabled" may be reported (0x80004005)"

This is because Windows Firewall is disabled because network sharing requires Firewall support. Solution: Enable Windows Firewall in "service ".

From andgoo's column

Related Article

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.