Solved

"clear arp" can not clear arp in router or switch

Posted on 2013-06-16
8
648 Views
Last Modified: 2013-06-18
Hi Expert
Here is a question. After I used command "clear arp", I found the output of show arp is still same and did not have any change in router or switch. It looks like the command only can clear Age time, and cannot clear mac address. How to clear mac address ? Anyone can give me some suggestion ? Thank you

R1#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.0.0.11               0   c218.26d8.0000  ARPA   FastEthernet1/1
Internet  10.0.0.3                0   c219.26d8.0000  ARPA   FastEthernet1/1
Internet  10.0.0.1                -   c214.2070.f101  ARPA   FastEthernet1/1
0
Comment
Question by:EESky
  • 3
  • 3
  • 2
8 Comments
 
LVL 9

Expert Comment

by:Sandeep Gupta
ID: 39253181
clear ip arp

clear counters
0
 

Author Comment

by:EESky
ID: 39254540
The both commands can not work for the situation
0
 
LVL 4

Assisted Solution

by:MarcusSjogren
MarcusSjogren earned 500 total points
ID: 39254616
If "clear arp" and "clear ip arp" doesn't clear the output for "show arp" and "show ip arp" it means that your router is communicating with the IP addresses.

Could for instance be via Cisco CDP or similar which is running automatically in the background with a discovery function.

Marcus
0
 
LVL 4

Expert Comment

by:MarcusSjogren
ID: 39254625
show arp will show you arp-table for all protocols including apple talk etc.
Show ip arp will only show IP to MAC bindings.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:EESky
ID: 39255245
Yes, the command "clear arp" does not has the function which delete the record of relation of ip address and mac address. it can only update the age time of it. but it looks like that the cdp also cannot do that
0
 
LVL 4

Accepted Solution

by:
MarcusSjogren earned 500 total points
ID: 39255327
Hi,

May I ask why this is such a big issue for you? Both CDP and ARP feature automatic discovery functions and the discovery function cannot be removed.
Hence, the ARP table will have entries.

Type "arp -a", "arp -d *" and "arp -a" on your Windows PC, you will see a similar behavior.

Can you specify what devices 10.0 0.1,10.0.0.3 and 10.0.0.11 is?

Marcus
0
 
LVL 9

Expert Comment

by:Sandeep Gupta
ID: 39255756
try this as well

clear arp-cache

remember default arp timeout is 4hrs.
0
 

Author Comment

by:EESky
ID: 39257328
To Marcus, You are right. Thank you. And i found that once i changed ip address or mac address, the neighbor of the device can change the its own arp table immediately. it looks like that arp protocol send update message to neighbor so fast and frequently.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DNS on-premise and on-cloud 15 70
Multicast MAC Addresses in VMware vSwitches 3 65
pfSense IP Helper 4 92
RIP Routing 5 48
It happens many times that access list (ACL) have to be applied to outgoing router interface in order to limit some traffic.This article is about how to test ACL from the router which is not very intuitive for everyone. Below scenario shows simple s…
This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now