60
example:1,3 or 2-4
Switch(config-if-1-3)# spanning-tree cost 100
Set the selected interfaces
’ cost to
100.
Switch(config-if-1-3)# spanning-tree priority 0
Set the selected interfaces
’ priority
to 0
Switch(config-if-1-3)# spanning-tree edge
Set the selected ports to edge ports.
Switch(config-if-1-3)# spanning-tree p2p
forced_false
Set the selected ports to non-P2P
ports.
2.6.19 Switch Command
Switch command
Parameter
Description
Switch(config)# switch bpdu 00-
0F [permit]
[permit]
Permit packets from the address
ranging from 0180C2000000 to
0180C200000F.
Switch(config)# switch bpdu 20-
2F [permit]
[permit]
Permit packets from the address
ranging from 0180C2000020 to
0180C200002F.
Switch(config)# switch bpdu 10
[permit]
[permit]
Permit packets from the address
0180C2000010.
Switch(config)# switch mtu [1518-
9600]
[1518-9600] bytes
Specify the maximum
transmission unit in bytes. The
allowable MTU value is between
1518 and 9600 bytes.
No command
Switch(config)# no switch bpdu 00-0F
Undo permit packets from the
address ranging from
0180C2000000 to
0180C200000F.
Switch(config)# no switch bpdu 20-2F
Undo permit packets from the
address ranging from
0180C2000020 to
0180C200002F.
Switch(config)# no switch bpdu 10
Undo permit packets from the
address 0180C2000010.
Switch(config)# no switch mtu
Reset MTU size to default 1518
bytes.
Show command
Switch(config)# show switch bpdu
Show current BPDU information.
Switch(config)# show switch mtu
Show current maximum
transmission unit setting.
Switch command example
Switch(config)# switch bpdu 00-0F permit
Permit packets from the address
ranging from 0180C2000000 to
0180C200000F.
Switch(config)# switch bpdu 20-2F permit
Permit packets from the address
ranging from 0180C2000020 to
0180C200002F.
Switch(config)# switch bpdu 10 permit
Permit packets from the address
0180C2000010.