VirtualBox Configuration Virtual network card (bridge), to achieve host-virtual Machine network Interoperability (graphics and text tutorial) _virtualbox

Source: Internet
Author: User
Tags oracle vm virtualbox vm virtualbox

Online search out of the more chaotic, speaking of the shady, so according to their own once, to confirm the feasible way, make a backup to facilitate future inspection.
Environment:

Ubuntu installed in Oracle VM VirtualBox, the specific version name is: UBUNTU-14.10-SERVER-AMD64

STEP1:

VirtualBox in the virtual machine state, as shown in the diagram to set:

Step 2:

Virtual machine powered on, enter command: sudo ifconfig or sudo ifconfig-a view current NIC configuration

View current IP Address

STEP3:

Enter command: vim/etc/network/interfaces

Open the NIC configuration file, add eth1, and save the changes. The contents of the modified file are as follows:

# This file describes the "network interfaces available on your system
# and" Activate. For more information, interfaces (5).

# The Loopback network interface
Auto lo
iface lo inet Loopback

# The Primary network interface
Auto eth0< C7/>iface eth0 inet dhcp

auto eth1
iface eth1 static
#本机当前ip地址, through inet query out of the can
address 192.168.56.11
netmask 255.255.255.0

STEP4:

Reboot the virtual machine (reboot the host computer if necessary), and command ifconfig to view the current network card settings. Can see eth1, and have a value, you can.

STEP5:

1 in Windows cmd, command: ipconfig view current IP

2 in Ubuntu, enter the command: Ping 192.168.56.1,enter, as shown below:

Virtual machine Access host IP, passed.

Similarly, the host CMD ping virtual machine IP, the same pass:

Results:

At this point, the virtual machine and Host Bridge network card successfully, IP interoperability, and the virtual machine successfully through the host network access to the extranet.

PS: About the configuration file some content of the specific meaning, I did not examine, nor too clear. This article is also after a period of time, recalling the written, configuration steps if there are omissions, welcome correction.

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.