The lab
Two devices, SW1 and SW2. The capture is on the GigabitEthernet0/0 link between SW1 and SW2.
SW1 and SW2 are joined by two links, which makes a loop, and run Cisco rapid PVST+. SW1 starts with bridge priority 24576 for VLAN 1; SW2 keeps the default, 32768.
The switch with the lowest bridge ID becomes the root, and one of the two links is blocked so frames cannot loop. BPDUs carry the root choice across each link. Then SW2's priority is set to 4096, and the BPDUs change.
The exchange
Reading the frames
Frame 1: a BPDU before the change
SW1 is the root, and it sends the BPDUs on this link. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Root identifier | 24576/1/2a:24:99:24:26:fe | Priority 24576, system ID extension 1 (the VLAN), and the root's bridge MAC. This is SW1. |
| Root path cost | 0 | The sender's cost to reach the root. Zero, because the sender is the root. |
| Bridge identifier | 24576/1/2a:24:99:24:26:fe | The bridge that sent this BPDU: SW1 again, because the root sends BPDUs on its designated ports. |
| Port identifier | 0x8001 | Port priority 128 (0x80) and port number 1 on the sending bridge. |
Frame 7: a BPDU after the change
SW2's priority is now 4096. It wins the election and sends the BPDUs; SW1 receives them on its root port. Values from one run of this lab.
| Field | Value | What it means |
|---|---|---|
| Root identifier | 4096/1/1e:6c:3e:4f:02:08 | Priority 4096, lower than SW1's 24576, so SW2 is the new root. |
| Root path cost | 0 | Zero again: the new sender is the new root. |
| Bridge identifier | 4096/1/1e:6c:3e:4f:02:08 | The sender is now SW2. |
| Hello time | 2 | Seconds between BPDUs on this link. |
What to take away
Every BPDU names the same root, the bridge with the lowest priority and then the lowest MAC. Lower one bridge's priority and the BPDUs name that bridge as root.
Run it yourself
Open the same lab, run the commands and read the capture on the GigabitEthernet0/0 link between SW1 and SW2 yourself.
Open this lab Free. Sign in to start.
