SNMP MAC Address Notifications

October 29, 2008 at 3:08 pm | Posted in System Management | Leave a comment

IEWB1-Vol1-v5 Task: 12.20

Configuration SW1 to send traps when there’re new MAC address on interface connected to R1 and R5

Configuration

Rack1SW1#sh run 

interface FastEthernet0/1
 snmp trap mac-notification change added
 snmp trap mac-notification change removed

interface FastEthernet0/5
 snmp trap mac-notification change added
 snmp trap mac-notification change removed

snmp-server enable traps mac-notification change
snmp-server host 155.1.146.100 CISCO 

mac-address-table notification change interval 2
mac-address-table notification change history-size 100
mac-address-table notification change

Verification

Rack1SW1#debug snmp packets 
SNMP packet debugging is on
Rack1R1(config)#int fa0/0
Rack1R1(config-if)#mac-address 0000.6c11.1111

Rack1R1#ping 155.1.146.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.146.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Rack1SW1#
*Mar  1 02:28:36.393: SNMP: Queuing packet to 155.1.146.100
*Mar  1 02:28:36.393: SNMP: V1 Trap, ent cmnMIBNotificationPrefix, addr 155.1.67.7, gentrap 6, spectrap 1
 cmnHistMacChangedMsg.1 =
01 00  92 00   00 6C  11 11    11 00  03 00   
 cmnHistTimestamp.1 = 891639

Rack1SW1#sh mac address-table notification change 
MAC Notification Feature is Enabled on the switch
Interval between Notification Traps : 2 secs
Number of MAC Addresses Added : 3
Number of MAC Addresses Removed : 3
Number of Notifications sent to NMS : 5
Maximum Number of entries configured in History Table : 100
Current History Table Length : 5
MAC Notification Traps are Enabled
History Table contents
----------------------
History Index 1, Entry Timestamp 891639, Despatch Timestamp 891639
MAC Changed Message :
Operation: Added   Vlan: 146   MAC Addr: 0000.6c11.1111 Dot1dBasePort: 3
History Index 2, Entry Timestamp 921715, Despatch Timestamp 921715
MAC Changed Message :
Operation: Deleted Vlan: 146   MAC Addr: 000b.5f76.7280 Dot1dBasePort: 3
History Index 3, Entry Timestamp 942366, Despatch Timestamp 942366
MAC Changed Message :
Operation: Added   Vlan: 146   MAC Addr: 0000.6c11.0001 Dot1dBasePort: 3
History Index 4, Entry Timestamp 944973, Despatch Timestamp 944973
MAC Changed Message :
Operation: Deleted Vlan: 146   MAC Addr: 0000.6c11.1111 Dot1dBasePort: 3
Operation: Deleted Vlan: 146   MAC Addr: 0000.6c11.0001 Dot1dBasePort: 3
History Index 5, Entry Timestamp 945174, Despatch Timestamp 945174
MAC Changed Message :
Operation: Added   Vlan: 146   MAC Addr: 0000.6c11.0001 Dot1dBasePort: 3
Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: