---
title: ARP Configuration
slug: enterprise-v6p1/arp-configuration
createdAt: 2025-12-04T06:51:51.765Z
---

## <font color="#1d50a2">ARP Configuration</font>

### <font color="#1d50a2">show arp</font>

**\[Command]**
**show arp**

**\[Purpose]**
Show IP ARP table

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show arp
Address        MacAddress        Iface  vlan  Type
------------- ----------------- ------- ----  --------
192.168.0.1    6c:b3:11:33:aa:6c  mgmt   -    Dynamic
192.168.0.237  8c:ec:4b:67:ae:42  mgmt   -    Dynamic
192.168.14.35  00:0c:29:89:bc:9b  mgmt   -    Dynamic
Total number of entries 3
```

### <font color="#1d50a2">show arp-proxy count</font>

**\[Command]**
**show arp-proxy count \[** *second* **]**

**\[Purpose]**
Show the number of ARP proxy replies

**\[Parameter]**

| **Parameter** | **Description**                                      |
| ------------- | ---------------------------------------------------- |
| *second*      | Specify the number of seconds to view, range: 1-3600 |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show arp-proxy count
```

### <font color="#1d50a2">show interface arp-proxy status</font>

**\[Command]**
**show interface arp-proxy status**

**\[Purpose]**
Show interface ARP proxy status

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show interface arp-proxy status
+--------------+------------+
| Interfaces   | Status     |
+==============+============+
| Ethernet49   | disable    |
+--------------+------------+
| Ethernet50   | disable    |
+--------------+------------+
| Vlan400      | anycast_gw |
+--------------+------------+
```

### <font color="#1d50a2">clear neighbor</font>

**\[Command]**
**clear neighbor \{all|static|dynamic}**&#x20;
**clear neighbor interface \{** *interface\_type* **}** *interface\_name*

**\[Purpose]**
Clear ARP, NDP table entries

**\[Parameter]**

| **Parameter**     | **Description**                                           |
| ----------------- | --------------------------------------------------------- |
| *interface\_type* | Interface type, optional ethernet, vlan, link-aggregation |
| *interface\_name* | optional interface\_num, vlan\_id, lag\_id                |

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# clear neighbor all
```

### <font color="#1d50a2">arp static</font>

**\[Command]**
**arp static** *A.B.C.D  HH\:HH\:HH\:HH\:HH*:HH  **\{** *interface\_type* **}** *interface\_name*
**no arp static** *A.B.C.D* **\{** *interface\_type* **}**  *interface\_name*

**\[Purpose]**
Configure static ARP

**\[Parameter]**

| **Parameter**           | **Description**                                            |
| ----------------------- | ---------------------------------------------------------- |
| *A.B.C.D*               | IP address                                                 |
| *HH\:HH\:HH\:HH\:HH*:HH | MAC address                                                |
| *interface\_type*       | Interface type, optional ethernet, vlan, link-aggregation  |
| *interface\_name*       | Interface name, optional interface\_num, vlan\_id, lag\_id |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# arp static 3.3.3.3 00:00:00:00:00:01 vlan 5
sonic(config)# arp static 4.4.4.4 00:00:00:00:00:02 ethernet 1
sonic(config)# arp static 5.5.5.5 00:00:00:00:00:03 link-aggregation 1
```

### <font color="#1d50a2">arp timeout</font>

**\[Command]**
**arp timeout** *expire\_time*

**\[Purpose]**
Configure ARP table entry aging time

**\[Parameter]**

| **Parameter**  | **Description**                   |
| -------------- | --------------------------------- |
| *expire\_time* | Time value, range 60-7200, unit s |

**\[View]**
System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# arp timeout 500
```

### <font color="#1d50a2">arp-proxy</font>

**\[Command]**
**arp-proxy mode \{** *mode\_type* **}**
**no arp-proxy**

**\[Purpose]**
Enable the ARP proxy function of the interface

**\[Parameter]**

| **Parameter** | **Description**                                     |
| ------------- | --------------------------------------------------- |
| *mode\_type*  | default/evpn/anycast\_gw,default mode by “default”. |

**\[View]**
Interface view

**\[Usage Scenario]**
In scenarios where Layer 2 broadcast isolation is enabled, allowing communication between devices in the same LAN requires a common approach. One common method is to enable ARP proxy on the interface acting as the gateway. This allows the gateway's MAC address to be sent to devices initiating ARP requests, effectively converting local Layer 2 communication into Layer 3 routed communication.

In a VxLAN scenario, enabling the arp-proxy evpn mode allows the local VTEP to use the ARP information synchronized from the remote end via EVPN to perform proxy responses for local terminal ARP requests

**\[Comment]**
On devices with ARP proxy enabled, you may need to use the **arp-to-host convert enable** command to convert learned ARP entries into host routes, ensuring proper routing.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface vlan 400
sonic(config-vlanif-400)# arp-proxy mode anycast_gw
```

### <font color="#1d50a2">arp broadcast \{copy|trap\}</font>

**\[Command]**
**arp broadcast \{copy|trap}**

**\[Purpose]**
Configure the handling actions for ARP broadcast messages on the device.

**\[Parameter]**

| **Parameter** | **Description**                                                                               |
| ------------- | --------------------------------------------------------------------------------------------- |
| **copy**      | Copy ARP broadcast messages, one for CPU processing and another broadcast to other interfaces |
| **trap**      | Only send ARP messages to the CPU for processing                                              |

**\[View]**
System configuration view

**\[Usage Scenario]**
This command is commonly used in conjunction with the "broadcast drop" command to change the processing method of ARP messages to only send to the CPU without forwarding, completely isolating Layer 2 broadcast messages between terminals.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# arp broadcast trap
```

##

