Linux Internet access, I know

Source: Internet
Author: User
Linux Internet access, I know-Linux general technology-Linux technology and application information. The following is a detailed description. I went online today to find out how to access the Internet in Linux. After a day, I did not find a good webpage guide. I finally solved it with my personal efforts. I will write it down for your convenience so that you can spend less time looking for such unnecessary things.

1. view the attributes of the NIC connected to the Internet, select the "advanced" label, set to allow sharing, and set the allowed network interface to vmnet1.

2. Let's take a look at the attributes of VMnet1, take a look at the TCP/IP protocol, and find that it has been automatically set to 192.168.0.1/255.255.255.0, and set DNS: 192.168.0.1.


3. Go to VMWARE (the linux virtual machine is not running), select VM menu-> setting-> Ethernet-> Custom-> VMnet1

4. virtual machines running linux. Set the IP address of your eth0 to static (if static IP address is not selected during installation ). Press the Red Hat icon-> system settings-> network (or other methods you know) ip Address: 192.168.0.2 (or other addresses on this network segment)

Netmask: 255.255.255.0

Default gateway: 192.168.0.1

DNS: 192.168.0.1

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.