Networking linux systems under virtual machines

Source: Internet
Author: User

Networking linux systems under virtual machines

I have never used a virtual machine to access the Internet. It took me some time to understand today.

We chose the NAT method to access the Internet. Let's go up first. As to why we did this, we will talk about it separately later.

First, we need to enable the Network settings in the Virtual Machine. Edit --> Virtual Network Networker ...... :
 

You must first check the network segments supported by the Virtual Machine. My network mask and gateway (my network mask is 192.168.226.2) are displayed at 192.168.226.0/24 ). These are all found in the above settings.
The following is the settings:

Edit --> set IP address, subnet mask, and gateway (192.168.226.2 ). The IP address should be within the range of the virtual machine settings we have seen before.
DNS settings are the same as those on your local host.

Next, set the NIC: IP address of VMware... VMnet 8, subnet mask, and gateway.
The IP address here should not be the same as the IP address just now, but it should still be within the range set by the virtual machine. No need to set DNS.

In this way, you can access the Internet.

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.