Mac Address Notification; Enabling Notification Of Learned Or Deleted Mac Addresses - Cisco Catalyst 2950 Software Manual

Desktop switch software configuration guide
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 6
Configuring the System

MAC Address Notification

MAC address notification enables you to keep track of the MAC addresses that are learned or removed
from your switch.
When a new MAC address is learned or an old MAC address is removed from the switch, an SNMP
notification (trap) is generated. Traps can be bundled and sent at regular intervals.

Enabling Notification of Learned or Deleted MAC Addresses

You can enable the MAC notification feature on the switch. The MAC notification feature can bundle
SNMP traps and send them to the CMS at regular intervals.
Beginning in privileged EXEC mode, follow these steps to enable the MAC address notification feature:
Command
Step 1
configure terminal
Step 2
mac-address-table notification
[interval seconds | historysize value]
Step 3
SNMP-server enable traps
mac-notification
Step 4
interface interface-id
Step 5
SNMP trap mac-notification
[added | removed]
Step 6
end
Step 7
show mac-address notification
table notification interface
interface-id
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.
This example shows how to specify 172.20.10.10 as the NMS, enable the switch to send MAC address
notification traps to the NMS, enable the MAC address notification feature, set the interval time to 60
seconds, set the history-size to 100 entries, and enable traps whenever a MAC address is added on Fast
Ethernet interface 0/4.
Switch(config)# snmp-server host 172.20.10.10
Switch(config)# snmp-server enable traps mac-notification
Switch(config)# mac-address-table notification interval 60 history-size 100
Switch(config)# interface fastethernet0/4
Switch(config-if)# snmp trap mac-notification added
You can verify the previous commands by entering the show mac-address-table notification privileged
EXEC command.
78-11380-03
Purpose
Enter global configuration mode.
Enable the MAC address notification feature.
For interval seconds, the range is 0 to 2147483647. The default is 1 second.
The switch sends the notification trap after the interval setting has expired.
For history size, the range is 0 to 500 entries. The default is 1 entry.
Enable SNMP notification of MAC address additions and deletions.
Enter interface configuration mode for the port that you want to configure.
Enable or disable MAC address traps on the port.
Return to privileged EXEC mode.
Verify your settings.
Catalyst 2950 Desktop Switch Software Configuration Guide
Managing the MAC Address Tables
6-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents