Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Arp command, Cisco

From NetworkCommands


Image:Cisco-logo-large.gif

A command available on most Cisco platforms; used to create, modify or delete static ARP entries as well as specify use of ARP access-lists.

Contents

Image:Vm-power-on-medium.png Usage Syntax

The arp command is used to modify global, device-wide ARP configuration and interface specific configuration.

Configuration Context: global

arp ip_address mac_address [type] [interface]

The hardware address type parameter can be one of;

  • arpa - ARPA (Ethernet) - this is the default type
  • sap - SAP (HP's ARP type)
  • smds - SMDS
  • snap - SNAP (FDDI and TokenRing)
  • srp-a - SRP (side A)
  • srp-b - SRP (side B)

The optional interface parameter specifies the interface the specified MAC address is available through. See the usage notes below for more information.

Configuration Context: Interface

arp type

Valid values for type are:

  • arpa
  • frame-relay
  • probe
  • snap

arp timeout seconds - specify the ARP timeout for this interface in seconds using a value between 0 and 2147483. The default is 14400 (4hrs)

Image:Vm-power-on-medium.png Usage Examples

arp 1.1.1.1 1234.ABCD.1234 arpa - create a static entry

no arp 1.1.1.1 1234.ABCD.1234 arpa - delete an existing static entry

arp timeout 1200 - specify an ARP timeout of 20 minutes for the interface

Image:accessories-text-editor-v2-medium.png Usage Notes

Use the no form of this command to delete an ARP entry, static or dynamic

The MAC address should be specified in this format XXXX.XXXX.XXXX

The ARP timeout setting is interface specific

The default ARP timeout is 14400 seconds (4hrs)

Although an ARP timeout of less than 60 seconds can be specified, stale or timed-out ARP table entries are only removed from the ARP table once a minute

The Interface Parameter

The interface parameter is only significant if traffic is not routed out of the interface specified (because the destination host is on a locally attached network.) If the traffic is routed (because the destination host is on a remote network,) the MAC address of the next hop gateway is looked up and used, not the MAC address of the destination host.

Thus, only specify an interface if that interface is directly connected to the network the specified host resides on. (A route may point to an interface rather than a next hop but this still applies as the interface will, by definition, be attached to the local network the destination host is on.) A router will only look up the MAC address for a host if that host is on a directly connected network.

The following diagram provides and example of this:

Image:Cisco-Static-MAC.png

Image:icemon-medium.png Related Commands

Use the show arp command to view all dynamic and static ARP entries on a device

Use the clear arp-cache command to remove dynamic entries in a devices ARP table

Image:object-flip-horizontal-medium.png Command Equivalents

The Windows command equivalent has the same name: arp command, Windows

The Linux command equivalent has the same name: arp command, Linux

Image:icemon-medium.png Related Articles

The Linux ifconfig command displays the MAC address(es) of network interfaces installed in the system

The Windows getmac command displays the MAC address(es) of network interfaces installed in the system

Information on other Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on Linux commands Image:Tux-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 10 September 2008, at 17:25. - This page has been accessed 46 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki