Re: VLAN switching in linux kernel...

From: Gilad Ben-Yossef
Date: Sat Dec 20 2003 - 12:11:33 EST


On Friday 19 December 2003 14:45, David T Hollis wrote:

> > When I send ping packets from HA to HB over the interface eth0.200,
> > is possible for the Router (using linux-2.4.20 with CONFIG_8021Q
> > option) to switch packets from VLAN 200 to VLAN 300?
> >
> > Is this VLAN switching functionality supported by the standard
> > linux kernel? Is there some extra configuration, some patches or
> > sources that can support this feature for linux?
> >
> > I would be a great help to me if someone could answer this or give
> > some pointers to this?
> >
> You would route between the two VLANs. They are two different
> broadcast domains, you need to route them at Layer 3. HA would have
> a route or default gw pointed at ROUTER which has IP forwarding
> turned on and you should be able to hit HB.

Another options is to bridge between the two VLAN interfaces (eth0.200
and eth0.300). man "brctl" to learn how to enslave both ports to a
bridge unit.

Note: you might need to use the vconfig option "set_flag [vlan-device]
1" to enable Ethernet headers reoredering to get this to do what you
want.

Cheers,
Gilad

--
Gilad Ben-Yossef <gilad@xxxxxxxxxxxxxxx>
Codefidence. A name you can trust (tm)
http://www.codefidence.com


--
Gilad Ben-Yossef <gilad@xxxxxxxxxxxxxxx>
Codefidence. A name you can trust (TM)
http://www.codefidence.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/