This example shows how to specify 172.20.10.10 as the NMS, enable the switch to send MAC address notification traps to the NMS, enable the MAC address-change notification feature, set the interval time to 123 seconds, set the history-size to 100 entries, and enable traps whenever a MAC address is added on the specified port.
Switch(config)# snmp-server host 172.20.10.10 traps private mac-notification
Switch(config)# snmp-server enable traps mac-notification change
Switch(config)# mac address-table notification change
Switch(config)# mac address-table notification change interval 123
Switch(config)# mac address-table notification change history-size 100
Switch(config)# interface gigabitethernet1/0/2
Switch(config-if)# snmp trap mac-notification change added
You can verify your settings by entering the show mac address-table notification change interface and the show mac address-table notification change privileged EXEC commands.

This example shows how to specify 172.20.10.10 as the NMS, enable the switch to send MAC address notification traps to the NMS, enable the MAC address-change notification feature, set the interval time to 123 seconds, set the history-size to 100 entries, and enable traps whenever a MAC address is added on the specified port.Switch(config)# snmp-server host 172.20.10.10 traps private mac-notificationSwitch(config)# snmp-server enable traps mac-notification changeSwitch(config)# mac address-table notification changeSwitch(config)# mac address-table notification change interval 123Switch(config)# mac address-table notification change history-size 100Switch(config)# interface gigabitethernet1/0/2Switch(config-if)# snmp trap mac-notification change addedYou can verify your settings by entering the show mac address-table notification change interface and the show mac address-table notification change privileged EXEC commands.

Post By Editor (2,827 Posts)

Website: →

Connect