Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

To know STP extensions applied on a NX-OS interface

Hi

I'd like to know if it is any command to watch the STP extensions (BPDUGuard, BPDUFilter, etc.. ) applied to specific interfaces.

That is somthing like show spanning-tree summary but applied to each interface.

Thanks!!!

N5548-A(config-if)# sh spanning-tree summary

Switch is in rapid-pvst mode

Root bridge for: VLAN0020-VLAN0021

Port Type Default                        is disable

Edge Port [PortFast] BPDU Guard Default  is disabled

Edge Port [PortFast] BPDU Filter Default is disabled

Bridge Assurance                         is enabled

Loopguard Default                        is disabled

Pathcost method used                     is short

Name                   Blocking Listening Learning Forwarding STP Active

---------------------- -------- --------- -------- ---------- ----------

VLAN0020                     0         0        0          2          2

VLAN0021                     0         0        0          2          2

---------------------- -------- --------- -------- ---------- ----------

2 vlans                      0         0        0          4          4

N5548-A(config-if)# sh spanning-tree summary ?

  <CR>

  >       Redirect it to a file

  >>      Redirect it to a file in append mode

  totals  Only show totals

  |       Pipe command output to filter

Everyone's tags (5)
5 REPLIES
Cisco Employee

To know STP extensions applied on a NX-OS interface

you can execute 'show run interface ethernet x/y all' command to check the defaults. Please check below

nexus# show run int e1/1 all | inc spanning-tree

  spanning-tree port-priority 128

  spanning-tree cost auto

  spanning-tree link-type auto

  spanning-tree port type normal

  no spanning-tree bpduguard

  no spanning-tree bpdufilter

above are the default extensions for spanning tree for the interface.

Vin.

Re: To know STP extensions applied on a NX-OS interface

Hi Vinayak,

Thank you for answering, but it is not what I want to know. This information tells me what I have configured, but not how it is running in this moment

For example, I can put a port as an edge port, but if it receives a BPDU, it immediately starts to work as a normal port. In my configuration appears that it is configured as an edge port, but really it is not working in this way.

And it implies that in case I have applied some global configurations like

N5548-A(config)# spanning-tree port type edge bpdufilter default

N5548-A(config)# spanning-tree port type edge bpduguard default

they would not be running on this port, as it is not, in fact, an edge port.

Cisco Employee

To know STP extensions applied on a NX-OS interface

Hi Jon

If you configure a port as edge port, and if it receives a BPDU, then it should error disable the port, not start working as a normal port. Can you please paste your interface config ?

show run int eth x/y

show run int eth x/y all

and yes the interface config should override the global defaults.

If this is edge port, you should be able to see Type as "Edge P2p" in the output of below command.

nexus# show spanning-tree interface e1/1

Vlan             Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

VLAN0001        Desg FWD 2         128.129  Edge P2p

Vin

To know STP extensions applied on a NX-OS interface

"

If you configure a port as edge port, and if it receives a BPDU, then it  should error disable the port, not start working as a normal port. Can  you please paste your interface config ?

"

Yes, in case it is BPDUGuard applied on it, on the contrary it is put as a normal one.

And yes, I know the show span int , but what I want to know if it is an easier way to check it. That is, in this case, I have to check if the port is still in edge state, and after it to check if global spanning-tree parameters are applied .....

And what I want is a command, something similar to show spanning-tree summary which whould be able to show in one step all the spanning-tree parameters to each interface in one moment.

Thank you

Cisco Employee

To know STP extensions applied on a NX-OS interface

afaik, we dont have a specific command which will pull all the info you mention, per interface.

388
Views
0
Helpful
5
Replies
CreatePlease to create content