Access for authorized users only. Please enter your username and password. Device(config)# Example: Configuring MAC Address Change Notification Traps This example shows how to specify 172.20.10.10 as the NMS, enable 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:
Device(config)# snmp-server host 172.20.10.10 traps private mac-notification Device(config)# snmp-server enable traps mac-notification change Device(config)# mac address-table notification change Device(config)# mac address-table notification change interval 123 Device(config)# mac address-table notification change history-size 100 Device(config)# interface gigabitethernet1/2/1 Device(config-if)# snmp trap mac-notification change added Example: Configuring MAC Threshold Notification Traps This example shows how to specify 172.20.10.10 as the NMS, enable the MAC address threshold notification feature, set the interval time to 123 seconds, and set the limit to 78 per cent:
Device(config)# snmp-server host 172.20.10.10 traps private mac-notification Device(config)# snmp-server enable traps mac-notification threshold Device(config)# mac address-table notification threshold Device(config)# mac address-table notification threshold interval 123 Device(config)# mac address-table notification threshold limit 78 Example: Adding the Static Address to the MAC Address Table This example shows how to add the static address c2f3.220a.12f4 to the MAC address table. When a packet is received in VLAN 4 with this MAC address as its destination address, the packet is forwarded to the specified port: You cannot associate the same static MAC address to multiple interfaces.
If the command is executed again with a different interface, the static MAC address is overwritten on the new interface. Note Device(config)# mac address-table static c2f3.220a.12f4 vlan 4 interface gigabitethernet1/1/1 Administering the Device Example: Configuring MAC Address Change Notification Traps Administering the Device 38