The Clear Arp Cisco command

Cisco 'clear arp' Command

The 'clear arp' command is a powerful tool used in Cisco networking to manage and troubleshoot issues related to Address Resolution Protocol (ARP). It allows network administrators to remove all the dynamic ARP entries from a device's ARP cache, effectively resetting the ARP table. This can be useful in several scenarios to resolve ARP-related problems and maintain network stability.

Syntax:

clear arp [cache]

Parameters:

Function:

When the 'clear arp' command is executed, it removes all the dynamically learned ARP entries from the specified ARP cache. This means that all the IP-to-MAC address mappings that were automatically populated through ARP requests and responses are cleared. As a result, the device will have to relearn these mappings the next time it needs to communicate with the affected hosts.

Usage:

The 'clear arp' command is commonly used in the following situations:

Supported Equipment:

The 'clear arp' command is supported on a wide range of Cisco devices, including routers, switches, and firewalls. The specific syntax and availability of the command may vary slightly depending on the device model and IOS version.

Additional Information:

clear arp Usage Examples

Examples:

  1. Clear ARP entries for all entries and all interfaces:

    clear arp *
    
  2. Clear ARP entries for a specific interface:

    clear arp interface GigabitEthernet0/1
    
  3. Clear ARP entries for a specific IP address:

    clear arp 10.1.1.1
    
  4. Clear ARP entries for a range of IP addresses:

    clear arp 10.1.1.1 - 10.1.1.254
    
  5. Clear ARP entries for a specific MAC address:

    clear arp 00:11:22:33:44:55
    
  6. Clear ARP entries for a range of MAC addresses:

    clear arp 00:11:22:33:44:55 - 00:11:22:33:44:56
    
  7. Clear ARP entries for a specific VLAN:

    clear arp vlan 10
    
  8. Clear ARP entries for all VLANs:

    clear arp vlan *
    
  9. Clear ARP entries for a specific subnet:

    clear arp subnet 10.1.1.0/24
    
  10. Clear ARP entries for all subnets:

    clear arp subnet *