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
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.