To establish a permanent "host interface" on the http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu host", perform the following steps:
1. First install the Bridging program (bridge-utils). You can execute the following command, and the code is:
sudo apt install bridge-utils
2. Then you have to modify the contents of the file/etc/network/interfaces, the following is a simple example, to create a bridge called Br0, and add eth0 to it, use DHCP to obtain the IP address.
Auto br0 iface br0 inet DHCP bridge_ports eth0
You can make the appropriate changes as needed, and you can also assign it a net state address. For examples and resolutions, refer to the following file: a/usr/share/doc/bridge-utilities/readme. Debian.gz and B)/usr/share/doc/ifupdown/examples/network-interfaces.gz.
3. Restart networking on host, the code is:
sudo/etc/init.d/networking restart
Each time you start your host system, this bridge will automatically be generated again.
4. In order to produce a permanent name vbox0 (which must be called VBox, followed by a number) and added to the resulting bridge network, use code:
sudo vboxaddif vbox0 <user> br0 # Use your name to replace <user>
To tell VirtualBox to use this interface, choose to fold a virtual machine, configure the network card as: Checkmark to:host Interface Host Interface Settings Interface name:vbox0
This kind of bridge network card is OK.