星期四, 6月 25, 2015

[轉載] 如何清除ARP cache / Clear ARP entries from various devices

Ref:

https://robiulislam.wordpress.com/2011/12/20/clear-arp-entries-from-cisco-asaroutersswitches/

 

From Cisco Switches / Firewall (ASA) / Switches:

To see the arp table:
#show arp

To clear the arp table:
#clear arp

To clear selective entry:
#clear ip arp IPAddress
eg. clear ip arp 192.168.2.109

Windows:

c:\> arp -a (display arp table cache)
C:\> arp -d (delete arp table cache)

Linux:

Display arp table:
#arp -e (arp -a, arp -n etc)

Add Static Arp Entry
# arp -i eth0 -s 192.168.2.33 00:bb:23:11:13:fc  (ifconfig will show you the prticular mac address from the network adapter)

Selectively delete arp cache
#arp -d hostname
#arp -d 192.168.2.10

Removing arp cache from particular network adapter:
#arp -i eth1 -d 192.168.100.17

Flush arp entry for host 10.20.30.40:
# ip neigh flush 10.20.30.40

Flush arp entry for all hosts in network 192.168.0.0/24:
# ip neigh flush 192.168.0.0/24

Flush all arp entries:
# ip neigh flush all

Mac OS X:
$ sudo arp -a -d (no need sudo if you are login as root)

 

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...