arp ipv4 mac

Syntax

arp ipv4 <IPV4_ADDR> mac <MAC_ADDR>

no arp ipv4 <IPV4_ADDR> mac <MAC_ADDR>

Description

Specifies a permanent static neighbor entry in the ARP table (for IPv4 neighbors).

The no form of this command deletes a permanent static neighbor entry from the ARP table.

Command context

config-if

config-if-vlan

Parameters

ipv4 <IPV4-ADDR>

Specifies the IP address of the neighbor or the virtual IP address of the cluster in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255. . Range: 4096 to 131072. Default: 131072.

mac <MAC-ADDR>

Specifies the MAC address of the neighbor or the multicast MAC address in IANA format (xx:xx:xx:xx:xx:xx), where x is a hexadecimal number from 0 to F. Range: 4096 to 131072. Default: 131072.

Authority

Administrators or local user group members with execution rights for this command.

Example

On the 6400 Switch Series, interface identification differs.

Configuring a static ARP entry on a interface VLAN 10:

switch(config)# interface vlan 10
switch(config-if-vlan)# arp ipv4 2.2.2.2 mac 01:00:5e:00:00:01

Removing a static ARP entry on interface VLAN10:

switch(config)# interface vlan 10
switch(config-if-vlan)# no arp ipv4 2.2.2.2 mac 01:00:5e:00:00:01