Networking-Forums.com

Professional Discussions => Routing and Switching => Topic started by: muzaffar on February 09, 2018, 12:27:01 AM

Title: Understanding about spanning tree protocol
Post by: muzaffar on February 09, 2018, 12:27:01 AM
Hi,

can anyone explain abt spanning tree protocol and what is the use of the below commands


spanning-tree port type edge
spanning-tree bpduguard enable


we have L2 switches and each port is configured with the above config I am bit confused.

Thanks,
Muzaffar
Title: Re: Understanding about spanning tree protocol
Post by: icecream-guy on February 09, 2018, 06:48:22 AM
spanning-tree port type edge will automatically transition the port to the spanning tree forwarding state without passing through the blocking or learning states.
Spanning-tree BPDU guard prevents loops by moving a nontrunking port into an errdisable state when a BPDU is received on that port.

The reason they are both on the port. When you enable BPDU guard on the switch, spanning tree shuts down port edge configured interfaces that receive BPDUs instead of putting them into the spanning tree blocking state. In a valid configuration, port edge interfaces do not receive BPDUs. If a port edge configured interface receives a BPDU, an invalid configuration exists. BPDU guard provides a secure response to invalid configurations. The administrator must fix the issue and then manually no-shut the port.