Virtual Machine Internet Settings

Source: Internet
Author: User

Recently in the study of Linux, and then set up a virtual machine to surf the internet when looking for a lot of tutorials, but the feeling is not written in detail, here to set their own process and encountered problems recorded. Convenient for the people behind the reference. Because VMware virtual machines have three ways to surf the Internet: Bridged, host-only, NAT. I am fixed IP Internet, so the choice of Nat mode, in fact, three kinds of ways almost. The specific differences can be referred to this blog post. Here's an example of a NAT approach.

1. Tools
    1. vm10,redhat5.1 (virtual machine)
    2. Win7 System (host)
2. Steps

First install the virtual machine and Linux system, this is not the focus of this article, do not say. Can self-Baidu tutorial.

First step: Set up the host network

1, first determine whether we open the figure in the red circle of the two services.

The default should be turned on, some people may be computer 360 and other software set up the boot does not start, you need to manually start.


2, after installing the virtual machine, there will be three network options in the diagram above.

3, right click on the local connection share, according to the above diagram settings, in the drop-down menu, select VMnet8.

Step two: Set up the VM's network

1. Open the VM and temporarily do not turn on the virtual machine.

1. Open the virtual machine settings, as set in the red box. The inside of the circle is hooked up.

2, select Edit, Virtual network Editor, open as shown. Follow the settings. Where the subnet IP (the first three digits, the last one with 0 can be) and the subnet mask must be the same as your own host use.

3, NAT settings inside, where the IP address must be the same as the IP address you use for your own host.

4,DHCP settings such as. Note that the gateway must be on the same gateway as your IP.
At this point, we are all ready for work.

Step three: Set up the network inside Linux

1, open the Linux system "management" network. The above screen will appear, click Edit.

2, according to the figure inside the set, automatic acquisition of IP. Go back to the previous step diagram. Click on the Activate inside. The system will automatically acquire the IP. So the whole network is set up.

Step three: Start surfing the Internet

You can start surfing the Internet by turning on the Firefox browser that comes with your system. ^_^

Virtual Machine Internet 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.