68
Examples
# Enable Digest Snooping on Ethernet 1/1 and then globally.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] stp config-digest-snooping
[Sysname-Ethernet1/1] quit
[Sysname] stp config-digest-snooping
Related commands
display stp
stp cost
Use
stp cost
to set the path cost of the port or ports.
Use
undo stp cost
to restore the default.
Syntax
stp
[
instance instance-id
]
cost cost
undo stp
[
instance instance-id
]
cost
Default
The device automatically calculates the path costs of ports in each spanning tree based on the
corresponding standard.
Views
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
instance instance-id
: Sets the path cost of the ports in a particular MSTI. The minimum value of
instance-id
is 0, representing the CIST, and the maximum value of
instance-id
is 15.
cost
: Specifies the path cost of the port, with an effective range that depends on the path cost
calculation standard adopted.
•
With the IEEE 802.1d-1998 standard selected for path cost calculation, the value range for the
cost
argument is 1 to 65535.
•
With the IEEE 802.1t standard selected for path cost calculation, the value range for the
cost
argument is 1 to 200000000.
•
With the private standard selected for path cost calculation, the value range for the
cost
argument is 1 to 200000.
Usage guidelines
The following matrix shows the command and hardware compatibility:
Hardware
Command compatibility in Layer 2
aggregate interface view
MSR800 Yes
MSR 900
No
MSR900-E Yes