LINUX Virtual Machine Network configuration

Source: Internet
Author: User

"Nat Mode"

One, can not access the Internet solutions detailed steps:

1, open the virtual machine-edit-Virtual machine network settings, the system will be automatically configured;
2, local connection-attribute-TCP/IP is set to get automatically;
3, open Vmnat Service and VMDHCP service;
4. Modify the virtual machine Local Area Connection-the property-tcp/ip is set to:
ip:192.168.x.130 (X is how much, look at your virtual machine network configuration, the bottom of the subnet IP address, the last one must be greater than 128 less than 255) ; Mask: 255.255.255.0 gateway: 192.168.x.2 (X is the same as above, last one must be 2) dns:192.168.x.2 (must be the same as Gateway)
5. Open Virtual machine-virtual machine-device-network-setting, select NAT option;
6. Open Virtual machine-virtual machine-device-network-link. See if the problem is solved?

Second, how to keep the IP of VMware virtual machine unchanged

When NAT mode is used, it is found that the guest's IP often changes

1. The VMware Network connection chooses the NAT mode.

2. See the Vmnet8,nat Gateway set to 192.168.X.2 in the NAT entry in the VMware Network settings.

3, in Windows, see all the network connection, you should find in addition to the original network card, there are more Vmnet1 and Vmnet8. Vmnet1 is the interface of Hostonly, and VMNET8 is the network interface of the NAT that we are going to use.

4, on the Windows host with ipconfig view VMnet8 IP address, is generally 192.168.x.1. At this time VMnet8 should be set to automatically obtain the IP, the current change to a static IP, and put this IP directly into the VMNET8, no gateway.

6, the network card IP gateway is set to 192.168.X.2 under Linux, the subnet mask is set to 255.255.255.0

7. Under Linux, the gateway is set to the IP 192.168.x.2 you just viewed.

8. DNS is set to 192.168.x.2 under Linux

9. Run Command service network Restart under Linux to restart the Linux Web service.

10, under the Linux ping 192.168.x.1, after Windows Ping 192.168.x.2 successfully confirmed that the host and virtual machines have been able to access each other, the virtual machine can now be shared host IP network.


LINUX Virtual Machine Network configuration

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.