1-16 
Examples 
# Enable the BPDU guard function. 
<Sysname> system-view  
System View: return to User View with Ctrl+Z. 
[Sysname] stp bpdu-protection 
stp bridge-diameter 
Syntax 
stp bridge-diameter bridgenum 
undo stp bridge-diameter 
View 
System view 
Parameters 
bridgenum: Network diameter to be set for a switched network. This argument ranges from 2 to 7. 
Description 
Use the stp bridge-diameter command to set the network diameter of a switched network. The 
network diameter of a switched network is represented by the maximum possible number of switches 
between any two terminal devices in a switched network. 
Use the undo stp bridge-diameter command to restore the network diameter to the default value. 
By default, the network diameter is 7. 
After you configure the network diameter of a switched network, MSTP adjusts its hello time, forward 
delay, and max age settings accordingly. With the network diameter set to the default value 7, the three 
time-relate settings, including hello time, forward delay, and max age, are set to their default values as 
well. 
The stp bridge-diameter command only applies to CIST. It is invalid for MSTIs. 
Related commands: stp timer forward-delay, stp timer hello, stp timer max-age. 
Examples 
# Set the network diameter to 5. 
<Sysname> system-view  
System View: return to User View with Ctrl+Z. 
[Sysname] stp bridge-diameter 5 
stp compliance 
Syntax  
z  Ethernet port view: 
stp compliance { auto | legacy | dot1s } 
undo stp compliance 
z  System view: