PurposeCommand or Action
Enters interface configuration mode, and specifies the
Layer 2 interface on which to enable the SNMP MAC
address notification trap.
interface interface-id
Example:
Device(config)# interface
gigabitethernet1/0/2
Step 7
Enables the MAC address change notification trap on the
interface.
snmp trap mac-notification change {added | removed}
Example:
Step 8
• Enables the trap when a MAC address is added on
this interface.
Device(config-if)# snmp trap
mac-notification change added
• Enables the trap when a MAC address is removed
from this interface.
Returns to privileged EXEC mode.end
Example:
Step 9
Device(config)# end
Verifies your entries.show running-config
Example:
Step 10
Device# show running-config
(Optional) Saves your entries in the configuration file.copy running-config startup-config
Example:
Step 11
Device# copy running-config startup-config
Configuring MAC Address Move Notification Traps
When you configure MAC-move notification, an SNMP notification is generated and sent to the network
management system whenever a MAC address moves from one port to another within the same VLAN.
Follow these steps to configure the device to send MAC address-move notification traps to an NMS host:
SUMMARY STEPS
1. enable
2. configure terminal
3. snmp-server host host-addr {traps | informs} {version {1 | 2c | 3}} community-string notification-type
4. snmp-server enable traps mac-notification move
5. mac address-table notification mac-move
6. end
7. show running-config
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
33
Administering the Device
Configuring MAC Address Move Notification Traps