Cisco 3560x-24p 参考指南
2-796
Catalyst 3750-X and 3560-X Switch Command Reference
OL-21522-02
Chapter 2 Catalyst 3750-X and 3560-X Cisco IOS Commands
snmp trap mac-notification change
snmp trap mac-notification change
Use the snmp trap mac-notification change interface configuration command on the switch stack or on
a standalone switch to enable the Simple Network Management Protocol (SNMP) MAC address
notification trap on a specific Layer 2 interface. Use the no form of this command to return to the default
setting.
a standalone switch to enable the Simple Network Management Protocol (SNMP) MAC address
notification trap on a specific Layer 2 interface. Use the no form of this command to return to the default
setting.
snmp trap mac-notification change {added | removed}
no snmp trap mac-notification change {added | removed}
Syntax Description
Defaults
By default, the traps for both address addition and address removal are disabled.
Command Modes
Interface configuration
Command History
Usage Guidelines
Even though you enable the notification trap for a specific interface by using the snmp trap
mac-notification change command, the trap is generated only when you enter the snmp-server enable
traps mac-notification change and the mac address-table notification change global configuration
commands.
mac-notification change command, the trap is generated only when you enter the snmp-server enable
traps mac-notification change and the mac address-table notification change global configuration
commands.
Examples
This example shows how to enable the MAC notification trap when a MAC address is added to a port:
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
privileged EXEC command.
privileged EXEC command.
added
Enable the MAC notification trap when a MAC address is added on this interface.
removed
Enable the MAC notification trap when a MAC address is removed from this
interface.
interface.
Release
Modification
12.2(53)SE2
This command was introduced.