1-17 
interface-list: Ethernet port list. You can specify multiple Ethernet ports by providing this argument in the 
format of interface-list  ={  interface-type interface-number [ to  interface-type interface-number ] } 
&<1-10>, where &<1-10> means that you can provide up to 10 port indexes/port index ranges for this 
argument. 
Description 
z  Use the stp compliance command in interface view to configure the mode the port(s) will use to 
recognize and send MSTP BPDUs. Use the undo stp compliance command to restore the 
system default. 
z  Use the stp interface compliance command in system view to set the mode in which a port 
recognizes and sends MSTP packets. Use the undo stp interface compliance command to 
restore the default. 
The default mode is auto, namely all ports recognize the BPDU format automatically. 
Note that: 
z  If the mode is set to auto on a port, the port automatically recognizes and resolves the received 
compatible-format BPDUs or 802.1s-compliant BPDUs, and sends, when needed, 
compatible-format or 802.1s-compliant BPDUs. 
z  If the mode is set to legacy or dot1s on a port, the port can only receive and send BPDUs of the 
specified format. If the port is configured not to detect the packet format automatically while it works 
in the MSTP mode, and if it receives a packet in the format other than the configured format, it will 
become a designated port and remain in the discarding state to prevent the occurrence of a loop. 
Examples 
# Configure Ethernet 1/0/1 to recognize and send MSTP BPDUs in dot1s format.  
z  In Ethernet port view. 
<Sysname> system-view 
Enter system view, return to user view with Ctrl+Z. 
[Sysname] interface Ethernet 1/0/1 
[Sysname-Ethernet1/0/1] stp compliance dot1s 
z  In system view. 
<Sysname> system-view 
Enter system view, return to user view with Ctrl+Z. 
[Sysname] stp interface Ethernet1/0/1 compliance dot1s 
# Configure Ethernet 1/0/2 to Ethernet 1/0/4 to recognize and send MSTP BPDUs in dot1s format. 
<Sysname> system-view 
[Sysname] stp interface Ethernet 1/0/2 to Ethernet1/0/4 compliance dot1s 
stp config-digest-snooping 
Syntax 
z  System view, Ethernet port view: 
stp config-digest-snooping 
undo stp config-digest-snooping 
z  System view: 
stp interface interface-list config-digest-snooping