Configure bridging network in Linux to enable virtual machines to __linux the internet

Source: Internet
Author: User

The main purpose of using bridging mode is to have the virtual machine also be able to surf the Internet, thus having this article.

1, set up the virtual machine network connection mode


When setting the connection mode of the virtual machine network cable, note that the first selection of bridge mode, the second interface name must use the same network card with the host, and then the next access network cable is required, otherwise it will show the network cable did not plug the feeling, the type of permissions, virtual machine and host is two-way, can ping through


2. Check host local connection mode


The main thing here is to check the local network connection, to see if the virtual machine is using the same network card, if not the same network card, the virtual machine can not access the problem.

3, view the host IP address and gateway, easy to set the virtual machine IP address and gateway

4, set the virtual machine IP address and gateway, in the setting of IP, the virtual machine and host must be in the same network segment, and the gateway is to the same


5, configure DNS resolution, the DNS resolution used here is the direct use of Google's DNS server


6, restart the virtual machine network services, so that the relevant settings for effective


7, test whether can connect the network


8, related issues

If you are unable to connect to the network after the above steps, follow these steps:

A check firewall settings, first shut down the firewall for testing

b Check the SELinux settings, first close the SELinux for testing

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.