This topic is to discuss the following lesson:
Nice explanation, Rene.
You nicely described in STP, how the affected switch updated CAM table.
When a link fails (Uplink/Backbone) in RSTP environment, how the affected switch will collect MAC?
Here’s an example how the MAC addresses are updated for uplink failures:
Uplinkfast can be enabled for “classic” STP but a similar mechanism is built-in RSTP.
Backbone fast is also a good read:
A similar mechanism is built in for RSTP.
Hi. In the last part of the lesson you convert switch B to PVST mode - what is the impact to the network - does computer A lose connectivity to the rest of the network outside of switch B for 30 seconds? What about if there was a host connected off of switch A and another host connected off switch B - they would still continue to communicate throughout the change of switch B to PVST mode?
I just tried this, 3 switches and two hosts (one on SW1 and SW2). If you switch to any of the STP mode, you have donwtime. When I change one switch from RPVST to PVST+ then you see the interfaces going through the listening and learning states again.
When all switches are running PVST+ and I turn one of them into RPVST, you see it sending and waiting for proposals. It’s all compatible but expect your interfaces to be blocked for a moment
Pasting the debug msgs:
SwitchA# setting bridge id (which=3) prio 4097 prio cfg 4096 sysid 1 (on) id 1001.0011.bb0b.3600
what does it mean ? I’m not able to understand.
I am not understanding what you are asking. Could you ask this another way?
If you are asking what this message means, I can try to help.
setting bridge id (which=3) prio 4097 prio cfg 4096 sysid 1 (on) id 1001.0011.bb0b.3600
This means you set (either via spanning-tree vlan 1 4096, or spanning-tree vlan 1 root primary). This is what it means when it says “prio cfg 4096”–the vlan was configured to be priority 4096.
However, the actual priority is the configured priority + vlan number. So, in this case, the actual priority is 4097 (4096 + 1, for vlan 1). This is what it means for “prio 4097”
“(on) id 1001.0011.bb0b.3600”
This is the MAC address of the switch where this command was issued.
I meant to ask about the priority 4096 and 4097.
From the picture, Switch A has the priority 32768. Why do we represent 4096 here ?
I suspect this simply might be a case of label in the picture not matching the configured IOS. In one of the outputs from Switch A it says “This bridge is the root” and it lists the Root ID of 4097.
Notice, the same thing is true for Switch B. It says in the text output it says its priority is 8193, but the label in the picture shows 32768.
I have configured a lab connecting three switches on gns3 (SW1,SW2 and SW3). SW1 is the Root switch. They are connected like this:
The issue is that as soon as i admin down the port on SW3(e3/2-RP), the other port e3/3 becomes the new RP. This is expected. But when i bring back the port up on SW3(e3/2), the port doesn’t becomes automatically RP again, because its far end device port SW1 (e3/0) is going into err-disabled state, essentially the moment that i admined down the port on SW3(e3/2). Hence, in order e3/2 of SW3 reclaim again the RP role, i have to manually bounce the interface e3/0 of SW1. After that e3/0 of SW1 becomes UP, and e3/2 of SW3 becomes RP again. Is this expected behavior? Thank you in advance.
Ok i think i have found the issue here. I have configured udld mode aggressive on all the ports. So that is why when i admin down the port on SW3(e3/2-RP), the Root switch port SW1 (e3/0) goes into err-disable state! Since Root Switch port e3/0 will not receive any traffic, it goes into err-disable state. Finally, i just needed to bounce it, to work as before.
Also, when i tried to admin down the port on the Root Switch (SW1-e3/0) i noticed that the far end port doesn’t go to the error-disable state, even though the far end port (SW3-e3/2) is configured with udld mode aggressive. But then i remember that this should be expected, since i am admining down a port on a Root Switch, and the root switch is not sending BPDUs ever, so that is why SW3-e3/2 doesn’t go also into err-disable state!
Thanks so much for sharing your experiences with us. It’s great to learn from the learning experiences of others as it helps us all to identify similar situations in our studies and our jobs.
Once again, greatly appreciated!
Whats P2p in type ?
whats the meaning of : SW3#
RSTP(1): updt rolesroot port Fa0/14 is going down
RSTP(1): Fa0/16 is now root port . whats updt rolesroot
RSTP(1): updt roles, root port Fa0/14 going down
RSTP(1): we become the root bridge
RSTP(1): updt roles, received superior bpdu on Fa0/16
RSTP(1): Fa0/16 is now root port
now sw2 is he root bridge not SW1 ?
RSTP(1): initializing port Fa0/2
RSTP(1): Fa0/2 is now designated
*Mar 1 04:08:32.931: %LINK-3-UPDOWN: Interface Fast Ethernet/2, changed state to up
how fa0/2 is designated in fa0/2 ?
Take a look at this post:
Based on the debug output you have displayed here, it looks like on SW3, Fa0/14 was originally the root port of the switch, but it is “going down”. Therefore, a new root port had to be designated, and it looks like the switch chose Fa0/16 for the new root port.
On SW2, it looks like Fa0/14 went down on this switch as well. The initial result was that SW2 made itself the root bridge. But in the meantime, it received a superior BPDU on Fa0/16, which informed SW2 that another switch will become the root. Therefore, SW2 changes its own role (it is no longer the root bridge), and thus it must choose a root port, choosing Fa0/16 for this role.
So to answer your question, no SW2 is not the root bridge. It temporarily became the root bridge until it received a superior BPDU. Remember that these events take place quite quickly and can occur in a different order each time. SW3 didn’t get a chance to become root bridge, but immediately received the appropriate BPDU on Fa0/16 to make that root port. While SW2 decided to become the root bridge until a superior BPDU is received, which it was. But these things happen so quickly that the order doesn’t really matter. For users, the quickness of reconvergence is still quite fast.
Fa0/2 is a new port that just came up. It becomes designated immediately simply because it didn’t receive a superior BPDU on that port.
I hope this has been helpful!
Thanks Really. The best explanation I have ever read!
Hello, new here
im trying to enable debug on these switches and keep on getting the error below on all three switches.im using packet tracer what am doing wrong ?.Thanks
S1>en S1#debug spanning-tree events ^ % Invalid input detected at '^' marker. S2>en S2#debug spanning-tree events ^ % Invalid input detected at '^' marker.
Unfortunately, Packet Tracer doesn’t support all of the commands and features available on real Cisco devices. This is one example of unsupported commands. Alternatively, you can use the GNS3 emulator which includes all of the commands available in a particular IOS image, or a choice of several other emulators including Cisco CML. More info on these can be found at the following lesson. The lesson may refer to CCIE, but the same applies for all Cisco certifications:
I hope this has been helpful!
Stupid question, think I may have missed something but I understand that RSTP uses Discarding, learning and forwarding port roles however uses the sync/proposal mechanism for convergence and Edge Ports can go immediately to forwarding with PortFast. In which circumstances does it go through the port roles (Discarding, learning and forwarding)?
One thing that we have to keep in mind when examining the port states of rapid spanning tree is the fact that we have no timers. You are correct that the states are Discarding, Learning, and Forwarding. How they relate to classic STP states can be seen in this lesson:
Now you bring up a good question. When does a port actually enter each state, and under what circumstances? Well, STP states are straightforward, because they are timer-based, and they take place in sequential order, except when you have portfast configured.
For rapid spanning tree, these states are associated with the synchronization mechanism used. Specifically, as soon as a link between two switches running rapid spanning-tree comes up, the interfaces are in blocking mode. As the first BPDUs are being exchanged, the ports go into the learning state. This learning state is momentary and exists until the BPDU sync process (proposal bit and agreement) are exchanged. Once that takes place, the port will go into the forwarding state.
If you configure an edge port, then no synchronization process takes place. Thus the port immediately goes into the forwarding state without the need to send and receive BPDUs with proposals and agreements.
Now keep in mind that RTP is backward compatible with STP. If it detects an STP switch on the other end of the link, it will go into a classic STP operation, with the normal STP timers for all the states.
I hope this has been helpful!