Configuring the MAC address movement threshold rate

To enable notification of MAC address moves, enter the mac-movement notification threshold-rate command at the global configuration level. This command enables a corresponding SNMP trap. Notification is triggered when a threshold number of MAC address moves occurs within a specified period for the same MAC address. This command sets the threshold level and the sampling interval.

Avoid threshold rates and sampling intervals that are too small. If you choose a small threshold and a sampling interval that is also small, an unnecessarily high number of traps could occur.

The following example enables notification of MAC address moves and sends an SNMP trap when any MAC address moves to a different port five times in a 10-second interval.

device(config)# mac-movement notification threshold-rate 5 sampling-interval 10

To disable notification of MAC address moves and disable the SNMP trap, use the no form of the command, as shown in the following example.

device(config)# no mac-movement notification threshold-rate 5 sampling-interval 10