Thursday, January 15, 2009

Setting up Bridged Network

I need to set up bridged network for my VirtualBox guess OS to have a network connection attached to host interface.

So I install bridge-utils package :

$ sudo apt-get install bridge-utils 

I need to add some lines in /etc/network/interfaces

auto br0
iface br0 inet static
bridge_ports eth0

You have to bring up br0 manually for now.

sudo /etc/init.d/networking restart
sudo ifup br0

I think, that's it. VirtualBox 2.1.0 doesn't need TAP or TUN interface.
br0 will recognized in the Host Interface list in network setting part for guess OS.
Due to I set my br0 to static IP, I also need to set my network interface in guess OS to static IP (e.g .

No comments: