Virtualbox network settings in Windows [zz]

Source: Internet
Author: User
Tags traceroute command

Address: http://www.live-in.org/archives/789.html

 

 

The version used is 4.1.0. When you first install virtualbox, You must select either of the two network components:
Birdged Network
Host-only Network

After the installation, the Windows host has a "virtualbox host-only network" Local Nic. You can delete the host-only network Nic from the file-preferences-network in the virtualbox menu. Because some modes do not use this Nic.

The host machine IP address is 192.168.0.113 and the Linux Virtual Machine IP address is 192.168.0.13.

Virtualbox Virtual Machine network connection can be achieved through the following methods:
Not attached
Nat
Bridged Adapter
Internal Network
Host-only Adapter
Generic Driver

1) Not attached: it is equivalent to a situation where the virtual machine is not plugged in with a network cable and cannot connect to the host machine at this time.

2) NAT: Network Address Translation (NAT). a vm accesses the Intranet or Internet from the network connection of the host through NAT, but the Intranet or Internet hosts cannot access the virtual machine. Nat mode is sufficient for accessing the Internet, downloading files, and sending and receiving emails. However, there are many restrictions, such as incomplete support for ICMP protocol (traceroute command), failure to receive UDP broadcast packets, and failure to support transport agreements (such as PPTP) other than TCP and UDP ). The Virtual Machine IP address can be set to a static IP address or DHCP address. Here, the virtual machine uses DHCP to automatically obtain the IP address. In this mode, the Linux system is installed, you can set an end port forwarding for SSH management. Then SSH 192.168.0.113 can be connected to the Linux virtual machine.

3) bridged adapter: In the bridge mode, the virtual machine bridge is connected to a NIC of the host machine and directly exchanges data packets with the external machine, as if not passing through the host machine. The virtual machine can set an independent IP address. All network functions are the same as the real machines in the network. This mode can run various servers in the virtual machine. You need to modify the Virtual Machine IP address and gateway in the Virtual Machine and the same network segment as the host machine.

4) internal network: Intranet mode. The virtual machine is completely disconnected from the Internet, and only the internal network mode for communication between the virtual machine and the virtual machine is realized. Connect to each other by setting the same Intranet name. No...

5) Host-only adapter: Host Mode. In the virtualbox menu file-preferences-network, create a NIC named "virtualbox host-only network. Host-only can be regarded as a mixture of the Bridge Mode and the Intranet mode. The connection methods include Nic bridging and nic sharing. Bridging the host-only network card with the host physical network card will generate a Network Bridge. At this time, the Network Bridge will get a new IP address (the MAC address is the MAC address of the original physical network card ), no IP addresses are available for these two NICs. In a virtual machine, the IP address is set to the same network segment as the host machine, and the gateway is set to the IP address of the Network Bridge. At this time, the virtual machine can communicate with the host machine and the local area network of the host machine, and cannot communicate with the Internet.
Host-only is used in some special network debugging environments and requires that the real environment and virtual environment be isolated. In this case, you can adopt the host-only mode. Has anyone tried to connect to the Internet in host-only mode? Some people on the internet can say no...

6) Generic Driver: rarely used mode. The network interface is the same as the other one. You can select a driver included in virtualbox or extended package.Program. No...

PS: after a day of hard work, the host-only mode is still not configured for the Internet and the role of the Generic Driver is understood...

References:
Http://www.virtualbox.org/manual/ch06.html
Http://www.51testing.com /? Uid-121957-action-viewspace-itemid-226590

 

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.