cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18154
Views
20
Helpful
2
Replies

STP: when switch will not send BPDU?

mlopacinski
Level 1
Level 1

Hello

We have STP enabled for all vlans on all ports. In what port role/state the switch will NOT send PBDU ?

In http://www.ciscopress.com/articles/article.asp?p=1181682&seqNum=5 i found sentence:

"By default, the spanning tree does not send BPDUs on root or alternative ports."

On several other pages on some of them i found that port in BLK state send BPDUs, and on other that it will not send BPDUs.

What is true ?

And is there any difference between forwarding BPDUs in STP and creating BPDUs in RSTP (regarding situations in which switch will not send BPDUs) ?

Thanx

2 Accepted Solutions

Accepted Solutions

dhristov
Cisco Employee
Cisco Employee

Switches will exchange initially BPDU to Elect the Root Switch. As long as the root switch is elected the Root will send BPDUs to the downstream switches and there will be no BPDU sent from Downstream switches to the Root unless there is TCN. This means that BPDUs will be not send from blocked port because the BPDUs are sent from the connected on the opposite side Designated Port. When the port in Role Root or Blocked no BPDUs should be send out of that interface only receive.

In nexus was introduced feature Bridge Assurance and the feature is getting introduced in 6500 and other IOS switches. If that feature is enabled the ports are going to exchange BPDUs between each other as hello packets and that will break the Rule above but it will not affect the STP functionality.

there is one more situation where BPDUs will be not send out of the interface. This is when PortFast is enabled on the interface.

Please let me know if that anwer your questions.

View solution in original post

riedmueller
Level 1
Level 1

Actually, portfast on a 2950/3560 is only telling the switch not to react to changes on the configured interface.

For example, on a switch running the default ieee-compatible pvst , if you configure f0/5 with switchport mode access and spanning-tree portfast and run wireshark on the pc on that port, you will still see BPDUs.

Portfast tells the switch not to send a TCN (topology change notification) BPDUS based on changes to the portfast-configured interface.

If a BPDU is RECEIVED on a portfast interface, it loses it's portfast status and begins taking part in the normal spanning tree operations.

The command to completely eliminate BPDUs being sent/received on an interface is the spanning-tree bpdufilter

http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.1_19_ea1/configuration/guide/swstpopt.html

HTH

Sent from Cisco Technical Support iPhone App

View solution in original post

2 Replies 2

dhristov
Cisco Employee
Cisco Employee

Switches will exchange initially BPDU to Elect the Root Switch. As long as the root switch is elected the Root will send BPDUs to the downstream switches and there will be no BPDU sent from Downstream switches to the Root unless there is TCN. This means that BPDUs will be not send from blocked port because the BPDUs are sent from the connected on the opposite side Designated Port. When the port in Role Root or Blocked no BPDUs should be send out of that interface only receive.

In nexus was introduced feature Bridge Assurance and the feature is getting introduced in 6500 and other IOS switches. If that feature is enabled the ports are going to exchange BPDUs between each other as hello packets and that will break the Rule above but it will not affect the STP functionality.

there is one more situation where BPDUs will be not send out of the interface. This is when PortFast is enabled on the interface.

Please let me know if that anwer your questions.

riedmueller
Level 1
Level 1

Actually, portfast on a 2950/3560 is only telling the switch not to react to changes on the configured interface.

For example, on a switch running the default ieee-compatible pvst , if you configure f0/5 with switchport mode access and spanning-tree portfast and run wireshark on the pc on that port, you will still see BPDUs.

Portfast tells the switch not to send a TCN (topology change notification) BPDUS based on changes to the portfast-configured interface.

If a BPDU is RECEIVED on a portfast interface, it loses it's portfast status and begins taking part in the normal spanning tree operations.

The command to completely eliminate BPDUs being sent/received on an interface is the spanning-tree bpdufilter

http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.1_19_ea1/configuration/guide/swstpopt.html

HTH

Sent from Cisco Technical Support iPhone App

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card