52
“x”=0, it means “no limit”.
25 shutdown command
This command is used to disable the interface port(s).
shutdown command is used to disable the interface port(s).
no shutdown command is used to enable it.
26 spanning-tree command
This command is used to configure spanning tree function on interface port(s).
(config-if)# spanning-tree ?
cost Specifies spanning tree cost
edge-port Specifies spanning tree edge port
port-priority Specifies spanning tree port priority
spanning-disabled Disables the spanning tree
spanning-tree cost x command is used to set spanning tree port path cost
value on the interface port(s). It is used to determine the best path between
devices if looping happens. Lower values will be forwarded and should be
assigned to ports with fast connections. Higher values will be blocked and
should be assigned to ports with slow connections. “x” is the cost value and its
valid value is 1~65535. The suggestion values are 100(50~600) for 10M,
19(10~60) for 100M and 4(3~10) for 1000M connections.
spanning-tree edge-port command is used to set the interface port(s) as edge
port. And no spanning-tree edge-port command is used to set it as non-edge
port. “Edge port” means the interface port(s) are connected to end device(s)
but not switch-to-switch connection.
spanning-tree port-priority x command is used to set the spanning tree port
priority value on the interface port(s). “x” is the port-priority value and its valid
value is 0~240. If the path cost for all ports on a switch are the same, the port
with the highest priority (lowest value) will be forwarded when looping happens.
If more than one port have the same highest priority, the port with lowest port
number will be forwarded.
spanning-tree spanning-disabled command is used to disable spanning tree
function on the interface port(s). And no spanning-tree spanning-disabled
command will enable it.
27 speed command
This command is used to set the operation speed of the interface port(s).
(config-if)# speed ?
auto Set port speed to be auto
10 Set port speed to be 10M
100 Set port speed to be 100M
1000 Set port speed to be 1G