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.