[Discuss] Host chaining?

Steven Kurylo sk at infinitepigeons.org
Wed Oct 18 13:56:22 PDT 2006


On 10/17/06, Dustin Jenkins <dustin at genevieveprimeau.com> wrote:
> Steven Kurylo wrote:
> >>         Many thanks for the reply.  I started doing that actually
> >> based on
> >> what I've read, so thanks for confirming I'm going the right way.  Do
> >> you have experience with this?  I've read that doing it wirelessly has
> >> flaws since it can't spoof properly, I didn't read it fully as it was
> >> from 2003 and perceived it as obsolete.
> >
> > I haven't bridged to a wireless connection, but I've done lots of
> > wired bridges.  I can't think of why making one side wireless would
> > make a difference.
> >
> > The article is old, so you wouldn't need to apply the patches and such.
> > Basically from your mythtv console
> >
> > brctl addbr mybridge
> > brctl addif mybridge eth0
> > brctl addif mybridge eth1
> > ifconfig eth0 0.0.0.0
> > ifconfig eth1 0.0.0.0
> > ifconfig mybridge 192.168.100.5 netmask 255.255.255.0 up
> >
> > Where eth0 and eth1 are replaced by your interfaces and 192.168.100.5
> > is replaced by the IP address you want the mythtv box to use.  I
> > haven't tried dchp on the bridge interface, but that should work too.
> >
> > Often I'll setup another interface like eth0:1 for talking to my
> > bridge, instead of giving the bridge an IP address.
> >
> >> Also, do I need a crossover cable from the Linux machine to my Xbox?
> >
> > Assuming neither can auto-detect the cable type, yes.
> >
> Steven,
>
>     Thanks for the reply.  I've had my bridge up for a while now, doing
> exactly what you described, but I have a feeling that the wireless does
> come into play.  Each interface works fine on its own, but once the
> bridge is up I can't ping anything, even local nodes on the network.
> All the cables are fine as well.  Does the bridge use the default
> gateway as the main access point?  What I mean is, how does the bridge
> know that my wireless interface is the main interface (i.e. the
> interface from which it is connected to the LAN)?

The bridge doesn't. What it does is forward packets. Buy doing that it
learns which MACs are on which side of the bridge, and will start to
only forwards traffic which is actually destined for the other side of
the bridge.

Your xbox would use an IP in the same subnet as your router, and use
the router as its gateway.

I looked around and found this:
http://linux-net.osdl.org/index.php/Bridge#It_doesn.27t_work_with_my_Wireless_card.21

It looks like only specific wireless drivers work right now.
-- 
Steven Kurylo


More information about the Discuss mailing list