---
title: ARP Detection Configuration
slug: routing/arp-detection-configuration
createdAt: 2025-12-04T03:59:18.578Z
---

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

### <font color="#1d50a2">show anti-attack-check config</font>

**\[Command]**
**show anti-attack-ckeck config**

**\[Purpose]**
View ARP detection configuration

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show anti-attack-check config
+--------------+--------------+
| Interfaces | Check mode |
+==============+==============+
| Vlan43 | true |
+--------------+--------------+
```

### <font color="#1d50a2">arp anti-attack-check enable</font>

**\[Command]**
**arp anti-attack-check enable**
**no arp anti-attack-check enable**

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

**\[View]**
VLAN view

**\[Notes]**
After enabling ARP Snooping detection function, the device will compare the source IP, source MAC, snooping table entry and User-bind table entry of the received ARP packet, if it can hit, the user of the ARP packet is a legitimate user and the ARP packet of this user is allowed to pass, otherwise it is considered an illegal user and the ARP packet is dropped.

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# arp anti-attack-check enable
```

### <font color="#1d50a2">arp anti-attack-check trusted-interface</font>

**\[Command]**
**arp anti-attack-check trusted-interface vlan *VLAN-ID***
**no arp anti-attack-check trusted-interface vlan *VLAN-ID***

**\[Purpose]**
Configuring ARP detection trusted ports

**\[View]**
VLAN view

**\[Notes]**
After configured as an ARP detection trusted port, ARP packets received from this port will not be checked and all are allowed to pass.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# arp anti-attack-check trusted-interface vlan 10
```

### <font color="#1d50a2">arp anti-attack-check alarm enable</font>

**\[Command]**
**arp anti-attack-check alarm enable**
**arp anti-attack-check alarm threshold *alarm\_threshold***

**\[Purpose]**
Enable the packet inspection alarm function

**\[View]**
Interface view

**\[Notes]**
When this feature is enabled, when the packets discarded on the device due to the packet inspection function exceed the alarm threshold, a log is recorded.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# arp anti-attack-check alarm enable
```

