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: