1-20
# Enable the digest snooping feature on Ethernet 1/0/2 to Ethernet 1/0/4.
<Sysname> system-view
[Sysname] stp interface Ethernet 1/0/2 to Ethernet1/0/4 config-digest-snooping
[Sysname] stp config-digest-snooping
stp cost
Syntax
z
Ethernet port view:
stp
[
instance instance-id
]
cost cost
undo stp
[
instance instance-id
]
cost
z
System view:
stp interface interface-list
[
instance instance-id
]
cost cost
undo stp interface interface-list
[
instance instance-id
]
cost
View
System view, Ethernet port view
Parameters
instance-id
: ID of an MSTI ranging from 0 to 16. The value of 0 refers to the CIST.
cost
: Path cost to be set for the port. STP uses path costs to indicate the quality of links. A smaller path
cost indicates a higher link quality. The range of the
cost
argument varies with the standard used for
calculating the default path cost of a port as follows:
z
With the IEEE 802.1D-1998 standard selected, the path cost of an Ethernet port ranges from 1 to
65535.
z
With the IEEE 802.1t standard selected, the path cost of an Ethernet port ranges from 1 to
200000000.
z
With the proprietary standard selected, the path cost of an Ethernet port ranges from 1 to 200000.
interface-list
: Ethernet port list. You can specify multiple Ethernet ports by providing this argument in the
form of
interface-list =
{
interface-type interface-number
[
to
interface-type interface-number
] } &<1-10>,
where &<1-10> means that you can provide up to 10 port indexes/port index ranges for this argument.
Description
z
Use the
stp cost
command to set the path cost of the current port in a specified MSTI in ethernet
port view. Use the
undo stp cost
command to restore the default path cost of the current port in
the specified MSTI in ethernet port view.
z
Use the
stp interface cost
command to set the path cost(s) of the specified port(s) in a specified
MSTI in system view. Use the
undo stp interface cost
command to restore the default value of
the path cost(s) of the specified port(s) in the specified MSTI in system view.
By default, a switch automatically calculates the path costs of a port in different MSTIs based on a
specified standard.
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, thus achieving
VLAN-based load balancing.
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...