
108
Description
Use
stp bridge-diameter
to specify the network diameter, the maximum possible number of stations
between any two terminal devices on the switched network.
Use
undo stp bridge-diameter
to restore the default.
By default, the network diameter of the switched network is 7.
An appropriate setting of hello time, forward delay, and max age can speed up network convergence.
The values of these timers are related to the network size and you can set the timers by setting the
network diameter. With the network diameter set to 7 (the default), the three timers will also be set to
their defaults.
To set the network diameter of an STP/RSTP/MSTP switched network, use this command without
specifying any VLAN. To set the network diameter of a specified VLAN or multiple VLANs in a PVST
switched network, use this command with a VLAN list specified.
In STP, RSTP, or MSTP mode, each MST region is considered as a device, and the configured
network diameter of the switched network is only effective for the CIST (or the common root bridge),
not for MSTIs.
In PVST mode, the network diameter configuration takes effect only on the root bridge.
Related commands:
stp timer forward-delay
,
stp timer hello
, and
stp timer max-age
.
Examples
# In MSTP mode, set the network diameter of the switched network to 5.
<Sysname> system-view
[Sysname] stp bridge-diameter 5
# In PVST mode, set the network diameter of VLAN 2 to 5.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 2 bridge-diameter 5
stp compliance
Syntax
stp compliance
{
auto
|
dot1s
|
legacy
}
undo stp compliance
View
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
auto
: Configures the ports to recognize the MSTP BPDU format automatically and determine the
format of MSTP BPDUs to send.
dot1s
: Configures the ports to receive and send only standard-format (802.1s-compliant) MSTP
BPDUs.
legacy
: Configures the ports to receive and send only compatible-format MSTP BPDUs.
Description
Use
stp compliance
to configure the mode the specified ports will use to recognize and send MSTP
BPDUs.