Skip to contentSkip to conversation

Linux Bridge Static FDB move

Bridge [email protected] 3 participants 4 messages Oct 25, 2017 – Oct 26, 2017 Ethernet bridge

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 6 lines · On 2017/10/26 1:47, [email protected] 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.

Quoted 5 lines

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.

Signature · 1 line
Toshiaki Makita
#2 lore raw

Thank you for the reply.

Viraj
________________________________________
From: Toshiaki Makita <[email protected]>
Sent: Thursday, October 26, 2017 4:13 AM
To: Raiyani, Viraj; [email protected]
Subject: Re: [Bridge] Linux Bridge Static FDB move

Quoted 6 lines · On 2017/10/26 1:47, [email protected] 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.

Quoted 5 lines

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

#3 lore raw

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

Quoted 33 lines · On Oct 26, 2017 19:33, <[email protected]> wrote:

Thank you for the reply.

Viraj
________________________________________
From: Toshiaki Makita <[email protected]>
Sent: Thursday, October 26, 2017 4:13 AM
To: Raiyani, Viraj; [email protected]
Subject: Re: [Bridge] Linux Bridge Static FDB move

Quoted 6 lines · On 2017/10/26 1:47, [email protected] 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.

Quoted 5 lines

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