---
title: IPSG Configuration
slug: enterprise-v5p2/Qw9z-ipsg-configuration
description: security configuration
createdAt: 2025-11-14T03:58:40.258Z
---

### <font color="#1d50a2">show ipv4-source-check config</font>

**\[Command]**
**show ipv4-source-check config**

**\[Purpose]**
View the IP packet inspection function configuration information

**\[View]**
System view

**\[Use Cases]**

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

### <font color="#1d50a2">show ipv6-source-check config</font>

**\[Command]**
**show ipv6-source-check config**

**\[Purpose]**
View the configuration information of IPv6 packet inspection function

**\[View]**
System view

**\[Use Cases]**

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

### <font color="#1d50a2">ipv4-source-check enable</font>

**\[Command]**
**ipv4-source-check enable**
**no ipv4-source-check enable**

**\[Purpose]**
Enable IPv4 packet inspection function

**\[View]**
VLAN view,Interface view

**\[Usage Scenario]**
When the IP packet inspection function is enabled, the device will compare the source IP and source MAC of the received IPv4 packet with the information in the snooping table entry and User-bind table entry, if it can hit, it means the user of the IPv4 packet is a legal user and allows the IPv4 packet of this user to pass, otherwise it is considered an illegal user and drops the IP packet.

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# ipv4-source-check enable
```

### <font color="#1d50a2">ipv4-source-check trusted-interface</font>

**\[Command]**
**ipv4-source-check trusted-interface vlan** *vlan\_id*
**ipv4-source-check trusted-interface**
**no ipv4-source-check trusted-interface vlan** *vlan\_id*
**no ipv4-source-check trusted-interface**

**\[Purpose]**
Configuring IPSG trusted ports or trusted VLAN

**\[View]**
Interface view

**\[Usage Scenario]**
When configured as an IPSG trusted port, IPv4 packets received from this port will not be IPSG checked and will all be allowed to pass.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# ipv4-source-check trusted-interface vlan 10
```

### <font color="#1d50a2">ipv6-source-check enable</font>

**\[Command]**
**ipv6-source-check enable**
**no ipv6-source-check enable**

**\[Purpose]**
Enable IPv6 packet inspection function

**\[View]**
VLAN view,Interface view

**\[Usage Scenario]**
When the IP packet inspection function is enabled, the device will compare the source IP, source MAC, snooping table entry and User-bind table entry of the received IPv6 packet, if it can hit, it means the user of the IPv6 packet is a legitimate user and allows the IPv6 packet of this user to pass, otherwise it is considered an illegal user and drops the IP packet.

**\[Use Cases]**

```plaintext
sonic(config)# vlan 100
sonic(config-vlan-100)# ipv6-source-check enable
```

### <font color="#1d50a2">ipv6-source-check trusted-interface</font>

**\[Command]**
**ipv6-source-check trusted-interface vlan** *vlan\_id*
**ipv6-source-check trusted-interface**
**no ipv6-source-check trusted-interface vlan** *vlan\_id*
**no ipv6-source-check trusted-interface**

**\[Purpose]**
Configuring IPSG trusted ports or trusted VLAN

**\[View]**
Interface view

**\[Usage Scenario]**
When configured as an IPSG trusted port, IPv6 messages received from this port will not be IPSG checked and will all be allowed to pass.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 1
sonic(config-if-1)# ipv6-source-check trusted-interface vlan 10
```

