
8
CLI
spanning-tree cost long
<0-200000000>
Admin EXEC
Specify the STP port cost.
In long pathcost method,
the range is from 0 to
20000000. (0 = Auto)
switch# configure
switch(config)# interface gi1
switch(config-if)# spanning-
tree cost long 200000
switch(config-if)# exit
switch(config)# exit
spanning-tree cost short
<0-65535>
Admin EXEC
Specify the STP port cost.
In short pathcost method,
the range is from 0 to
65535. (0 = Auto).
switch# configure
switch(config)# interface gi1
switch(config-if)# spanning-
tree cost short 1000
switch(config-if)# exit
switch(config)# exit
no spanning-tree cost
Admin EXEC
Restore to default cost per
port. Default cost is 0.
switch# configure
switch(config)# interface gi1
switch(config-if)# no spanning-
tree cost
switch(config-if)# exit
switch(config)# exit
[no] spanning-tree edge Admin EXEC
Enable or Disable Span-
ning-Tree edge.
switch# configure
switch(config)# interface gi1
switch(config-if)# spanning-
tree edge
switch(config-if)# exit
switch(config)# exit
spanning-tree link-type
point-to-point
Admin EXEC
Specify the STP port link-
type to point-to-point.
switch# configure
switch(config)# interface gi1
switch(config-if)# spanning-
tree link-type point-to-point
switch(config-if)# exit
switch(config)# exit
no spanning-tree link-
type point-to-point
Admin EXEC
Disable the STP port link-
type from point-to-point.
switch# configure
switch(config)# interface gi1
switch(config-if)# no spanning-
tree link-type point-to-point
switch(config-if)# exit
switch(config)# exit
spanning-tree mcheck
Admin EXEC
Specify the STP port to
migrate port.
switch# configure
switch(config)# interface gi1
switch(config-if)# spanning-
tree mcheck
switch(config-if)# exit
switch(config)# exit
spanning-tree mst-con-
fig-id revision-level
LEVEL<0-65535>
Admin EXEC
Specify the MSTP mst-con-
fig-id revision level.
switch# configure
switch(config)# spanning-tree
mst-config-id revision-level 100
switch(config)# exit
spanning-tree mst-con-
fig-id name NAME<32>
Admin EXEC
Specify the MSTP mst-con-
fig-id name.
switch# configure
switch(config)# spanning-tree
mst-config-id name MST1
switch(config)# exit
Table 8: Spanning Tree (Continued)
Function
Privilege
Description
Example