* [Bridge] Bridge between switch and router + VLAN issue
@ 2010-10-05 8:16 krunal patel
2010-10-05 13:17 ` Jonathan Thibault
2010-10-06 22:17 ` Stephen Hemminger
0 siblings, 2 replies; 3+ messages in thread
From: krunal patel @ 2010-10-05 8:16 UTC (permalink / raw)
To: bridge
Hi,
There is one setup i am not able to complete.
I am putting bridge between a VLAN aware switch and a router with VLAN's.
All hosts are behind VLAN switch and their gateway is router.
All works well when there are no VLANs.
br0
|--------eth0
|--------eth1
When VLAN tags are added and passed to bridge, for forwarded traffic
it works well.
Now, if i want to do transparent proxy i have to create vlan devices
for eth0, eth1 and add them to bridge
br0
|--------eth0
|--------eth1
|--------eth0.2
|--------eth1.2
Problem here is, on one side of bridge router is there which gives
same mac for different tagged and untagged traffic. So bridge only
learns one mac. So some tagged frame entered into bridge and if we do
transparent proxy on it. Frames generated by proxy to router goes
untagged or with different tag.
To do proxy and handle vlan tag i have to add vlan interfaces into
same bridge but vlan tags are not same.
Regards,
Krunal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bridge] Bridge between switch and router + VLAN issue
2010-10-05 8:16 [Bridge] Bridge between switch and router + VLAN issue krunal patel
@ 2010-10-05 13:17 ` Jonathan Thibault
2010-10-06 22:17 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Thibault @ 2010-10-05 13:17 UTC (permalink / raw)
To: krunal patel; +Cc: bridge
I've had a very similar issue with a setup here and never did find a solution. If you do, be sure to share, this would have saved me a lot of trouble although we had to file this approach as 'impossible' for now.
Jonathan
On 05/10/10 04:16 AM, krunal patel wrote:
> Hi,
>
> There is one setup i am not able to complete.
>
> I am putting bridge between a VLAN aware switch and a router with VLAN's.
>
> All hosts are behind VLAN switch and their gateway is router.
> All works well when there are no VLANs.
>
> br0
> |--------eth0
> |--------eth1
>
> When VLAN tags are added and passed to bridge, for forwarded traffic
> it works well.
>
> Now, if i want to do transparent proxy i have to create vlan devices
> for eth0, eth1 and add them to bridge
>
> br0
> |--------eth0
> |--------eth1
> |--------eth0.2
> |--------eth1.2
>
> Problem here is, on one side of bridge router is there which gives
> same mac for different tagged and untagged traffic. So bridge only
> learns one mac. So some tagged frame entered into bridge and if we do
> transparent proxy on it. Frames generated by proxy to router goes
> untagged or with different tag.
> To do proxy and handle vlan tag i have to add vlan interfaces into
> same bridge but vlan tags are not same.
>
>
> Regards,
> Krunal
> _______________________________________________
> Bridge mailing list
> Bridge@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/bridge
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bridge] Bridge between switch and router + VLAN issue
2010-10-05 8:16 [Bridge] Bridge between switch and router + VLAN issue krunal patel
2010-10-05 13:17 ` Jonathan Thibault
@ 2010-10-06 22:17 ` Stephen Hemminger
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2010-10-06 22:17 UTC (permalink / raw)
To: krunal patel; +Cc: bridge
On Tue, 5 Oct 2010 13:46:31 +0530
krunal patel <krunal.raj@gmail.com> wrote:
> Hi,
>
> There is one setup i am not able to complete.
>
> I am putting bridge between a VLAN aware switch and a router with VLAN's.
>
> All hosts are behind VLAN switch and their gateway is router.
> All works well when there are no VLANs.
>
> br0
> |--------eth0
> |--------eth1
>
> When VLAN tags are added and passed to bridge, for forwarded traffic
> it works well.
>
> Now, if i want to do transparent proxy i have to create vlan devices
> for eth0, eth1 and add them to bridge
>
> br0
> |--------eth0
> |--------eth1
> |--------eth0.2
> |--------eth1.2
>
> Problem here is, on one side of bridge router is there which gives
> same mac for different tagged and untagged traffic. So bridge only
> learns one mac. So some tagged frame entered into bridge and if we do
> transparent proxy on it. Frames generated by proxy to router goes
> untagged or with different tag.
> To do proxy and handle vlan tag i have to add vlan interfaces into
> same bridge but vlan tags are not same.
This isn't going to work because it creates a loop. eth0 sees
both tagged and untagged frames and eth0.2 sees tagged frames
In recent kernels vlan 0 is supposed to work as way to manage
untagged frames. Maybe using:
br0
|--------eth0.0
|--------eth1.0
|--------eth0.2
|--------eth1.2
--
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-06 22:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-05 8:16 [Bridge] Bridge between switch and router + VLAN issue krunal patel
2010-10-05 13:17 ` Jonathan Thibault
2010-10-06 22:17 ` Stephen Hemminger
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.