Hi all,
I am trying to solve a design problem that I need help on. I have a
linux box runnning 2.4.29 and this box has 2 ethernet nics. What I want
to do is configure vlans on these 2 nics such that there can be
multiple vlans on each of the nics. I am trying to use the linux vlan
module to acheive this. Then I want to add a bridging instance one per
vlan such that the traffic within a vlan is bridged within the same
vlan and does not leak to other vlans. I am using the linux bridging
module.
I tried the following.
# vconfig eth0 5
# vconfig eth0 6
# vconfig eth1 5
# vconfig eth1 6
This gives me vlan interfaces eth0.5, eth0.6, eth1.5, eth1.6
Then I configured the bridge.
# brctl addbr br5
# brctl addif br5 eth0.5
# brctl addif br5 eth1.5
# brctl addbr br6
# brctl addif br6 eth0.6
# brctl addif br6 eth1.6
Then I did "ifconfig up" on eth0, eth1, eth0.5, eth0.6, eth1.5, eth1.6,
br5 and br6.
Now I use the following network config. I connect eth0 and eth1 to 2
different vlan aware switches such that both are ends of trunks with
vlan 6 configured on it.
I connect a laptop to each vlan switch on vlan 6 and I am trying to
ping each other. This does not seem to work. Both the laptops are part
of vlan switch and if I am bridging correctly I should be able to ping.
Is my basic assumption correct that vlan module code is executed before
the bridge module. From the kernel code it seems to me that the bridge
hook is called before vlan gets called via a protocol handler. If this
is true how do I acheive what I set out to do ?
Any help or pointer will be appreciated.
--Anupam
|