Operating system: Win7 flagship version of the bit
Virtual machine: Vmware Workstation 8
Linux operating system: Redhat Linux 5.5 Server Edition
Choice of shared access: This machine win7 use ADSL Internet, virtual machine using NAT way to share the Internet.
Vmware shared access to the knowledge of the repository:
1. When the virtual machine is installed, two VMware virtual network adapters will be installed automatically VMnet1 and VMnet8
2. By default: Set up NAT to use the VMNET1 virtual adapter, set hostonly Internet access mode using VMNET8 virtual video device
3. After using NAT to surf the internet, the IP address is generally assigned as follows by default:
192.168.XXX.1: Host VMware network Adapter VMNET8 adapter IP address.
192.168.xxx.2:nat Gateway IP
192.168.xxx.3 to 192.168.xxx.127: virtual machines setting IP pools that can be set when statically assigning IP
192.168.xxx.128 to 192.168.xxx.254: Virtual machine Setting dynamic address pool when DHCP dynamically allocates IP automatically
192.168.203.255: Broadcast address (reserved address, not available).
Configuration process:
First, host Configuration
1. First determine the host computer ADSL normal Internet, start the "VMware DHCP Service" "VMware NAT Service" (due to VMware's services slowed down the system, I changed the service to manual, need to restart)
2. Shared ADSL broadband connection, on the ADSL "broadband connection" on the Click "Right", select the "Properties" tab
3. Select the Sharing tab, select Local Area Connection in your home network connection, and check "Allow other network users to connect through this computer's Internet connection"
4. Automatically pops up the following dialog box at this time, click "OK"
5. Click the "OK" button on the "Sharing" tab to automatically eject the dialog box below and click "OK"
The IP for the local connection is now set to: 192.168.137.1, subnet mask: 255.255.255.0
Note that this IP address is Linux DNS, how to know it. At the end of this article you will note
Use ipconfig to view VMnet8 IP address: 192.168.***.1 here each person's network segment may be different, so in the configuration of Linux IP address and gateway, according to the network section here to change
Second, Vmware workstation configuration
1. Click on the "VM" menu Bar--Select "Setting"--select "Network Adapter" Under the Hardware tab--select "NAT" in the Right "network connection" setting, as follows:
2. Click "Edit" menu bar, select "Virtual Network Editor ..."
2. Select "VMnet8"--check "Connect a host Virtual adapter to this network", and then click "OK"
Third, Linux settings
1. Login to the Linux operating system, configure the network, as shown below:
2. Double-click the device "Eth0"
3. Configure static IP as follows, click "OK" to save
4. Configure DNS, and then save, as shown in the following figure:
5. After the configuration, restart the Linux operating system. Log in using the browser www.baidu.com test, OK, configuration successful
Description
1. View the gateway IP of NAT
Enter "Virtual network Editor"--select "NAT Setting"
You can see Gateway ip:192.168.126.2
2. When configuring a host's network share, you may be able to error the "Cannot enable shared access" workaround (0x80004005)
This is because we disabled Windows Firewall because the network share requires the support of the firewall, the solution: Start Windows Firewall in the service