Networking Forums

Networking Forums > Computer Networking > Linux Networking > tring to bridge each vlan separately

Reply
Thread Tools Display Modes

tring to bridge each vlan separately

 
 
anupam.wadhawan@gmail.com
Guest
Posts: n/a

 
      10-14-2005, 02:02 PM
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

 
Reply With Quote
 
 
 
 
GS
Guest
Posts: n/a

 
      10-14-2005, 04:12 PM
Well, bridge code is executed first, then inturn it calls the VLAN
code, if you see br.c and init fucnction.

Does your switch supports VLAN?. Does it only switch or
Router-cum-switch?.

 
Reply With Quote
 
anupam.wadhawan@gmail.com
Guest
Posts: n/a

 
      10-17-2005, 01:09 PM
Thanks for the interest. Actually I managed to achieve what I wanted to
do by using the bridge and vlan module of linux. It was not working
earlier because I was using an older kernel.

Thanks,
Anupam

 
Reply With Quote
 
GS
Guest
Posts: n/a

 
      10-20-2005, 01:34 AM
Curious, How your laptops gets IP address when you connected to
switch?. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3Com Wireless 7760 - Wireless Workgroup Bridge mode - how to set up VLAN? ffileppo@alice.it Wireless Internet 0 09-15-2007 10:58 AM
Connecting, separately, to different Netgear WGXB102 Systems Tim JN Wireless Internet 0 07-05-2007 08:25 PM
Simple problem when browsing tring to view workgroup shares? Paul Windows Networking 1 11-15-2005 09:46 PM
VLAN and bridge on same computer Morten Isaksen Linux Networking 0 06-15-2004 09:46 AM
Router - Netdisk - tring to make it work RSweares Home Networking 1 03-04-2004 04:17 PM



1 2 3 4 5 6 7 8 9 10 11