Configuring SNMP traps for MAC-notification

The MAC-notification functionality is enabled by default when the device boots up. To configure the MAC-notification functionality on the device, follow these steps:
  1. Use the mac-notification interval command with the specified interval value to enable MAC-notification.
  2. Use the interface ethernet command with the specified Ethernet interface to enable MAC-notification on the individual interface.
  3. Use the snmp-server enable traps mac-notification command to enable MAC-notification on the specified interface.
  4. Use the system-max mac-notification-buffer command to change the value of the MAC-notification buffer size.

The following example shows enabling SNMP traps for MAC-notification on Ethernet interface 1/1/5:

device(config)# mac-notification interval 30
device(config)# interface ethernet 1/1/5
device(config-if-e1000-1/1/5)# snmp-server enable traps mac-notification
device(config-if-e1000-1/1/5)# exit
device (config)# system-max mac-notification-buffer 4000

Use the show interfaces ethernet command to check whether a MAC-notification SNMP trap is enabled or disabled on an interface. You can also use the show mac-notification command to view other statistics such as the configured interval, the number of traps sent, and the number of events sent.