All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] linux bridging vlans?
@ 2006-03-30  0:43 Andraz Sraka
  2006-03-30  9:01 ` m.innocenti
  2006-03-30 13:24 ` Piotr Chytla
  0 siblings, 2 replies; 3+ messages in thread
From: Andraz Sraka @ 2006-03-30  0:43 UTC (permalink / raw)
  To: lartc


[-- Attachment #1.1.1: Type: text/plain, Size: 1327 bytes --]

re

can somebody tell me what am I doing wrong (at this late night hour),
because vlan are not getting bridged at all.

   ifconfig eth0 0.0.0.0 up
   ifconfig eth1 0.0.0.0 up
   brctl addbr br0
   brctl addif br0 eth0
   brctl addif br0 eth1
   ifconfig br0 up
   vconfig add br0 X
   vconfig add br0 Y

X = vlan-ID (example: 222)
Y = vlan ID (example: 223)

 # brctl show
   bridge name     bridge id               STP enabled     interfaces
   br0             8000.00001a1a4c74       no              eth0
                                                          eth1



 # cat /proc/net/vlan/config
  VLAN Dev name    | VLAN ID
  Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
  br0.X       | X  | br0
  br0.Y       | Y  | br0



dmesg shows that:
br0: port 2(eth1) entering learning state
br0: port 1(eth0) entering learning state
br0: topology change detected, propagating
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth0) entering forwarding state

but still no data is forwarded from one interface to another? Is there
any sysctl stuff, that I need to set up like 'ip_forwarding' when doing
routing? Is there something bridging parameter for forwarding or am I
misconfigured things above?

thanks and regards,
 Andraz

[-- Attachment #1.1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 1903 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] linux bridging vlans?
  2006-03-30  0:43 [LARTC] linux bridging vlans? Andraz Sraka
@ 2006-03-30  9:01 ` m.innocenti
  2006-03-30 13:24 ` Piotr Chytla
  1 sibling, 0 replies; 3+ messages in thread
From: m.innocenti @ 2006-03-30  9:01 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

Andraz Sraka wrote:
> but still no data is forwarded from one interface to another? Is there
> any sysctl stuff, that I need to set up like 'ip_forwarding' when doing
> routing? Is there something bridging parameter for forwarding or am I
> misconfigured things above?

I think that the bridge device don't support vlan.
The attached patch could add that support (mind that I haven't compiled
nor tested the patch).
Let me know if it works.


-- 
**********************************************************************
Marco Innocenti              Gruppo Infrastruttura e Sicurezza
CINECA                       phone:+39 0516171553 / fax:+39 0516132198
Via Magnanelli 6/3           e-mail: innocenti@cineca.it
40033 Casalecchio di Reno    Bologna (Italia)
**********************************************************************

[-- Attachment #2: bridge.diff --]
[-- Type: text/x-patch, Size: 487 bytes --]

--- linux-source-2.6.16/net/bridge/br_device.c	2006-03-20 06:53:29.000000000 +0100
+++ linux-source-2.6.16/net/bridge/br_device.c.new	2006-03-30 10:53:25.000000000 +0200
@@ -186,5 +186,7 @@
 	dev->priv_flags = IFF_EBRIDGE;
 
  	dev->features = NETIF_F_SG | NETIF_F_FRAGLIST
- 		| NETIF_F_HIGHDMA | NETIF_F_TSO | NETIF_F_IP_CSUM;
+ 		| NETIF_F_HIGHDMA | NETIF_F_TSO | NETIF_F_IP_CSUM
+		| NETIF_F_HW_VLAN_FILTER | NETIF_F_HW_VLAN_RX 
+		| NETIF_F_HW_VLAN_TX | NETIF_F_VLAN_CHALLENGED;
 }

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] linux bridging vlans?
  2006-03-30  0:43 [LARTC] linux bridging vlans? Andraz Sraka
  2006-03-30  9:01 ` m.innocenti
@ 2006-03-30 13:24 ` Piotr Chytla
  1 sibling, 0 replies; 3+ messages in thread
From: Piotr Chytla @ 2006-03-30 13:24 UTC (permalink / raw)
  To: lartc

On Thu, Mar 30, 2006 at 02:43:05AM +0200, Andraz Sraka wrote:
> re
> 
> can somebody tell me what am I doing wrong (at this late night hour),
> because vlan are not getting bridged at all.
> 
>    ifconfig eth0 0.0.0.0 up
>    ifconfig eth1 0.0.0.0 up
>    brctl addbr br0
>    brctl addif br0 eth0
>    brctl addif br0 eth1
>    ifconfig br0 up
>    vconfig add br0 X
>    vconfig add br0 Y
> 
> X = vlan-ID (example: 222)
> Y = vlan ID (example: 223)
>
You can't add vlan interface to bridge , bridge connects two or more
physical ethernet interfaces to one logical. 

Would be better to first create vlans on eth0/1 and next you can bridge
both vlans.

Something like that:

vconfig add eth0 X
vconfig add eth0 Y
vconfig add eth1 X
vconfig add eth1 Y
brctl addbr br0
brctl addif br0 eth0.X
brctl addif br0 eth1.X

brctl addbr br1
brctl addif br1 eth0.Y
brctl addif br1 eth1.Y

/pch

-- 
Dyslexia bug unpatched since 1977 ...
exploit has been leaked to the underground.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-03-30 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30  0:43 [LARTC] linux bridging vlans? Andraz Sraka
2006-03-30  9:01 ` m.innocenti
2006-03-30 13:24 ` Piotr Chytla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.