Purpose
Command or Action
•
vrf vrf instance name—
Specifies the VPN
routing/forwarding instance for this host.
Enables the device to send MAC address change
notification traps to the NMS.
snmp-server enable traps mac-notification change
Example:
Step 4
Device(config)#
snmp-server enable traps
mac-notification change
Enables the MAC address change notification feature.
mac address-table notification change
Example:
Step 5
Device(config)#
mac address-table
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
Example:
are generated to the NMS. The range is 0 to
2147483647 seconds; the default is 1 second.
Device(config)#
mac address-table
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.
Device(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:
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
System Management Configuration Guide, Cisco IOS XE Fuji 16.8.x (Catalyst 9500 Switches)
30
Administering the Device
Configuring MAC Address Change Notification Traps