Stp Cost - HP A5830 Series Command Reference Manual

Layer 2 - lan switching
Hide thumbs Also See for A5830 Series:
Table of Contents

Advertisement

Enable this feature both globally and on ports connected to other vendors' devices to make it effective. To
minimize impact, enable the feature on all associated ports before you enable it globally.
Related commands: display stp.
Syntax
stp config-digest-snooping
undo stp config-digest-snooping
View
System view, Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
None
Example
# Enable Digest Snooping on GigabitEthernet 1/0/1 and then globally.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] stp config-digest-snooping
[Sysname-GigabitEthernet1/0/1] quit
[Sysname] stp config-digest-snooping

stp cost

Description
Use the stp cost command to set the path cost of the port or ports.
Use the undo stp cost command to restore the default.
By default, the device automatically calculates the path costs of ports in each spanning tree based on the
corresponding standard.
Configured in Ethernet interface view, the setting takes effect only on the interface.
Configured in port group view, the setting takes effect on all ports in the port group.
Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Configured on a member port in an aggregation group, the setting takes effect only after the port leaves
the aggregation group.
To set the path cost of an MSTP port in a specific MSTI, use this command with the MSTI specified. To set
the path cost of a PVST port in a specific VLAN, use this command with the VLAN specified. To set the
path cost of an MSTP port in the CIST or an STP/RSTP port, use this command without specifying any
MSTI and VLAN.
Path cost is an important factor in spanning tree calculation. Setting different path costs for a port in
MSTIs allows VLAN traffic flows to be forwarded along different physical links, which results in VLAN-
based load balancing.
117

Advertisement

Table of Contents
loading

Table of Contents