Chapter 6
Configuring the System
MAC Address Notification
MAC address notification enables you to track users coming to and going from your network. Whenever
a new MAC address is learned or an old MAC address is removed from the switch, an SNMP notification
(trap) is generated. If you have many users coming and going from the network, you can set a trap
interval time so that traps can be bundled together and sent at regular intervals.
The MAC notification history table stores the MAC address activity for each hardware port for which
the trap is enabled. MAC address notifications are generated for dynamic and secure MAC addresses.
Events are not generated for self addresses, multicast addresses, or other static addresses.
Beginning in privileged EXEC mode, follow these steps to enable the MAC address notification feature:
Command
Step 1
configure terminal
Step 2
SNMP-server enable traps
mac-notification
Step 3
mac-address-table notification
Step 4
mac-address-table notification
interval seconds
Step 5
mac-address-table notification
history-size value
Step 6
interface interface-id
Step 7
SNMP trap mac-notification [added
| removed]
Step 8
end
Step 9
show mac-address-table
notification
or
show running-config
Step 10
copy running-config startup-config (Optional) Save your entries in the configuration file.
To disable the switch from sending MAC address notification traps, use the no snmp-server enable
traps mac-notification global configuration command. To disable the MAC address notification traps
on a specific interface, use the no snmp trap mac-notification interface configuration command. To
disable the MAC address notification feature, use the no mac-address-table notification global
configuration command.
78-6511-08
Purpose
Enter global configuration mode.
Enable SNMP notification of MAC address additions and deletions.
Enable the MAC address notification feature
(Optional) For interval value, specify the notification trap interval in
seconds between each set of traps that are generated to the network
management station (NMS). The range is 0 to 2147483647 seconds. The
default is 1 second. The switch sends the notification trap to the NMS after
the interval setting has expired.
(Optional) For history-size value, specify the maximum number of entries
in the MAC notification history table. The range is 0 to 500. The default is 1
entry.
The interval seconds and history-size value keywords must be
Note
entered as separate commands.
Enter interface configuration mode for the port you want to configure.
Enable or disable MAC address traps on the port.
Return to PRIV EXEC mode.
(Optional) Verify your settings.
Catalyst 2900 Series XL and Catalyst 3500 Series XL Software Configuration Guide
Managing the MAC Address Tables
6-17