Re: Help needed creating a bridge
  Home FAQ Contact Sign in
alt.os.linux.ubuntu only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Help needed creating a bridge         

Group: alt.os.linux.ubuntu · Group Profile
Author: Joe
Date: May 15, 2008 21:25

On 2008-05-12, Skratz wrote:
> Joe wrote:
>> On 2008-05-11, Skratz wrote:
>>> I need help with making a bridge to be able to run virtualbox in bridged
>>> mode.
>>>
>>> I have vollowed a few howto's but with little succes, because of the
>>> layout of my network I assume.
>>>
>>> My network is as follows:
>>> internet -> ethernet modem -> hub -> linux pc that makes pppoe
>>> connection and does NAT -> hub -> other pc's
>>>
>>> My linux box has only one NIC and i don't wish to buy other hardware.
>>> I have gotten it so far that i can have a bridge on eht0 and a working
>>> pppoe connection, but i can't acces the internet from the other pc's.
>>>
>>> Is this possible to create a bridge on the linux pc to run virtualbux?
>>> How do i do this?
>>> How do i have to visualise this bridge?
>>> What do i want to see in ifconfig? Right now that is eth0 192.168.0.1,
>>> lo 127.0.0.1 and ppp0 83.bla.bla.bla
>>
>> If you are just looking to make a bridge for Virtualbox, these
>> directions work well:
>> http://www.linuxweblog.com/virtualbox-host-networking
>>
>> If you are looking to use your linux PC as a firewall/router, that
>> would be a different set of instructions...
>>
> I already have my linuxpc setup as a firewall/router, everything works
> except the bridge part i'm trying to setup now.
>
> I have followed a similar howto as in the link you gave, but that makes
> a lot of assumptions about my network that are completely wrong and i
> don't know how to adapt to that.
>
> I have followed the virtualnetworking part on
> http://doc.ubuntu.com/ubuntu/serverguide/C/libvirt.html this created a
> br0 and i could setup a pppoe connection agian, but i was unable to give
> internet access to the rest of my network.
>
> I noticed that the guide on linuxweblog makes use of tap devices (which
> i don't understand) and the guide on ubuntu.com doesn't, why and what
> does this tap device do?
> Also what does "promiscuous mode" mean?
>
> Basically i think i need a ip on my eth0 and a bridge connected to eth0.
>
> If my network is in the range 192.168.0 what should the ip on br0 be?
>
> As you can see i have lots of questions, and i'm really confused by all
> these guides that only give you commands to execute and no explanation.

br0 is the bridge. It contains the physical adapter eth0 and the tap
device(s) that you configure. The taps are the connections into the
bridge from virtualbox. You can have several of them, if needed.

Promiscuous mode allows a network device to intercept and read each
network packet. This is important because the packets are addressed,
and so your nic will not grab packets for any other device. Since you
are creating a virtual machine with a different MAC, you need the nic
to be in promiscuous mode so that it accepts those packets.

As for your problems with pppoe, I am not able to help. I always use
a separate router. Likely, though, you'll have to make chages to the
pppoe config. Instead of having it configured to look for eth0, it
will need to look for br0.

--
Joe - Linux User #449481/Ubuntu User #19733
joe at hits - buffalo dot com
"Hate is baggage, life is too short to go around pissed off all the
time..." - Danny, American History X
no comments
diggit! del.icio.us! reddit!