Chapter 3

Layer 2 Infrastructure

CCNP Enterprise Core (350-401 ENCOR) Study GuideDomain 3.0 · Infrastructure · 30% of the exam (with Chapters 4–5) · 3 objectives

Domain 3.0 — Infrastructure (30%) is the exam's heavyweight, split across three chapters: Layer 2 (this chapter), Layer 3 routing (Chapter 4), and IP services (Chapter 5). This chapter covers objective 3.1: troubleshooting 802.1Q trunking, troubleshooting EtherChannel, and configuring and verifying RSTP, MST, and spanning-tree enhancements. Every question in this chapter is a troubleshooting judgement, not a definition.

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.

Figure 3.1 — Inside the 802.1Q tag
Figure 3.1 — Inside the 802.1Q tag: TPID, TCI, and the 12-bit VLAN ID.

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.

Exam tip

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

SymptomMost likely causeCheck
Link is access, not trunkDTP mode mismatch (auto + auto)show dtp interface
Trunk up, VLAN missingAllowed-VLAN list prunes it, or VTP pruningshow interfaces trunk — allowed vs active lists
Broadcasts leak between VLANsNative VLAN mismatchNative VLAN column on both ends
Trunk up, no traffic at allVLAN not created on one switchshow vlan brief on both ends
Check yourself

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 methodBest whenFails when
Source MACMany hosts, one serverOne host, many servers
Destination MACOne host, many serversMany hosts, one server
Source + destination IPRouted traffic, varied pairsOne flow dominates (single pair)
Source + destination IP + portServer farm, many sessionsTraffic is one bulk flow
Exam tip

"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.

Figure 3.2 — RSTP roles on a triangle topology
Figure 3.2 — RSTP roles on a triangle: one root, one blocked port, no loop.

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.

Figure 3.3 — An MST region: two instances, two shapes
Figure 3.3 — One MST region, two instances, two spanning trees. One mapping line that differs splits the region.
PropertyRSTP (per-VLAN / Rapid PVST+)MST
Tree perVLANInstance (many VLANs per instance)
Root placementPer VLAN — flexible, many treesPer instance — fewer trees, less CPU
Configuration riskVLAN-by-VLAN root mistakesRegion split on one mapping line
ScaleStruggles past many VLANsScales — 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

GuardWhere it standsWhat it does when triggered
Root guardDesignated ports facing downstreamBlocks a superior BPDU — a downstream switch cannot become root (root-inconsistent state)
BPDU guardAccess ports (PortFast ports)Shuts the port down (err-disable) if a BPDU arrives — an unmanaged switch was plugged in
Loop guardNon-designated portsBlocks the port if BPDUs stop arriving — a one-way link cannot silently become forwarding
UDLDFibre linksDetects a one-way link and shuts it down (normal: after detection; aggressive: also on missing echo)
BPDU filterAccess portsStops BPDUs being sent or received — dangerous on a trunk, where it hides the loop
Check yourself

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

  1. Trunk triage. Configure two switches with mismatched native VLANs, then find the fault using only show interfaces trunk on both ends. Fix it, then set a dedicated unused native VLAN and prune it.
  2. EtherChannel negotiation. Pair LACP active against passive (bundles), then passive against passive (does not). Record the flags in show etherchannel summary for each case.
  3. 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 with show spanning-tree vlan 10 and confirm the root port and alternate port on the access switch.
  4. 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.
Try it yourself

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

TrapTruth
Desirable + auto fails to form a trunkDesirable negotiates, auto answers — it forms. Auto + auto is the pair that stays access.
EtherChannel spreads packets across linksIt spreads flows, by hash. One flow pins to one link.
Root guard shuts the port downRoot guard blocks the superior BPDU (root-inconsistent); BPDU guard err-disables the port.
One MST mapping line differs — harmlessIt splits the region. Name, revision, and mapping must match exactly.
Legacy STP cost for 1 Gbps is 4That 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.

1

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

2

Which DTP pairing stays an access link?

A) Desirable + auto B) Trunk + auto C) Auto + auto D) Desirable + desirable

3

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

4

Which LACP pairing bundles successfully?

A) Passive + passive B) Active + passive C) On + passive D) Auto + auto

5

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

6

What is the RSTP path cost of a 1 Gbps link?

A) 4 B) 19 C) 20,000 D) 2,000,000

7

In RSTP, which port role is the blocked backup for the root port?

A) Designated B) Root C) Alternate D) Backup

8

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

9

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

10

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

Q1: B — Auto + auto: neither side initiates DTP, so the link stays access. One side must be desirable (or trunk).
Q2: C — Auto + auto: neither side speaks first, so the link stays access.
Q3: B — The native VLAN column. A mismatch means untagged frames leave in one VLAN and arrive in another.
Q4: B — Active + passive bundles. Passive + passive never starts negotiation.
Q5: B — EtherChannel hashes flows, not packets; one flow pins to one member link.
Q6: C — RSTP cost for 1 Gbps is 20,000 (20,000,000,000 ÷ 1,000,000,000).
Q7: C — The alternate port is the blocked backup for the root port.
Q8: B — A differing VLAN-to-instance mapping line splits the region (name and revision must match too).
Q9: B — Root guard puts the port in root-inconsistent state; it does not err-disable it.
Q10: C — Primary root on one distribution switch, secondary on the other.

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