06-21-2012 06:20 AM
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
06-21-2012 06:46 AM
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.
06-21-2012 06:55 AM
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.
06-21-2012 08:08 AM
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
06-21-2012 08:24 AM
"
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
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
06-21-2012 12:19 PM
afaik, we dont have a specific command which will pull all the info you mention, per interface.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide