329
Command:arp <ip_address> <mac_address> {[ethernet] <portName>}
no arp <ip_address>
Function:
Configures a static ARP entry; the “
no arp <ip_address>”
command deletes
a static ARP entry.
Parameters:
<ip_address>
is the IP address;
<mac_address>
is the MAC address;
ethernet
stands for Ethernet port;
<portName>
for the name of layer2 port.
Default:
No static ARP entry is set by default.
Command mode:
Interface Mode
Usage Guide:
Static ARP entries can be configured in the switch.
Example:
Configuring static ARP for interface VLAN1.
Switch(Config-If-Vlan1)#arp 1.1.1.1 00-03-0f-f0-12-34 eth 1/2
10.5.3.2 clear arp-cache
Command: clear arp-cache
Function:
Clears arp table.
Parameters:
N/A.
Command mode:
Admin Mode
Usage Guide:
Clears the content of current ARP table, but it does not clear the current
static ARP table.
Example:
Switch#clear arp-cache
10.5.3.3 ip proxy-arp
Command:ip proxy-arp
no ip proxy-arp
Function:
Enables proxy ARP for VLAN interface; the “no ip proxy-arp” command
disables proxy ARP.
Default:
Proxy ARP is disabled by default.
Command mode:
Interface Mode
Usage Guide:
When an ARP request is received on the layer 3 interface, requesting an
IP address in the same IP segment of the interface but not the same physical network,
and the proxy ARP interface has been enabled, the interface will reply to the ARP with its
own MAC address and forward the actual packets received. Enabling this function allows
machines to physically be separated but in the same IP segment and communicate via
the proxy ARP interface as if in the same physical network. Proxy ARP will check the
route table to determine whether the destination network is reachable before responding
to the ARP request; ARP request will only be responded if the destination is reachable.
Note: the ARP request matching default route will not use proxy.
Example:
Enable proxy ARP for VLAN 1.
Switch(Config-If-Vlan1)#ip proxy-arp
10.5.3.4 ARP Forwarding Troubleshooting Help