Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] Bridging vlans...
@ 2004-03-25  2:50 Jeremy Jones
  2004-03-25 12:56 ` John W. Linville
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremy Jones @ 2004-03-25  2:50 UTC (permalink / raw)
  To: bridge

<I apologize if this arrives twice...  I sent it first from an
non-subscribed address, don't know if that'll get to the list or not --JJ>

Hi folks,

I have an implementation question regarding bridging on a linux box between
a catalyst trunk port and a cisco 26something w/802.1q subinterfaces.

So right now, there's no vlan trunking going on on the link my bridging
firewall sits on, but I'm going to need to bridge two vlans, 4 and 51.  My
question is this:  should the vlan interfaces on the linux firewall be
created first, then bridged; or should the bridge interface be created, then
vlans bound to that?

Here's the first:

ip link set eth0 up
ip link set eth1 up
vconfig set_bind_mode PER_DEVICE
vconfig set_name_type DEV_PLUS_VID_NO_PAD
vconfig add eth0 4
vconfig add eth1 4
vconfig add eth0 51
vconfig add eth1 51
ip link set eth0.4 up
ip link set eth1.4 up
ip link set eth0.51 up
ip link set eth1.51 up
brctl addbr br0 
brctl addif br0 eth0.4
brctl addif br0 eth1.4
brctl stp br0 off
ip link set br0 up
brctl addbr br1 
brctl addif br1 eth0.51
brctl addif br1 eth1.51
brctl stp br1 off
ip link set br1 up

And the second:

ip link set eth0 up
ip link set eth1 up
brctl addbr br0 
brctl addif br0 eth0
brctl addif br0 eth1
brctl stp br0 off
ip link set br0 up
vconfig set_bind_mode PER_KERNEL
vconfig set_name_type DEV_PLUS_VID_NO_PAD
vconfig add br0 4
vconfig add br0 51
ip link set br0.4 up
ip link set br0.51 up

I lean towards the first, as it gives me more interfaces to filter, and thus
more flexibility with my iptables rules.  Just looking for the wisdom of
experience...

Thanks,
Jeremy Jones




^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Bridge] Bridging VLANs
@ 2009-08-29  1:01 Diego Woitasen
  0 siblings, 0 replies; 9+ messages in thread
From: Diego Woitasen @ 2009-08-29  1:01 UTC (permalink / raw)
  To: Bridge

Hi,
I'm working on a network where I have 13 VLANs (using 802.1q). I need
to build a transition escenario bridging the VLANs with a Linux
Bridge. My Linux box has the trunk incoming from eth1, so to bridge
them I use:

brctl addbr superbridge
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
for ((i = 200; i <= 212; i++)); do
 vconfig add eth1 $i
 ip link set vlan$i
 brctl addif superbridge vlan$i
done
ip link superbrige up

I think that should work but I want to hear another opinions, advices
or just tell me if that wouldn't work.

Regards,
 Diego

-- 
Diego Woitasen
XTECH

^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: [Bridge] Bridging VLANs
@ 2005-09-23  7:00 Josef Brunner
  0 siblings, 0 replies; 9+ messages in thread
From: Josef Brunner @ 2005-09-23  7:00 UTC (permalink / raw)
  To: 'R Harper ', 'bridge@lists.osdl.org '

remember the use of the vconfig command. it helps you to define "access
ports" that means that you can tell the system what default vlan (or vlans)
to use for a certain interface (so that it can remove the vlan tag from the
trunked packet)...

if you want to bridge all your  traffic - including vlan traffic - just
confige the bridge in a "normal behaviour". 

just one question: by saying vlan traffic you mean trunk or trunked or
tagged traffic, right ? 

josef 
 

-----Original Message-----
From: R Harper
To: bridge@lists.osdl.org
Sent: 22.09.2005 14:34
Subject: [Bridge] Bridging VLANs

Hi I have a simple question

I want to bridge both normal ethernet frames and VLAN packets
do I have to explicitly bridge the VLAN packets (e.g. vconfig br0 30)
or 
are they bridge by default
Is it sufficient to configure a VLAN bridge like this or am I forgetting

something?

regards
R.Harper

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger
http://messenger.msn.dk/

 <<ATT38976.txt>> 

_______________________________________________________________________________
Disclaimer

This message may contain confidential information solely for its
intended recipients and others may not distribute, copy or use it. If
you have received this communication in error please tell us either by
return e-mail or at the numbers above and delete it, and any copies of
it.



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Bridge] Bridging VLANs
@ 2005-09-22 12:34 R Harper
  0 siblings, 0 replies; 9+ messages in thread
From: R Harper @ 2005-09-22 12:34 UTC (permalink / raw)
  To: bridge

Hi I have a simple question

I want to bridge both normal ethernet frames and VLAN packets
do I have to explicitly bridge the VLAN packets (e.g. vconfig br0 30)  or 
are they bridge by default
Is it sufficient to configure a VLAN bridge like this or am I forgetting 
something?

regards
R.Harper

_________________________________________________________________
F� alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Bridge] Bridging vlans
@ 2004-03-25  0:23 Jeremy Jones
  2004-03-29 17:39 ` Bart De Schuymer
  0 siblings, 1 reply; 9+ messages in thread
From: Jeremy Jones @ 2004-03-25  0:23 UTC (permalink / raw)
  To: bridge

Hi folks,

I have an implementation question regarding bridging on a linux box between
a catalyst trunk port and a cisco 26something w/802.1q subinterfaces.

So right now, there's no vlan trunking going on on the link my bridging
firewall sits on, but I'm going to need to bridge two vlans, 4 and 51.  My
question is this:  should the vlan interfaces on the linux firewall be
created first, then bridged; or should the bridge interface be created, then
vlans bound to that?

Here's the first:

ip link set eth0 up
ip link set eth1 up
vconfig set_bind_mode PER_DEVICE
vconfig set_name_type DEV_PLUS_VID_NO_PAD
vconfig add eth0 4
vconfig add eth1 4
vconfig add eth0 51
vconfig add eth1 51
ip link set eth0.4 up
ip link set eth1.4 up
ip link set eth0.51 up
ip link set eth1.51 up
brctl addbr br0 
brctl addif br0 eth0.4
brctl addif br0 eth1.4
brctl stp br0 off
ip link set br0 up
brctl addbr br1 
brctl addif br1 eth0.51
brctl addif br1 eth1.51
brctl stp br1 off
ip link set br1 up

And the second:

ip link set eth0 up
ip link set eth1 up
brctl addbr br0 
brctl addif br0 eth0
brctl addif br0 eth1
brctl stp br0 off
ip link set br0 up
vconfig set_bind_mode PER_KERNEL
vconfig set_name_type DEV_PLUS_VID_NO_PAD
vconfig add br0 4
vconfig add br0 51
ip link set br0.4 up
ip link set br0.51 up

I lean towards the first, as it gives me more interfaces to filter, and thus
more flexibility with my iptables rules.  Just looking for the wisdom of
experience...

Thanks,
Jeremy Jones




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-29  1:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25  2:50 [Bridge] Bridging vlans Jeremy Jones
2004-03-25 12:56 ` John W. Linville
2004-03-26  1:44   ` Jeremy Jones
2004-03-26  2:32     ` John W. Linville
  -- strict thread matches above, loose matches on Subject: below --
2009-08-29  1:01 [Bridge] Bridging VLANs Diego Woitasen
2005-09-23  7:00 Josef Brunner
2005-09-22 12:34 R Harper
2004-03-25  0:23 [Bridge] Bridging vlans Jeremy Jones
2004-03-29 17:39 ` Bart De Schuymer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox