"Go" virtual machine NAT Network settings

Source: Internet
Author: User

I wrote the following configuration method others have published similar articles on the Internet. But I think it's written by someone else.
Things are not necessarily right, you have to test them yourself. As the saying goes: "Practice is the only standard to test truth." Here are my steps. Where hope is insufficient, the reader can point out.
1. You must check whether the VMware DHCP service and VMware NAT Service for your Windows system are starting with the two services. If it does not start, start.
2. Set the virtual network card for Windows VMware Network Adapter VMnet8 to IP and DNS server are automatically acquired.
3. Set your local connection settings to shared. Set the VMware network Adapter VMnet8 on a locally connected share "to allow other networks to connect through inteernet connections on this computer" option. Such as

4 Enter the virtual machine vm->settings click on the Internet mode in NetworkAdapter to select Nat.

5. In the Virtual Machine menu, click Edit->virtual Network Editor, under "Host Virtual network Mapping" to the right of VMNET8, select subnet Modify Subnet, I changed it to 192.168.0.0 and 255.255.255.0. Later on the right side of VMnet8, select NAT, modify the gateway, and I'll change it to 192.168.0.2. Turn on the Vmnet8 Nat feature in Nat.
Such as:



6. Click on Nat SETTINGSS to view the gateway (to note the gateway)

Click DHCP settings to view and note the DHCP address range ()


Okay, then we're going to be working on the redhat of the virtual machine.
Enter the Netconfig command in the terminal to enter the settings, with the upper and lower moving keys and enter the operation

For example, in the first column, the IP address is set to any of the DHCP scopes, Assume 192.168.0.129, the second column subnet mask is set to 255.255.255.0, the third column gateway address is set to the gateway address noted above, in this case 192.168.0.2, fourth column No, he's okay, and then ok down.

Once set up, enter the service network Restrat in the terminal to restart the network, then you can ping the gateway address, the example is 192.168.0.2

Ping Pass, good, the network setup is successful, you can use the Redhat to bring your own browser to the internet to try
Here also note that some situations may be because the DNS is not set up for reasons, so the domain name can not be resolved (this is the case, I do not know how to set, but will not affect the use), if you directly enter the Address field URL may not be able to access the Internet, to directly enter the IP can be, In the physical PC, first ping the www.baidu.com, as



Can see Baidu's IP is 220.181.6.19, OK, in the virtual machine redhat the browser address bar to enter 220.181.6.19,

OK, Internet settings are successful

Another, if need to open ftp,nfs and other services, in the terminal input redhat-config-services tick the corresponding VSFTP,NFS and then click Restart under the

"Go" virtual machine NAT Network settings

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.