Configuring SNMP traps for MAC-notification
- Use the mac-notification interval command with the specified interval value to enable MAC-notification.
- Use the interface ethernet command with the specified Ethernet interface to enable MAC-notification on the individual interface.
- Use the snmp-server enable traps mac-notification command to enable MAC-notification on the specified interface.
- 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.