stp-port-show
This command is used to display the configuration for Bridge Protocol Data Unit (BPDU) processing by one or more ports on a switch.
Syntax stp-port-show
port port-list |
Specify the switch network data port number, list of ports, or a range of ports. The range must be a port number between 1 to 64. |
block off|on |
Specify if the port blocks BPDUs. |
filter off|on |
Specify if the port filters BPDUs. |
port-fast| |
Specify if the port is enabled for PortFast. PortFast allows a port to enter the forwarding state almost immediately by dramatically decreasing the time of the listening and learning states. |
edge|no-edge |
Specify if the port is an Edge port. The port can transition directly to a forwarding state but lose Edge port status as soon as any BPDU packets are received. |
bpdu-guard|no-bpdu-guard |
Specify if BPDU guard is on or off. |
root-guard|no-root-guard |
Specify if root guard is on or off. |
priority integer |
Specify the STP port priority as a value between 0 and 240. The default value is 128. |
cost number |
Specify the cost as a number between 1 and 200000000. The default value is 2000. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.2 |
The parameter edge|no-edge added to support RSTP. The parameter, guard|no-guard, added. |
Version 2.3 |
The parameter, cost, added. |
Version 2.4.1 |
The parameter, priority, added. |
Version 2.6.0 |
The parameter, guard, changed to bpdu-guard, and a new parameter, root-guard, added. |
Usage STP is a standard inter-switch protocol is used to ensure that an ad hoc network topology is loop-free at Layer 2, on a per VLAN basis. If your network connections form loops, and STP is disabled, packets recirculate between the switches and causes a decrease in network performance. If you are certain that your network is loop-free, you do not need to enable STP.
Examples To display configuration information, use the following command:
CLI network-admin@switch > stp-port-show port 17
switch: pubdev01
port: 55
block: off
filter: off
edge: yes
guard: no
switch: pubdev01
port: 65
block: off
filter: off
guard: no
switch: pubdev01
port: 66
block: off
filter: off
guard: no