
1-15
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
stp compliance
{
auto
|
legacy
|
dot1s
}
undo stp compliance
View
Ethernet port view
Parameters
auto
: Specifies the port to recognize and send MSTP packets in the automatic mode.
legacy
: Specifies the port to recognize and send MSTP packets in the legacy mode.
dot1s
: Specifies the port to recognize and send MSTP packets in the 802.1s mode.
Description
Use the
stp compliance
command to set the mode in which a port recognizes and sends MSTP
packets.
Use the
undo stp compliance
command to restore the default.
By default, a port recognizes and sends MSTP packets in the automatic mode.
A port can be configured to recognize and send MSTP packets in the following modes.
z
Automatic mode. Ports in this mode determine the format of the MSTP packets to be sent
according to the format of the received packets.