Settings for network type (NAT, bridging, etc.) in VirtualBox, NIC, IP address, etc.

Source: Internet
Author: User
Tags pack

Virtual machine, whether it is VirtualBox or VMware, for network settings, generally support NAT, bridge network adapter and other configuration.

Here is the network connection in VirtualBox to explain its specific meaning.

Here, the main content, or from the translation from the VirtualBox website about the interpretation of the network:

Chapter 6. Virtual Networking

The goal is not how complete the translation is, but to be committed to describing the problem clearly, including its meaning and how it is configured.

network settings in the VirtualBox

Support up to 8 PCI network cards per virtual machine in VirtualBox;

For each network card, you can also set: Select which (virtualized, one model) network card in the virtualization mode of the NIC configuration nic two ways

Network cards can be configured via graphical interface and command line: graphical interface

interface, choose virtual Machine---settings--Network card

Configure the network card in the graphical interface, up to 6 types of network cards are optional:

AMD pcnet PCI II (am79c970a);

AMD pcnet FAST III (am79c973, the default);

Intel pro/1000 MT Desktop (82540EM);

Intel pro/1000 T Server (82543GC);

Intel pro/1000 MT Server (82545EM);

Paravirtualized network adapter (virtio-net)

Corresponds to 6 items in the "Control Chip" list:

command Line

There is a command-line tool called Vboxmanage MODIFYVM that can be used to configure the NIC.

In the command line mode, the optional network card type, up to 8;

About the command line, how to configure, here is not much to explain, need to see for themselves: Vboxmanage MODIFYVM

the default NIC selection

Because PCnet Fast III has the best compatibility, almost all systems are supported, even the GNU GRUB Boot Manager is supported, so the general default is PCnet FAST III.

However, if you find that some systems, such as Windows Vista, do not have pcnet FAST III drivers, then instead of the Intel pro/1000 series network adapters.

about paravirtualized network adapter (virtio-net)

If you choose Paravirtualized Network Adapter (virtio-net), then you need to ensure that there is a corresponding, special software interface, to achieve the corresponding network processing.

There are many systems that support Virtio: Linux 2.6.25+: Enable the relevant configuration yourself, Windows 2000/xp/vista: Need to download and install themselves from windowsguestdrivers;

5 Types of network in VirtualBox –not attached not specified

Meaning:

Similar to, the virtual machine has a network card, but does not plug in the network cable;

Objective:

Used to "Tell" the virtual machine, network disconnected, causing the network in the virtual machine, reconfiguration

Network address translation nat–network addresses translation (NAT)

Objective:

If you just need to use a virtual machine to go online, download something, check the mail and so on, then with this, the default, configuration, is enough.

Disadvantages:

There are some restrictions on file sharing, which can be consulted in the section called "NAT limitations";

Effect:

In a virtual machine, there is no independent IP of its own .

Virtual machines are imaginary and do not exist with real networks.

The virtual machine can access the host, but the host cannot access the virtual machine.

Tips:

VirtualBox, this NAT configuration is used by default. Bridging network card –bridged networking

Effects and effects:

The virtual machine has a separate IP, just like the other computers in a local area network.

As a result, you can find the same effect in the virtual machine as the network Places you see in the Host (xp,win7),

You can see all the other computers in the same LAN, and of course the computer that hosts the host.

So, as long as the host itself is shared out of the folder, then in the virtual machine must also be able to access the shared folder.

Tips:

Virtualbox, a single driver in the host is used to process network data. From the network data, filter out the data of your virtual machine.

So the driver, also called the Network filter (NET filters).

Internal network –internal Networking

Effects and effects:

Similar to the bridge adapter;

However, the current virtual machine can only be accessed by, and other virtual machines that belong to the same host.

host only (HOST-ONLY) adapter –host-only Networking

Objective:

Used to create a network without a host's physical network card, which only hosts host and some virtual machines under it.

Mechanism:

A virtual network interface, similar to loopback, is created internally;

Effects and effects:

Can be understood as the effect of bridging the network card and mixing the internal network.

Between the different virtual machines and the host, it is like connecting a physical network adapter switch in the middle, it is possible to communicate with each other.

However, of course, the physical network interface does not exist, so the virtual machine and the external network is not able to talk and communication.

Tips:

This feature is newly added after the Virtualbox 2.2 release.

Universal Drive –generic Networking

Effects and effects:

Run to select the NIC driver.

The driver is VirtualBox internal, or is added through the extension pack.

Tips:

1. This mode is rarely used in practice.

2. For extension pack, do not know the reference:

Meaning and difference between the guest additions (client-side enhancement package) and extension Pack (Extended enhancement Package) in the VirtualBox

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.