how to clear mac-address-table entry using snmp

Unanswered Question
Jan 29th, 2010

Hi,

I want to view and remove an entry from mac-address-table using snmp. Any suggestions? I am using 2960 series switch.

Thanks

Monty

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
monty1082 Mon, 02/01/2010 - 06:28

Hi Ganesh,

Thanks ofr the reply. I already tried that. My issue is,

I cannot see all the dynamic entries from mac-address-table in arp cache on the switch. For e.g.,

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Switch_BS#show arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  192.168.11.8            0   001c.2342.8088  ARPA   Vlan1
Internet  192.168.11.13           -   001c.57ef.93c0  ARPA   Vlan1
Switch_BS#show mac-address-table
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
All    0100.0ccc.cccc    STATIC      CPU
All    0100.0ccc.cccd    STATIC      CPU
All    0180.c200.0000    STATIC      CPU
All    0180.c200.0001    STATIC      CPU
All    0180.c200.0002    STATIC      CPU
All    0180.c200.0003    STATIC      CPU
All    0180.c200.0004    STATIC      CPU
All    0180.c200.0005    STATIC      CPU
All    0180.c200.0006    STATIC      CPU
All    0180.c200.0007    STATIC      CPU
All    0180.c200.0008    STATIC      CPU
All    0180.c200.0009    STATIC      CPU
All    0180.c200.000a    STATIC      CPU
All    0180.c200.000b    STATIC      CPU
All    0180.c200.000c    STATIC      CPU
All    0180.c200.000d    STATIC      CPU
All    0180.c200.000e    STATIC      CPU
All    0180.c200.000f    STATIC      CPU
All    0180.c200.0010    STATIC      CPU
All    ffff.ffff.ffff    STATIC      CPU
   1    0019.a300.03aa    DYNAMIC     Gi0/1
   1    001c.2342.8088    DYNAMIC     Gi0/7
   1    00a7.0dc1.ea4a    DYNAMIC     Gi0/2

Total Mac Addresses for this criterion: 23

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

As you can see the mac-address-table has three dynamic entries v/s arp cache which has only one dynamic entry. Hence when you execute the snmpwalk you can only see the two entries as in the arp table. This is the reason why walooking to clear the mac-address-table entries.

Thanks

-Monty

Actions

This Discussion