Configuraton commands

Use these M4500 CLI commands to create static ARP entries, configure proxy ARP, ARP cache size, timeouts, retries, and clear 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. The value for <macaddress> is a unicast MAC address for that device.

Default None
Format arp [vrf <vrf-name>] <ipaddr> <macaddr> [interface {<slot/port> | vlan <1-4093>}] no arp <ipaddr> [interface {<slot/port> | vlan <1-4093>}]
Mode Global Config
Fields Definition
vrf-name The specified VRF in which the ARP entry is going to be created.
IP address Is the IP address of a device on a subnet attached to an existing routing interface.
MAC address Is a MAC address for that device. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example, 00:06:29:32:81:40.
no This command deletes an ARP entry.

ip proxy-arp

This command enables proxy ARP on a router interface or range of interfaces. Without proxy ARP, a device only responses 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 response if the target IP address is reachable. The device only responses if all next hops in its route to the destination are through interfaces other than the interface that received the ARP request.

To disable proxy ARP on a router interface, use the no form of this command.

Default Enable.
Format

ip proxy-arp

no ip proxy-arp

Mode Interface Config

ip local-proxy-arp

This command allows an interface to response to ARP request for IP address within the subnet and to forward traffic between hosts in the subnet.

To reset the local proxy ARP mode on the interface to the default value, use the no form of this command.

Default Disable.
Format

ip local-proxy-arp

no ip local-proxy-arp

Mode Interface Config

arp cashesize

This command configures the maximum number of entries in the ARP cache. The ARP cache size value is platform dependency.

Default The default cache size is 8192 or 6144, which depends on the platform currently used.
Format

arp cachesize <1152-8192> or arp cachesize <1152-6144>

no arp cachesize

Mode Global Config
Fields Definition
<1152-8192>

The range of cache size is 1152 to 8192 for the following platform

ipv4-routing data-center default

ipv4-routing dcvpn-data-center

dual-ipv4-and-ipv6 default

dual-ipv4-and-ipv6 alpm

dual-ipv4-and-ipv6 alpm-mpls-data-center

dual-ipv4-and-ipv6 data-center

dual-ipv4-and-ipv6 dcvpn-data-center

dual-ipv4-and-ipv6 mpls-data-center

The range of cache size is 1152 to 6144 for the following platform:

<1152-6144>

ipv4-routing default

ipv4-routing data-center plus

no This command configures the default ARP cache size.

arp dynamicrenew

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

Default Disable
Format

arp dynamicrenew

no arp dynamicrenew

Mode Global Config
Fields Definition
no This command disables ARP component from automatically renewing ARP entries of type dynamic when they age out.

arp resptime

This command configures the ARP request response timeout.

Default The default response time is 1.
Format

arp resptime <1-10>

no arp resptime

Mode Global Config
Fields Definition
<1-10> The range of default response time is 1 to 10 seconds.
no This command configures the default response timeout time.

arp retries

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

Default The default value is 4.
Format

arp retries <0-10>

no arp retries

Mode Global Config
Fields Definition
<1-10> The range of maximum request for retries is 0 to 10.
no This command configures the default count of maximum request for retries.

arp timeout

This command configures the ARP entry ageout time.

Default The default value is 1200.
Format

arp timeout <15-21600>

no arp timeout

Mode Global Config
Fields Definition
<15-21600> Represents the IP ARP entry ageout time in seconds. The range is 15 to 21600 seconds.
no This command configures the default ageout time for IP ARP entry.

arp access-list

Use this command to create an ARP ACL

Default None
Format

arp access-list <name>

no arp access-list <name>

Mode Global Config
Fields Definition
<name> Enter ARP access-list name <1-31> alphanumeric characters in length.
no Use this command to delete a configured ARP ACL.

permit ip host mac host

Use this command to configure a rule for a valid IP address and MAC address combination used in ARP packet validation.

Default None
Format

permit ip host <sender-ip> mac host <sender-mac>

no permit ip host <sender-ip> mac host <sender-mac>

Mode ARP Access-list Config
Fields Definition
<sender-ip> Specifies IP address in the ARP ACL rule.
<sender-mac> Specifies MAC address in the ARP ACL rule.
no Use this command to delete a rule for a valid IP and MAC combination.

clear ip arp-cache

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

Default None
Format clear ip arp-cache [gateway | interface {<slot/port> | vlan <vlan-id>}]
Mode Privileged Exec