cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7871
Views
3
Helpful
3
Replies

how to clear mac-address-table entry using snmp

monty1082
Level 1
Level 1

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

3 Replies 3

Ganesh Hariharan
VIP Alumni
VIP Alumni

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

Monty,

You can clear the single arp entry from mac-address table check out the belwo link hope tha help

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a9c.shtml

If helpful do rate the valauble post

Ganesh.H

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: