Chapter 3
Layer 2 Infrastructure
Layer 2 is where the campus either works invisibly or fails mysteriously. A trunk that carries the wrong native VLAN, an EtherChannel that bundles eight links and uses two, a spanning tree whose root moved to the wrong corner of the building — each is a small configuration fact with a large blast radius. The skill this chapter teaches is reading output: show interfaces trunk, show etherchannel summary, show spanning-tree — and knowing which line in the output names the fault.
3.1.a Troubleshoot 802.1Q trunking
The tag, and the one frame that has none
An 802.1Q trunk carries many VLANs over one link by inserting a 4-byte tag into each frame: a TPID of 0x8100, and a TCI holding a 3-bit priority (PCP), a 1-bit DEI, and a 12-bit VLAN ID (0–4095, with 1–4094 usable). The one frame that carries no tag is the native VLAN frame: untagged on the trunk, by design. That exception is the source of the most-tested Layer 2 fault in the book.

DTP: who speaks, who answers, who stays silent
DTP (Dynamic Trunking Protocol) negotiates trunking between two switches. The modes: dynamic desirable (actively tries to form a trunk), dynamic auto (answers a trunk attempt but never starts one), trunk (always a trunk; DTP still speaks unless nonegotiate is set), and access (never a trunk). The matrix to memorise: desirable + auto = trunk. Auto + auto = access — neither side speaks first. Trunk + anything except access = trunk. And switchport nonegotiate silences DTP entirely: the link is a trunk because it was configured as one, and a neighbour in auto mode will stay access, because nobody asked.
When a trunk "should be up but is access", read the DTP matrix before anything else. Desirable + auto works; auto + auto does not. The output that settles it is show interfaces trunk (is the link in the trunk list at all?) and show dtp interface (what mode is each side in?).
The native VLAN leak
When the two ends of a trunk disagree on the native VLAN — SW1 native 1, SW2 native 20 — untagged frames leave in one VLAN and arrive in another. Users in VLAN 10 on SW2 intermittently receive broadcasts sourced from VLAN 20 on SW1: the frames were untagged on one side and re-tagged by the native VLAN on the other. The fix is to make the native VLAN match on both ends, and the prevention is to use a dedicated, unused native VLAN (never VLAN 1) and prune it from the allowed list. A native VLAN mismatch is silent in most output — show interfaces trunk shows it in one column per switch, and that column is the whole diagnosis.
"VLAN X cannot cross the trunk": separating the causes
| Symptom | Most likely cause | Check |
|---|---|---|
| Link is access, not trunk | DTP mode mismatch (auto + auto) | show dtp interface |
| Trunk up, VLAN missing | Allowed-VLAN list prunes it, or VTP pruning | show interfaces trunk — allowed vs active lists |
| Broadcasts leak between VLANs | Native VLAN mismatch | Native VLAN column on both ends |
| Trunk up, no traffic at all | VLAN not created on one switch | show vlan brief on both ends |
A trunk is up, but users in VLAN 10 on SW2 intermittently receive broadcasts sourced from VLAN 20 on SW1. show interfaces trunk shows native VLAN 1 on SW1 and native VLAN 20 on SW2. What is the fault, and what is the fix?
Answer: A native VLAN mismatch. Untagged frames leave SW1 in VLAN 1 and arrive on SW2 in VLAN 20 (and vice versa), so broadcasts leak between VLANs. Fix: set the same native VLAN on both ends — ideally a dedicated unused VLAN, pruned from the allowed list.
3.1.b Troubleshoot EtherChannel
One logical link from many physical links
An EtherChannel bundles several physical links into one logical link: more bandwidth, and one link can fail without the logical link going down. The bundling protocols: LACP (IEEE 802.3ad, the standard — modes active and passive) and PAgP (Cisco proprietary — modes desirable and auto). The channel-mode matrix mirrors DTP: active + passive bundles; passive + passive does not (neither side speaks first); desirable + auto bundles; auto + auto does not. on mode bundles unconditionally, with no negotiation at all — and no protection against a misconfiguration on the far end.
LACP negotiation speaks in flags. The ones the exam uses: the active/passive bit (who may initiate), the timeout bit (short/long), and the synchronisation flags that show whether the far end agrees the link is in the bundle. A link that is up physically but not in the bundle usually shows up in show etherchannel summary with a flag that says why — read the flags before re-cabling anything.
Load balancing: the hash decides, and the hash can betray you
EtherChannel does not spread packets across member links — it spreads flows. A hash of selected fields (source MAC, destination MAC, source IP, destination IP, source port, destination port) picks one member link per flow, and every packet of that flow follows it. That is what keeps frames in order. The failure mode follows directly: if the chosen hash fields never vary — one server talking to one client, hashed on source and destination IP — one flow pins to one link, and eight bundled links carry the load of one. The fix is to hash on fields that actually vary in your traffic (add Layer 4 ports for a server farm, use source + destination IP for routed traffic), with port-channel load-balance.
| Hash method | Best when | Fails when |
|---|---|---|
| Source MAC | Many hosts, one server | One host, many servers |
| Destination MAC | One host, many servers | Many hosts, one server |
| Source + destination IP | Routed traffic, varied pairs | One flow dominates (single pair) |
| Source + destination IP + port | Server farm, many sessions | Traffic is one bulk flow |
"We bundled ten links and throughput did not improve" is a hash question, not a cabling question. One flow, one link — always. The exam gives you the traffic pattern and the hash method; your job is to see that the hash fields never change.
3.1.c Spanning Tree: RSTP, MST, and the guards
RSTP: roles, states, and the proposal/agreement handshake
RSTP (802.1w) replaced the 30–50 second convergence of legacy 802.1D with convergence in seconds. The mechanism is the proposal/agreement handshake: when a link comes up, the designated bridge proposes, the downstream bridge blocks its non-root ports (sync), then agrees — and the link forwards. No timers to wait out. RSTP port roles: root (the port towards the root bridge), designated (the port forwarding for a segment), alternate (a blocked backup for the root port), and backup (a blocked backup for a designated port). States are discarding, learning, and forwarding — the old blocking/listening split is gone.

Path costs changed with RSTP: the 802.1D-1998 scale (10 Mbps = 100, 100 Mbps = 19, 1 Gbps = 4) gave way to the 802.1w scale (10 Mbps = 2,000,000, 100 Mbps = 200,000, 1 Gbps = 20,000, 10 Gbps = 2,000), where cost = 20,000,000,000 ÷ bandwidth. The exam tests cost arithmetic on modern links — use the RSTP scale, not the legacy one.
MST: one region, many trees
MST (802.1s) maps VLANs to instances, and each instance has its own spanning tree — so VLAN 10's traffic can flow left while VLAN 30's flows right, with different roots per instance. A region is defined by three things that must match on every switch: the region name, the revision number, and the VLAN-to-instance mapping. One mapping line that differs splits the region, and the switches fall back to separate regions joined by a single CST link. The IST (instance 0) is the internal spanning tree that ties the region together and carries the CST to other regions.

| Property | RSTP (per-VLAN / Rapid PVST+) | MST |
|---|---|---|
| Tree per | VLAN | Instance (many VLANs per instance) |
| Root placement | Per VLAN — flexible, many trees | Per instance — fewer trees, less CPU |
| Configuration risk | VLAN-by-VLAN root mistakes | Region split on one mapping line |
| Scale | Struggles past many VLANs | Scales — instances stay small |
Root placement by design
The root bridge should be where the traffic converges: the distribution pair. Primary root on DIST-A, secondary root on DIST-B, per VLAN or per instance — never left to the lowest MAC address, which is how the root ends up on an access switch in the wrong building corner. When the root moves to the wrong place, every path in the campus bends around it, and the symptom is congestion on links that were never meant to carry transit traffic.
The guards: root guard, BPDU guard, loop guard, UDLD, BPDU filter
| Guard | Where it stands | What it does when triggered |
|---|---|---|
| Root guard | Designated ports facing downstream | Blocks a superior BPDU — a downstream switch cannot become root (root-inconsistent state) |
| BPDU guard | Access ports (PortFast ports) | Shuts the port down (err-disable) if a BPDU arrives — an unmanaged switch was plugged in |
| Loop guard | Non-designated ports | Blocks the port if BPDUs stop arriving — a one-way link cannot silently become forwarding |
| UDLD | Fibre links | Detects a one-way link and shuts it down (normal: after detection; aggressive: also on missing echo) |
| BPDU filter | Access ports | Stops BPDUs being sent or received — dangerous on a trunk, where it hides the loop |
A user plugs an unmanaged switch into a PortFast access port. Nine ports on the access switch go err-disabled within seconds. Which guard fired, and what did the unmanaged switch do to trigger it?
Answer: BPDU guard. The unmanaged switch forwarded BPDUs onto the PortFast port, which should never receive one. BPDU guard err-disabled the port to stop a loop forming through a device that does not run spanning tree.
Deep Dive — ninety seconds after the root dies
The chapter's Deep Dive replays the ninety seconds after the root bridge fails, second by second: BPDUs stop, the alternate port's stored information ages out, proposal/agreement re-syncs each link, and the blocked port forwards — in seconds under RSTP, where legacy STP would have taken 30–50. The lesson is a timeline, not a fact: convergence is a sequence of events with a duration, and the exam asks what happens at each step, not just what the final topology is.
Configuration Workshop — the workshop campus
- Trunk triage. Configure two switches with mismatched native VLANs, then find the fault using only
show interfaces trunkon both ends. Fix it, then set a dedicated unused native VLAN and prune it. - EtherChannel negotiation. Pair LACP active against passive (bundles), then passive against passive (does not). Record the flags in
show etherchannel summaryfor each case. - Root placement. Set DIST-A as primary root and DIST-B as secondary for VLANs 10–40 (
spanning-tree vlan 10-40 root primary), then verify withshow spanning-tree vlan 10and confirm the root port and alternate port on the access switch. - Guard placement. Enable BPDU guard on all access ports and root guard on distribution ports facing access switches. Plug in an unmanaged switch and watch the guard fire.
Build the workshop campus in a virtual lab: two distribution switches, two access switches, one trunk and one EtherChannel between each pair. Break one thing at a time — native VLAN, DTP mode, LACP mode, root priority — and diagnose it from show output before fixing it. The diagnosis is the skill; the fix is one command.
Common mistakes and exam traps — Layer 2
| Trap | Truth |
|---|---|
| Desirable + auto fails to form a trunk | Desirable negotiates, auto answers — it forms. Auto + auto is the pair that stays access. |
| EtherChannel spreads packets across links | It spreads flows, by hash. One flow pins to one link. |
| Root guard shuts the port down | Root guard blocks the superior BPDU (root-inconsistent); BPDU guard err-disables the port. |
| One MST mapping line differs — harmless | It splits the region. Name, revision, and mapping must match exactly. |
| Legacy STP cost for 1 Gbps is 4 | That is the 1998 scale. RSTP cost for 1 Gbps is 20,000. |
End-of-chapter check questions (multiple choice)
Answer these without looking back, then check against the key. Each question has one correct answer. These questions are written fresh for this guide — they are not the book's mock-test questions.
A new link between two switches stays in access mode. SW1 is dynamic auto and SW2 is dynamic auto. What is the fault, and what is the simplest fix?
A) DTP is disabled on both sides; enable it with nonegotiate B) Neither side speaks first — set one side to desirable or trunk C) The native VLANs mismatch D) The link needs an EtherChannel to trunk
Which DTP pairing stays an access link?
A) Desirable + auto B) Trunk + auto C) Auto + auto D) Desirable + desirable
Broadcasts from VLAN 20 keep appearing on hosts in VLAN 10. Both switches show the trunk up and the allowed-VLAN lists match. Which column of show interfaces trunk names the fault?
A) The allowed-VLAN column B) The native VLAN column — the two ends disagree C) The spanning-tree cost column D) The port mode column
Which LACP pairing bundles successfully?
A) Passive + passive B) Active + passive C) On + passive D) Auto + auto
CertCrack.com bundles eight links into one EtherChannel, but a single large backup flow uses only one member link. Why?
A) LACP is misconfigured B) EtherChannel spreads flows by hash, not packets — one flow pins to one link C) The other seven links are down D) The hash is computed per packet and keeps choosing the same link
What is the RSTP path cost of a 1 Gbps link?
A) 4 B) 19 C) 20,000 D) 2,000,000
In RSTP, which port role is the blocked backup for the root port?
A) Designated B) Root C) Alternate D) Backup
Two switches in the same MST region suddenly behave as separate regions. What is the most likely cause?
A) Different region names B) A VLAN-to-instance mapping line differs between them C) Different root priorities D) One switch runs RSTP and the other MST
A downstream switch sends a superior BPDU towards the distribution layer. Which guard stops it becoming root, and what state results?
A) BPDU guard — err-disable B) Root guard — root-inconsistent state C) Loop guard — the port is blocked D) UDLD aggressive — the link is shut down
Where should the spanning-tree root be placed by design in a campus?
A) On the access switch with the lowest MAC address B) On the core, because it is the fastest device C) On the distribution pair — primary on one, secondary on the other D) On the switch with the most ports
Answer key
Chapter 3 — based on the Cisco 350-401 ENCOR v1.2 exam objectives for Domain 3.0 (objective 3.1). Unofficial study material — not affiliated with or endorsed by Cisco Systems, Inc.
Want the full CCNP Enterprise Core (350-401 ENCOR) package?
Read this guide free. Then prove you're ready with 900 original practice questions, instant explanations, 36 interactive PBQ labs, and 3 months of online access — plus the downloadable PDF of this guidebook.
Get CCNP ENCOR Full Access — $10