24-Port 10/100Mbps Layer 2 Switch w/ 4 Gigabit Ports and 2 Shared Mini-GBIC Slots
28-6
spanning-tree interface attributes
To set detailed spanning attrebutes to ports.
spanning-tree {cost <value(0-200000000)> | disable | link-type
{point-to-point | shared} | portfast | port-priority
<value(0-240)>}
no spanning-tree {cost | disable | link-type | portfast |
port-priority}
Specify the pathcost of this port.
Disbles spanning tree on this port.
Specify the port link type is point to point.
Specify the port connects to a LAN which has
another bridge.
Specify the port connects to host
port-priority
value(0-240)
Speficy the port STP priority.
Cost - 2000000
Portfast - Not in portfast
Link-type - Shared
Port-priority - 128
Interface Configuration Mode
1. A portfast port will change to forwarding quickly during STP convergence, so
that it can speed up the STP convergence.
2. Using no form to reset the port attributes to default.
switch(config-if)# spanning-tree cost 100
This command was introduced
To shutdown the spanning tree function.
Global Configuration Mode
MSTP and RSTP are exclusive to each other, so that spanning tree function must
be shutdown when changing the STP operation mode.