Virtualbox bridging network configuration under UbuntuLinux

Source: Internet
Author: User
Article title: Virtualbox bridging network configuration under UbuntuLinux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1. install required software

Sudo apt-get install uml-utilities bridge-utils

2. add your account to the software group

Sudo gpasswd-a bruce uml-net

3. modify the interface file as follows:

Sudo vi/etc/network/interfaces

Auto lo

Iface lo inet loopback

Auto tap0

Iface tap0 inet manual

Up ifconfig $ IFACE 0.0.0.0 up

Down ifconfig $ IFACE down

Tunctl_user bruce

Auto tap1

Iface tap1 inet manual

Up ifconfig $ IFACE 0.0.0.0 up

Down ifconfig $ IFACE down

Tunctl_user bruce

Auto tap2

Iface tap2 inet manual

Up ifconfig $ IFACE 0.0.0.0 up

Down ifconfig $ IFACE down

Tunctl_user bruce

Auto br0

Iface br0 inet static

Address 192.168.1.188

Netmask 255.255.255.0

Broadcast 192.168.1.255

Gateway 192.168.1.1

Bridge_maxwait 0

Bridge_ports all tap0 tap1 tap2

Auto eth0

Allow-hotplug eth0

Iface eth0 inet manual

Up ifconfig eth0 0.0.0.0 promisc up

4. restart the machine configuration to take effect!

The above configuration is because my network environment is a static IP environment, so the IP addresses of virtual machines are all static IP addresses. if there is a DHCP server in the network environment, you can simplify the configuration, but I used virtual machines for experiments, the preferred IP address is fixed, so the configuration is as above.

Related Article

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.