Previous Topic

Next Topic

Book Contents

Address Resolution Protocol (ARP) Commands

This section describes the commands you use to configure ARP and to view ARP information on the switch. ARP associates IP addresses with MAC addresses and stores the information as ARP entries in the ARP cache.

arp

This command creates an ARP entry. The value for <ipaddress> is the IP address of a device on a subnet attached to an existing routing interface. <macaddr> is a unicast MAC address for that device. The format of the MAC address is 6 two-digit hexadecimal numbers that are separated by colons, for example 00:06:29:32:81:40.

no arp

This command deletes an ARP entry. The value for <ipaddress> is the IP address of a device on a subnet attached to an existing routing interface.

ip proxy-arp

This command enables proxy ARP on a router interface. Without proxy ARP, a device only responds to an ARP request if the target IP address is an address configured on the interface where the ARP request arrived. With proxy ARP, the device may also respond if the target IP address is reachable. The device only responds if all next hops in its route to the destination are through interfaces other than the interface that received the ARP request.

no ip proxy-arp

This command disables proxy ARP on a router interface.

arp cachesize

This command configures the ARP cache size. The ARP cache size value is a platform specific integer value. The default size also varies depending on the platform.

no arp cachesize

This command configures the default ARP cache size.

arp dynamicrenew

This command enables the ARP component to automatically renew dynamic ARP entries when they age out.

no arp dynamicrenew

This command prevents dynamic ARP entries from renewing when they age out.

arp purge

This command causes the specified IP address to be removed from the ARP cache. Only entries of type dynamic or gateway are affected by this command.

arp resptime

This command configures the ARP request response timeout. The value for <seconds> is a valid positive integer, which represents the IP ARP entry response timeout time in seconds. The range for <seconds> is between 1-10 seconds.

no arp resptime

This command configures the default ARP request response timeout.

arp retries

This command configures the ARP count of maximum request for retries. The value for <retries> is an integer, which represents the maximum number of request for retries. The range for <retries> is an integer between 0-10 retries.

no arp retries

This command configures the default ARP count of maximum request for retries.

arp timeout

This command configures the ARP entry ageout time. The value for <seconds> is a valid positive integer, which represents the IP ARP entry ageout time in seconds. The range for <seconds> is between 15-21600 seconds.

no arp timeout

This command configures the default ARP entry ageout time.

clear arp-cache

This command causes all ARP entries of type dynamic to be removed from the ARP cache. If the gateway keyword is specified, the dynamic entries of type gateway are purged as well.

clear arp-switch

Use this command to clear the contents of the switch’s Address Resolution Protocol (ARP) table that contains entries learned through the Management port. To observe whether this command is successful, ping from the remote system to the DUT. Issue the show arp switch command to see the ARP entries. Then issue the clear apr-switch command and check the show arp-switch entries. There will be no more arp entries.

show arp

This command displays the Address Resolution Protocol (ARP) cache. The displayed results are not the total ARP entries. To view the total ARP entries, the operator should view the show arp results in conjunction with the show arp switch results.

The following are displayed for each ARP entry.

show arp brief

This command displays the brief Address Resolution Protocol (ARP) table information.

show arp switch

This command displays the contents of the switch’s Address Resolution Protocol (ARP) table.

See also

Routing Commands

IP Routing Commands

Router Discovery Protocol Commands

Virtual LAN Routing Commands

Virtual Router Redundancy Protocol Commands

DHCP and BOOTP Relay Commands

IP Helper Commands

Open Shortest Path First (OSPF) Commands

Routing Information Protocol (RIP) Commands

ICMP Throttling Commands