Notes on Dual-network card configuration under virtual machine + Ubuntu

Source: Internet
Author: User
Note: The basic concept is that a dual-network interface is a virtual network interface card of Ubuntu. It does not actually have two network interfaces. Therefore, the two NICs cannot work at the same time. They can switch back and forth between the two NICs. I configure dual-nic for convenience, that is, when my VM needs to connect to the Internet (such as downloading resources from the Internet, updating resources from the server, etc ), switch to nat mode. When I want ubuntu to have an independent fixed ip address as the access object in the LAN (for example, I need to use a virtual machine as a server mounted to nfs), I will switch

Note: The basic concept is that a dual-network interface is a virtual network interface card of Ubuntu. It does not actually have two network interfaces. Therefore, the two NICs cannot work at the same time. They can switch back and forth between the two NICs. I configure dual-nic for convenience, that is, when my VM needs to connect to the Internet (such as downloading resources from the Internet, updating resources from the server, etc ), switch to nat mode. When I want ubuntu to have an independent fixed ip address as the access object in the LAN (for example, I need to use a virtual machine as a server mounted to nfs), I will switch to the bridged mode.

Configuration steps:

1. Shut down the Virtual Machine. take the following steps: Open the terminal and enter sudo halt.

2. VM --> setting --> Network adaptor --> add --> Network adaptor --> next ...... Then follow the boot configuration.

3. Configure the IP addresses of VMnet1 and VMnet8, and modify the IP addresses in the configuration of the adapter. If you do not configure the IP addresses, you can directly:

4. Configure the Virtual Network Editor and Editor --> Virtual Network Editor of the Virtual Machine. For details, go directly:

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.