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

Parameters

ipv4 <IPV4_ADDR>>

Specifies the IP address of the neighbor in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255. You can remove leading zeros. For example, the address 192.169.005.100 becomes 192.168.5.100. Range: 4096 through 131072. Default: 131072.

mac <MAC_ADDR>>

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

Authority

Administrators

Example

Creates a static ARP entry on interface 1/1/1.

switch(config)# interface 1/1/1
switch(config-if)# arp ipv4 192.168.1.2 mac 00:50:56:96:df:c8