All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] Linux Bridge Static FDB move
@ 2017-10-25 16:47 Viraj.Raiyani
  2017-10-26 11:13 ` Toshiaki Makita
  0 siblings, 1 reply; 4+ messages in thread
From: Viraj.Raiyani @ 2017-10-25 16:47 UTC (permalink / raw)
  To: bridge

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

Hi Everyone,


Is it possible to program the FDB entry in Linux Bridge which is static, non-local and doesn't move to new interface when the same source MAC packet comes on a different interface in the same bridge  ?


I tried programming the MAC as permanent that prevents the moving of MAC to a new interface in the same bridge, however it treats the MAC as local and doesn't do the forwarding ?


Thanks,

Viraj

[-- Attachment #2: Type: text/html, Size: 913 bytes --]

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

* Re: [Bridge] Linux Bridge Static FDB move
  2017-10-25 16:47 [Bridge] Linux Bridge Static FDB move Viraj.Raiyani
@ 2017-10-26 11:13 ` Toshiaki Makita
  2017-10-26 17:33   ` Viraj.Raiyani
  0 siblings, 1 reply; 4+ messages in thread
From: Toshiaki Makita @ 2017-10-26 11:13 UTC (permalink / raw)
  To: Viraj.Raiyani, bridge

On 2017/10/26 1:47, Viraj.Raiyani@dell.com wrote:
> Hi Everyone,
> 
> 
> Is it possible to program the FDB entry in Linux Bridge which is static,
> non-local and doesn't move to new interface when the same source MAC
> packet comes on a different interface in the same bridge  ?

AFAIK no.
Bridge supports static fdb entries, but br_fdb_update() updates their
dst even for static entries.

> 
> 
> I tried programming the MAC as permanent that prevents the moving of MAC
> to a new interface in the same bridge, however it treats the MAC as
> local and doesn't do the forwarding ?

Yes, local entries will deliver frames to the bridge device itself.

-- 
Toshiaki Makita


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

* Re: [Bridge] Linux Bridge Static FDB move
  2017-10-26 11:13 ` Toshiaki Makita
@ 2017-10-26 17:33   ` Viraj.Raiyani
  2017-10-26 18:55     ` Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Viraj.Raiyani @ 2017-10-26 17:33 UTC (permalink / raw)
  To: makita.toshiaki, bridge

Thank you for the reply.

Viraj 
________________________________________
From: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Sent: Thursday, October 26, 2017 4:13 AM
To: Raiyani, Viraj; bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Linux Bridge Static FDB move

On 2017/10/26 1:47, Viraj.Raiyani@dell.com wrote:
> Hi Everyone,
>
>
> Is it possible to program the FDB entry in Linux Bridge which is static,
> non-local and doesn't move to new interface when the same source MAC
> packet comes on a different interface in the same bridge  ?

AFAIK no.
Bridge supports static fdb entries, but br_fdb_update() updates their
dst even for static entries.

>
>
> I tried programming the MAC as permanent that prevents the moving of MAC
> to a new interface in the same bridge, however it treats the MAC as
> local and doesn't do the forwarding ?

Yes, local entries will deliver frames to the bridge device itself.

--
Toshiaki Makita


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

* Re: [Bridge] Linux Bridge Static FDB move
  2017-10-26 17:33   ` Viraj.Raiyani
@ 2017-10-26 18:55     ` Stephen Hemminger
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Hemminger @ 2017-10-26 18:55 UTC (permalink / raw)
  To: Viraj.Raiyani; +Cc: bridge

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

If you have a moving MAC then you have a network that is flapping,
duplicate MAC, or worse a network loop. All of these are signs of a broken
L2 network. The bridge can't fix these

On Oct 26, 2017 19:33, <Viraj.Raiyani@dell.com> wrote:

> Thank you for the reply.
>
> Viraj
> ________________________________________
> From: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
> Sent: Thursday, October 26, 2017 4:13 AM
> To: Raiyani, Viraj; bridge@lists.linux-foundation.org
> Subject: Re: [Bridge] Linux Bridge Static FDB move
>
> On 2017/10/26 1:47, Viraj.Raiyani@dell.com wrote:
> > Hi Everyone,
> >
> >
> > Is it possible to program the FDB entry in Linux Bridge which is static,
> > non-local and doesn't move to new interface when the same source MAC
> > packet comes on a different interface in the same bridge  ?
>
> AFAIK no.
> Bridge supports static fdb entries, but br_fdb_update() updates their
> dst even for static entries.
>
> >
> >
> > I tried programming the MAC as permanent that prevents the moving of MAC
> > to a new interface in the same bridge, however it treats the MAC as
> > local and doesn't do the forwarding ?
>
> Yes, local entries will deliver frames to the bridge device itself.
>
> --
> Toshiaki Makita
>
>

[-- Attachment #2: Type: text/html, Size: 1831 bytes --]

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

end of thread, other threads:[~2017-10-26 18:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-25 16:47 [Bridge] Linux Bridge Static FDB move Viraj.Raiyani
2017-10-26 11:13 ` Toshiaki Makita
2017-10-26 17:33   ` Viraj.Raiyani
2017-10-26 18:55     ` 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.