On date Thursday 2007-11-08 00:45:24 +0100, Frans Pop wrote:
> On Thursday 08 November 2007, Richard wrote:
> > I've been down this path, Host networking with Vbox OSE does not
> > function, there are packages missing.
> 
> That's just not true. It can be made to work fine. See the link to the 
> Debian Wiki I posted earlier.

I confirm this. You don't have the  VBoxAddIF script, but you can
still a virtual bridge, as I did and explained in the previous posts.

The bridge is created with the brctl command from the bridge-utils, like this:
brctl addbr <bridge>

Then you have to attach the *physical* interface to the bridge, for
example like this:
brctl addbr <bridge> <physical interface>

In order to create a guest network interface interface you need to create
a corresponding tap interface *on the host*, with the uml-utilities tunctl
command:
tunctl -t <vbox interface> -u <user>

(BTW what the tun/tap terms really means? Has someone a basic
explanation for them?)

then you have to enable such interfaces with:
ifconfig <vbox interface> up

and finally connect them to the virtual bridge:
brctl addbr <bridge> <vbox interface>

The final configuration might look like this:

            Internal virtual lan
                   ...
                    |
                    |eth0
   +-------------------+
   |                   |
   | Guest VM          | 
   |                   | 
   +-------------------+
                    |eth1 <-> vbox0
                    |
                    |
                    |
                    |                    +-----------------------+
                    |                    |                       |
                  Virtual                | DHCP server           |
                  Bridge ----------------| Internet GW           |---------- 
Internet
                    br0                  +-----------------------+
                    |
                    |
                    |
                    |
                    |eth2 (physical interface)
     +-------------------+
     |                   |
     | HOST              | 
     |                   | 
     +-------------------+


Then you have to setup the various routing tables for each node of the
net.

> > you will need to have loaded the kernel devel tools, sorry I dont know
> > the name of the debian package, try
> 
> I suspect you mean the kernel-headers package.
> 
> > It is well documented forget all about BR0 and tap1 they aren't used.
> 
> I would be very interested in how a setup without using a bridge interface 
> works though.

Me too.
 
[...]

Thanks for your replies.

Best regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)

_______________________________________________
vbox-users mailing list
vbox-users@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to