---
title: SAVI Configuration
slug: enterprise-v6p1/savi-configuration
createdAt: 2025-12-05T07:55:04.487Z
---

#

SAVI (Source Address Validation Improvement) is a mechanism used on access devices to validate the authenticity of IPv6 Neighbor Discovery (ND) protocol packets. It is based on ND Snooping, DHCP Snooping, and static binding entries, and it helps prevent unauthorized packets from entering the internal network.

# <font color="#1d50a2">Explanation of Principles</font>

The method of user legitimacy validation involves comparing ND packets with the device's static binding entries, ND Snooping entries, and DHCP Snooping security entries. If there is a match between the source IPv6 address and the source MAC address in any of these entries, the ND packet is considered legitimate and allowed to be forwarded. Otherwise, if no match is found, the packet is deemed unauthorized and discarded. It's important to note that Router Advertisement (RA) packets are not subject to SAVI checks and are controlled by the RA Guard functionality. Additionally, Router Solicitation (RS) packets with Link-local source addresses are allowed to pass through without further validation.

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

| **Configure Tasks**           | **Instructions** |
| ----------------------------- | ---------------- |
| Enable SAVI                   | Required         |
| Configure SAVI trusted  ports | Optional         |

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

| **Operation**                        | **Command**             | **Description** |
| ------------------------------------ | ----------------------- | --------------- |
| Enter the system  configuration view | **configure  terminal** |                 |
| Enter the VLAN view                  | **vlan**  *ID*          |                 |
| Enable SAVI function                 | **savi enable**         |                 |

## <font color="#1d50a2">Configuring SAVI Trusted Ports</font>

For ports configured as SAVI trusted, if a specific VLAN on that port has SAVI functionality enabled, any ND packets received on that interface with the corresponding VLAN ID will not undergo SAVI validation. Instead, they will be allowed to pass through without SAVI checks.

| **Operation**                        | **Command**                                | **Description** |
| ------------------------------------ | ------------------------------------------ | --------------- |
| Enter the system  configuration view | **configure  terminal**                    |                 |
| Enter the interface view             | **interface ethernet** *interface-id*      |                 |
| Configure SAVI trusted  ports        | **savi  trusted-interface vlan** *vlan-id* |                 |

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

<font color="#1d50a2">**Network requirements**</font>

Users access the network through the switch, all users are known to be under the same VLAN100, and all users access the network in IPv6. The administrator wants to enable security features on the switch to prevent illegal users from accessing the network through private IP addresses, where: PC 2 statically configures IP addresses to simulate illegal private IP users.

::Image[]{src="https://app.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/cS8dSs-NKakabpQ4rrXAZ-20251203-103533.png" size="70" width="768" height="228" position="center" showCaption="false"}

**Procedure**


1. Omit VLAN creation and VLANif interface configuration
2. Enable DHCP relay function

```text
sonic(config)# dhcp-relay test1 v6
sonic(config-dhcp-relay-test__v6)# down_link interface vlan 100
sonic(config-dhcp-relay-test__v6)# up_link interface 49
sonic(config-dhcp-relay-test__v6)# server_ip 4005::1
sonic(config-dhcp-relay-test__v6)# loopback_interface loopback 0
sonic(config-dhcp-relay-test__v6)# exit
```

3. Enabling DHCP Snooping

```text
sonic(config)# dhcp snooping enable
sonic(config)# interface vlan 100
sonic(config-vlanif-100)# dhcp-snooping enable
```

4. Configure the interface connected to DHCP Server as a DHCP Snooping trusted port

```text
sonic(config)# interface ethernet 49
sonic(config-if-49)# dhcp-snooping enable
sonic(config-if-49)# dhcp-snooping trusted
```

5. Enabling ND Snooping

```text
sonic(config)# nd snooping enable
sonic(config)# interface vlan 100
sonic(config-vlanif-100)# nd snooping enable
```

6. Turn on SAVI function

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

**Verify configuration**


1. View device configuration.
   \# View SAVI function configuration

```text
sonic# show savi config 
+--------------+--------------+
| Interfaces   | Check mode   |
+==============+==============+
| Vlan100      | true         |
+--------------+--------------+ 
```

2. PC 1, PC 3 can access the network normally, PC 2 cannot access the network, and the packet loss statistics of the security function are counted.

##

