Vista (running ubuntu)

pat decampos decampos at gmail.com
Thu Jun 12 18:43:31 UTC 2008


Would this method work if I would like a static IP address on the host?

On Thu, Jun 12, 2008 at 12:46 PM, Nils Kassube <kassube at gmx.net> wrote:

> Derek Broughton wrote:
> > I'd really like to get network bridging working - that was trivial when
> > I used VMWare, so far impossible under Virtualbox.
>
> This is how it works for me - and please note:
>
> 1. Here it doesn't really work if there is no network at the interface
> configured for the bridge (eth0) when I boot the machine.
>
> 2. Booting takes considerably longer due to the bridge.
>
> In the following setup, replace eth0 with the appropriate interface name
> if necessary.
>
> Get package bridge-utils:
>
> sudo apt-get install bridge-utils
>
> In /etc/network/interfaces remove the entry for eth0 (if it exists) and
> add an entry for the bridge like this:
>
> auto br0
> iface br0 inet dhcp
>   bridge_ports eth0
>
> Then restart networking:
>
> sudo /etc/init.d/networking restart
>
> Now you should have an interface br0. Next create the VirtualBox interface
> vbox0:
>
> sudo VBoxAddif vbox0 $USER br0
>
> And the tun device should be accessible by VirtualBox users:
>
> sudo chown root:vboxusers /dev/net/tun
>
> Now start VirtualBox and select the network setup for your VM. At
> the "Attached to" field select "Hostinterface" and enter "vbox0" for
> the "Interface name".
>
> Finally start the VM and check its IP address - it should come from your
> DHCP server and it should be different from the host. Now you should be
> able to ping the VM from other machines in your network.
>
>
> Nils
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080612/31cd603b/attachment.html>


More information about the ubuntu-users mailing list