PurposeCommand or Action
•
vrf vrf instance name—Specifies the VPN routing/forwarding
instance for this host.
Enables the switch to send MAC address change notification traps
to the NMS.
snmp-server enable traps mac-notification
change
Example:
Switch(config)# snmp-server enable traps
mac-notification change
Step 4
Enables the MAC address change notification feature.mac address-table notification change
Example:
Switch(config)# mac address-table
Step 5
notification change
Enters the trap interval time and the history table size.mac address-table notification change [interval
value] [history-size value]
Step 6
•
(Optional) interval value—Specifies the notification trap
interval in seconds between each set of traps that are generated
Example:
Switch(config)# mac address-table
to the NMS. The range is 0 to 2147483647 seconds; the default
is 1 second.
notification change interval 123
•
(Optional) history-size value—Specifies the maximum
number of entries in the MAC notification history table. The
range is 0 to 500; the default is 1.
Switch(config)#mac address-table
notification change history-size 100
Enters interface configuration mode, and specifies the Layer 2
interface on which to enable the SNMP MAC address notification
trap.
interface interface-id
Example:
Switch(config)# interface
gigabitethernet1/0/2
Step 7
Enables the MAC address change notification trap on the interface.snmp trap mac-notification change {added |
removed}
Step 8
•
Enables the trap when a MAC address is added on this
interface.
Example:
Switch(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:
Switch(config)# end
Step 9
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1545
How to Administer the Switch