---
title: SAVI Configuration
slug: routing/savi-configuration
createdAt: 2025-12-04T03:59:18.562Z
---

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

### <font color="#1d50a2">show savi config</font>

**\[Command]**
**show savi config**

**\[Purpose]**
View SAVI function configuration information

**\[View]**
System view

**\[Use Cases]**

```plaintext
sonic# show savi config
+--------------+-------------+
| Interfaces | Check mode |
+==============+=============+
| Vlan100 | false |
+--------------+-------------+
| Vlan200 | true |
+--------------+-------------+
```

### <font color="#1d50a2">savi enable</font>

**\[Command]**
**savi enable**
**no savi enable**

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

**\[View]**
VLAN view

**\[Notes]**
After enabling SAVI function, the device will compare the source IP, source MAC, snooping table entry and User-bind table entry of the received ND protocol packets, DHCPv6 protocol packets, and if it can hit, the packets will be passed, otherwise the packets will be dropped.

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# savi enable
```

### <font color="#1d50a2">savi trusted-interface</font>

**\[Command]**
**savi trusted-interface vlan *VLAN-ID***
**no savi trusted-interface vlan *VLAN-ID***

**\[Purpose]**
Configuring SAVI trusted ports

**\[View]**
VLAN view

**\[Notes]**
After configured as a SAVI trusted port, ND protocol packets and DHCPv6 protocol packets received from this port will not be checked by SAVI and will all be allowed to pass.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# savi trusted-interface vlan 10
```

### <font color="#1d50a2">savi alarm enable</font>

**\[Command]**
**savi alarm enable**
**savi 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)# savi alarm enable
```

