HomeFreeBSD

bridge: Log MAC address port flapping

Description

bridge: Log MAC address port flapping

MAC flapping occurs when a bridge receives packets with the same source MAC
address on different member interfaces. The common reasons are:

  • user roams from one bridge port to another
  • user has wrong network setup, bridge loops e.g.
  • someone set duplicated ethernet address on his/her nic
  • some bad guy / virus / trojan send spoofed packets

if_bridge currently updates the bridge routing entry silently hence it is hard
to diagnose.

Emit logs when MAC address port flapping occurs to make it easier to diagnose.

Reviewed by: kp
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D39375

Details

Provenance
zleiAuthored on Apr 7 2023, 2:25 PM
Reviewer
kp
Differential Revision
D39375: bridge: Log MAC address port flapping
Parents
rG09e5e3d59860: ifconfig: Fix configuring if_bridge with additional operating parameters
Branches
Unknown
Tags
Unknown