Ctrl KOpen searchJ / KNext / previous topic or labSpaceFlip flashcard← →Previous / next flashcardGMark card as knownAMark card for review?This panelEscClose any panel
Network Design and Troubleshooting
24Topics
13Labs
262Cards
151Practice Qs
Final exam · 20 October, 15:30–18:30
room 620
Written paper: multiple choice and written answers on theory, device configuration, and system analysis. Closed book with one A4 sheet (both sides); your midterm sheet is returned during the exam. Scope runs from DHCP to the end of the slides.
New study material
Topics 18B–22
Topics 16–18 cover DHCP and relay, enterprise campus design, and integrating WLANs.
Course outline
Readiness
0%
TOPICS0/24
LABS0/13
CARDS0
BEST QUIZ—
TARGET DATE—
Address the network (IPv6) → power the switch (ports, SSH, security) → split it (VLANs, trunks, VTP) → widen it (EtherChannel) → route it (L3 switch) → isolate it (Private VLAN) → and stop the loops (STP → RSTP → MST).
Topics
Labs
LAB 01–LAB 13
7-day plan
Day
Study
Target
D1
Topics 01–03 · LAB 01
EUI-64 by hand. SSH from memory.
D2
Topics 04–05 · LAB 02–03
VLAN tags and VTP behavior.
D3
Topics 06–09 · LAB 04–06
LACP, inter-VLAN routing, PVLANs.
D4
Topic 10 · LAB 07–08
Elect roots and verify every port.
D5
Topics 11–12 · LAB 09–10
Priorities, topology changes, PortFast.
D6
Topics 13–15 · LAB 11–12
RSTP states and MST regions.
D7
LAB 13 · Cheatsheet · drills
DHCP pools, exclusions, final review.
Final exam
Exam brief
—
–days
–hours
–minutes
until the paper starts
DateTuesday 20 October 2026
Time15:30–18:30 · 3 hours
Room620
BringPencil, eraser, pen
FormatWritten on paper · multiple choice + written answers
AssessesTheory · device configuration · system analysis
Use this date and timeThe announcement says to ignore the date and time shown on the registration website. The paper is 20 October, 15:30–18:30.
Closed book, two sheets in handBring one A4 sheet, both sides — handwritten, typed, or photocopied. Your midterm A4 sheet is returned during the exam, so you will have both. Put final-scope material on the new sheet and let the midterm sheet cover topics 01–15.
Scope and readiness
Coverage runs from DHCP to the end of the slides, and the paper may include some midterm topics. Readiness combines topics marked done, final-scope cards mastered, your best final mock, configuration tasks practiced, and analysis cases solved.
0%
TOPICS0/8
CARDS0
BEST MOCK—
CONFIG0
ANALYSIS0
Final topics
Midterm carry-over
Quick recap
last read
01 Campus model
Access, distribution, core. Data centres use spine-and-leaf.
02 IPv6
128 bits, 8 groups of 4 hex. Drop leading zeros; :: only once.
FE80::/10 link-local · FD unique local · FF02::1 all nodes · FF02::2 all routers.
EUI-64: split the MAC, insert FFFE, flip the 7th bit: 0011.2233.4455 → 0211:22FF:FE33:4455. SLAAC uses it.
03 Switch basics
CAM table = MAC → port, ages out after 300 s.
SSH (TCP 22) instead of Telnet (TCP 23): encrypted, so confidentiality.
Port security: default max 1 MAC, default violation shutdown (err-disabled). Modes protect / restrict / shutdown.
04 VLANs and trunking
VLAN = separate broadcast domain. 802.1Q tag carries a 12-bit VLAN ID and the 3-bit CoS.
Native VLAN frames are untagged, so they carry no CoS.
DTP: auto + auto = access; desirable or trunk on either side = trunk; access + trunk = do not use.
In the final: autonomous AP with several SSIDs → trunk; LAP → access port, WLC → trunk; RSPAN VLAN on trunks only.
05 VTP
Server creates VLANs and sends updates · client syncs and forwards, cannot create · transparent keeps local VLANs and only forwards updates.
Higher revision number wins: adding a switch with a higher revision can wipe the domain's VLANs. Password = MD5.
VTP can carry the RSPAN VLAN; pruning keeps it off trunks that do not need it.
06 EtherChannel
Bundles links into one logical port, so STP sees one link.
PAgP (Cisco): desirable starts, auto waits. LACP (802.3ad): active starts, passive waits. on works only with on.
Never bundles: auto + auto, passive + passive. Members must match speed, duplex, VLANs, trunk mode.
In the final: MEC = one EtherChannel to two physical switches (VSS / StackWise) → no STP blocking; a failed member only cuts capacity.
07 Multilayer switch
Switchport = L2; no switchport = routed L3 port.
SVI (interface vlan 10) = the VLAN's gateway; up only if the VLAN exists with an active port. Needs ip routing.
In the final: the SVI is the DHCP default-router, where ip helper-address goes, and where HSRP runs.
08 Inter-VLAN routing
Router-on-a-stick: one trunk, subinterfaces; encapsulation dot1Q 10 before the IP address.
L3 switch with SVIs: faster and scales better.
09 Private VLANs
Primary VLAN holds secondary VLANs. Isolated ports talk only to promiscuous; community ports talk within the community and to promiscuous; promiscuous (gateway) talks to everyone.
10 STP
Root = lowest bridge ID (priority, default 32768 in steps of 4096, then MAC).
Each non-root switch: one root port (lowest cost to root). Each segment: one designated port. The rest block.
Cost 10M / 100M / 1G / 10G = 100 / 19 / 4 / 2.
Timers: hello 2 s, forward delay 15 s, max age 20 s. States: blocking → listening → learning → forwarding.
Direct failure 30 s; indirect about 50 s (max age + 2 × forward delay).
In the final: make the STP root and the HSRP active the same switch per VLAN. STP = lowest wins, HSRP = highest wins. Shared VLAN across a switch block → STP blocks uplinks.
10B BackboneFast
Detects an indirect failure with RLQ and skips the max-age wait (saves 20 s).
11 STP tuning and guards
spanning-tree vlan 10 root primary → 24576 (or 4096 below the current root); root secondary → 28672.
PortFast: host port forwards at once, so DHCP finishes at boot (no 169.254.x.x).
BPDU Guard: PortFast port receives a BPDU → err-disabled. Root Guard: port may never become root port.
UplinkFast: fast switch to the backup uplink; sets priority 49152, cost +3000.
12 Loop Guard and UDLD
Loop Guard: BPDUs stop arriving → loop-inconsistent instead of forwarding.
UDLD: detects one-way links; messages every 15 s, about 45 s to detect.
13 RSTP
States: discarding, learning, forwarding.
Roles: root, designated, alternate (backup path to the root), backup (second link to the same segment).
Proposal/agreement handshake: about 1 s. Neighbour lost after 3 missed hellos (about 6 s). Edge port = PortFast.
14 RSTP vs 802.1D
Blocking + listening merge into discarding; no timer waits on point-to-point links, so convergence is much faster.
15 MST
Many VLANs mapped onto a few instances = fewer STP trees.
Same region only if name, revision number and VLAN-to-instance map all match.
16 DHCP
DORA: Discover → Offer → Request → ACK. Client 68, server 67; Discover 0.0.0.0 → 255.255.255.255. Request is broadcast so the other servers know they were not chosen.
SNMP: get/set to UDP 161; trap/inform to UDP 162; informs are acknowledged (v2c+). v3 levels noauth / auth / priv; order group → user → host.
SPAN: destination port has STP off, never connect it to the network. RSPAN: remote-span VLAN on every switch's trunks; middle switch needs only the VLAN.
22 Security
CIA: confidentiality = who can read · integrity = who can change · availability = reachable when needed.
Most likely midterm-in-final questionsTrunk vs access for an AP or WLC · RSPAN VLAN on trunks · MEC and logical switches remove STP blocking · SVI as the DHCP and HSRP gateway · STP root aligned with HSRP active · PortFast and DHCP at boot · STP blocking in the shared-VLAN switch block.
In the exam roomConfig answers: show the mode, keep the order, end with the show command. Analysis answers: what you see → the rule → the conclusion. Numbers for 01–15 are on your midterm sheet; 16–23 on the final sheet.
CSMA/CA, BSS/ESS, autonomous vs lightweight, roaming types
HSRP vs VRRP vs GLBP
RPR vs RPR+ vs SSO, NSF, RIB vs FIB
IntServ vs DiffServ, PHBs, shaping vs policing, WRED
Syslog levels, SNMP versions, SPAN vs RSPAN
CIA, firewall, DMZ, IPS, NGFW/NGIPS
Device configuration
Write the commands, in order, in the right mode.
DHCP pool + exclusions + relay
SLAAC-only interface
HSRP pair with priority and preempt
Syslog buffer, timestamps, clock, NTP
SNMPv2c with ACL; SNMPv3 group/user/host
Local SPAN; RSPAN across three switches
System analysis
Read an exhibit or a topology and explain or predict.
show standby brief: who is active, why, after failure
show ntp associations: stratum, *, +
Syslog lines: severity and console filtering
DSCP values: AF/EF/CS decoding, trust maps
Roaming tables: anchor/foreign, Layer 2 vs Layer 3
Design flaws: single points of failure, blocked links
Final mock exam
best —
LENGTH
Configuration writing
0 practiced
System analysis
0 solved
Final cheat sheet
A4 · 2 sides · ch 16–23
The sheet you take into the exam: one A4 sheet, landscape, both sides, chapters 16–23. Print the PDF at 100% (not “fit to page”) and flip on the short edge. Topics 01–15 stay on your midterm sheet.
Sheet coveredAnswer from understanding first. The sheet opens again after you answer.
Master the cheat sheet
mastery 0%
LOOKUP0
UNDERSTAND0
REBUILD0
Sheet in hand. Rounds of 10 lookups against the clock. Each answer shows where the fact sits on the sheet (side, column, heading). Aim for under 20 seconds each, so the exam time goes to thinking, not searching.
Sheet covered. Scenarios where the sheet only gives the facts and you have to apply them. After each answer the supporting line opens on the sheet.
Sheet covered. Fill the blanks of the tables the exam leans on. Spelling counts for keywords; spaces, units and capital letters do not.
Midterm in the final
0%
The paper may include some midterm topics. Your midterm sheet comes back in the exam, so this drill is for speed and for the places where midterm ideas show up inside final questions: VLANs and trunks under WLAN and RSPAN, EtherChannel under high availability, SVIs under DHCP and HSRP, STP under campus design.
RAPID0
BRIDGES0
NUMBERS0
Rapid: 15 midterm questions, weighted toward VLANs, EtherChannel, inter-VLAN routing and STP. Midterm inside final: questions that join a midterm idea to a final topic. Numbers: STP timers and costs, DTP, EtherChannel modes, VLAN ranges, RSTP, VTP.
Five-day plan
0 done
Exam-room method
Budget 180 minutes: first pass through multiple choice in about 50 minutes, leaving 2 hours for configuration and analysis, with 15 minutes to check.
Configuration answers: show the mode (global vs interface), keep commands in order, use exact keywords (excluded-address, remote-span, informs), and finish with the show command that proves it works.
Analysis answers: state what you see, the rule that applies, then the conclusion. Example: “R2 is active because R1 has no preempt and R2 became active first.”
Direction words matter: HSRP picks the highest priority; STP picks the lowest. Syslog's lower number is more severe. A higher AF drop value is dropped sooner.
Compare questions: answer in a small table — mechanism, guarantee, speed, cost.
Use both sheets: topics 01–15 from the midterm sheet; topics 16–22 from the new one.
Blueprint
Core switching concepts
click the tags
VLAN 10VLAN 20 · EtherChannelprivate VLANblocked by STP
Why the topics come in this order
each fix creates the next problem
This dependency chain lets you rebuild the switching system from first principles.
What must you know first
dependency ladder
Tier
Topics
You cannot understand the next tier without this
0 · Foundation
01 · 02 · 03
Layers, addressing, and how a switch learns MACs
1 · Segmentation
04 · 05 · 09
VLANs, how they cross links, and how to isolate inside one
2 · Getting between segments
07 · 08
Requires VLANs (tier 1) and subnetting (tier 0)
3 · Redundancy
06 · 10
Requires trunking (tier 1); loops only exist once you have redundant L2 links
4 · Controlling STP
11 · 12 · 10+
Requires the STP algorithm (tier 3)
5 · Better STP
13 · 14 · 15
Requires everything above — RSTP and MST are refinements, not new ideas
Engineer's index
if you need X, use Y
Requirement
Tool
Topic
Split one switch into separate networks
VLAN
04
Carry many VLANs on one cable
802.1Q trunk
04
Stop typing the same VLAN on 50 switches
VTP
05
Let two VLANs talk
Router-on-a-stick or SVI
07 · 08
Isolate hosts inside one VLAN
Private VLAN
09
More bandwidth without new hardware
EtherChannel
06
Survive a link failure without a loop
STP
10
Choose which switch is the root
priority / root primary
11
Stop a PC reboot from costing 30 seconds
PortFast
11
Stop users plugging in their own switch
BPDU Guard
11
Stop an outsider stealing the root
Root Guard
11
Survive a link that goes silent
Loop Guard + UDLD
12
Skip the 20-second Max Age wait
BackboneFast (RLQ)
10+
Converge in under a second
RSTP / Rapid PVST+
13 · 14
Run 1000 VLANs without 1000 trees
MST
15
Lock a port to known devices
Port security
03
Manage a switch safely
SSH + SVI
03
Lab coverage
practice density
The sequence deliberately revisits Spanning Tree from four angles: manual calculation, verification, configuration, and topology change.
Use the repetitionLAB 07, LAB 08, LAB 09 and LAB 10 share one topology. Solve it on paper first, confirm it in IOS, change the priorities, then observe convergence.
The five sentences that hold the system together
A switch floods what it does not know — which is why loops are fatal and why VLANs reduce risk.
A VLAN is a broadcast domain, and a broadcast domain is a subnet — so crossing VLANs is always a layer 3 act.
Redundant links are mandatory and dangerous, so STP blocks the minimum to keep exactly one path.
In STP, lowest always wins: priority, then MAC, then cost, then sender BID, then sender port.
Every convergence feature exists to remove one specific wait — PortFast, UplinkFast, BackboneFast, and finally RSTP removes them all.
Lab flow
[1]
Preparetopology · addressing
──▶
[2]
ConfigureIOS in source order
──▶
[3]
Verifyshow output · pings
Evidence firstDo not stop when the commands are accepted. Read the operational state: VLAN membership, trunks, neighbors, root IDs, port roles, DHCP leases, and end-to-end reachability.
Authoritative lab map
LAB 01–LAB 13
Lab
Title
Platform
Core evidence
LAB 01
Basic Switch
Packet Tracer 9.0
SSH, management SVI, sticky port security
LAB 02
VLAN and 802.1Q
Packet Tracer
VLAN reachability, TPID and TCI
LAB 03
VTP
Packet Tracer
server, client and transparent propagation
LAB 04
EtherChannel with LACP
Packet Tracer
bundle state and port-channel trunk
LAB 05
Inter-VLAN Routing
Packet Tracer 9.0
router-on-a-stick, SVIs, OSPF/OSPFv3
LAB 06
Private VLAN
GNS3 + IOU
community, isolated and promiscuous reachability
LAB 07
Determine Spanning Tree
Manual calculation
root, root ports, designated and blocked ports
LAB 08
Verifying Spanning Tree
Packet Tracer 9.0
PVST+ root and role output
LAB 09
Configuring Spanning Tree
Packet Tracer 9.0
priority and root-primary behavior
LAB 10
STP with Topology Changes
Packet Tracer 9.0
timed convergence and PortFast
LAB 11
Rapid Spanning Tree
Packet Tracer 9.0
802.1D compatibility and rapid convergence
LAB 12
Multiple Spanning Tree
GNS3 + IOU
regions, instances, roots and path cost
LAB 13
DHCP
Packet Tracer 9.0
pools, exclusions, leases and IPv6 SLAAC
Dependency checkpoints
Complete LAB 02 before LAB 03–LAB 06; each depends on correct VLAN and trunk behavior.
Use LAB 07 as the manual baseline for LAB 08–LAB 11.
Save the LAB 09 file for LAB 10, then save LAB 10 for LAB 11.
LAB 12 requires GNS3/IOU; LAB 13 returns to Packet Tracer and combines VLANs, routing, DHCP and IPv6.
Topics
01
Intro & Design Model
Campus Design · Hierarchy
Big networks are built in layers so they can grow and be fixed.
Technical scope
The console centers on Layer 2 switching and the Layer 3 functions that connect switched domains: VLANs, inter-VLAN routing, VTP, EtherChannel, Private VLANs, Spanning Tree, DHCP, campus design, basic QoS, high availability, and wireless design.
The 3-layer hierarchical model
Layer
Job
Typical gear
Design instinct
Core
Move traffic between buildings as fast as possible
High-speed L3 switches
Do nothing slow here — no ACLs, no filtering
Distribution
Aggregate access switches, apply policy, route between VLANs
Multilayer switches
This is where intelligence lives (STP root, SVIs, ACLs)
Access
Connect end devices
L2 switches
Cheap, many ports, PortFast + port security
Why layers at allEach layer has one job, so you can add a building without redesigning the campus, and when something breaks you know which layer to look at. A single PC problem = access. A whole building slow = distribution or core.
The slide also asks: "What about Spine and Leaf?" — the modern data-center answer. Every leaf switch connects to every spine, so any server is exactly two hops from any other. It exists because data-center traffic is now mostly east-west (server to server), while the 3-layer model was designed for north-south traffic (user to internet).
What you're expected to already know
The 7 OSI layers and the TCP/IP stack.
Basic router and switch configuration.
Subnetting, especially class C — the labs use /24, /25 and /30.
Tools
Tool
Level
Notes
Packet Tracer 9.0
CCNA
Enable Always Show Port Labels; on macOS disable CLI Text to Speed.
GNS3 2.x + IOU
CCNP
Needs the matching GNS3 VM in VirtualBox, host-only adapter, static IP, and a generated IOU licence. Only 2 labs use it.
Lab discipline
Save a clean baseline before each topology-change experiment.
Run verification commands and record the actual operational state, not only the running configuration.
Keep device names, interface numbers, VLAN IDs, addresses, and protocol values identical to the source lab.
Foundation checkBe able to name the network layer for every device in a diagram and explain where switching, routing, and policy decisions belong.
02
IPv6
IPv6 · EUI-64 · SLAAC
128-bit addresses. Written as 8 hex groups, shortened by two rules.
The problem
IPv4 has 2³² addresses and ran out. IPv6 has 2¹²⁸ — enough that every device can have a public address again, which kills the need for NAT. Adoption is now roughly half of Google's traffic; the slide shows the IPv4→IPv6 overlap running through the 2020s and 2030s.
Writing an address
128 bits = 8 groups ("quartets") of 4 hex digits: 2001:DEAD:CAFE:0000:0000:0000:0007:0088
Drop leading zeros in each group: 2001:DEAD:CAFE:0:0:0:7:88
Replace one run of all-zero groups with :: — 2001:DEAD:CAFE::7:88
Only one :: per address, because with two you couldn't tell how many zero groups each one hides.
Address types — read the first digits
Type
Starts with
IPv4 equivalent
Global unicast
2000::/3 (any unreserved)
Public address
Unique local
FD
Private (10.x, 192.168.x)
Link-local
FE80
169.254.x APIPA
Multicast
FF
224.x
FF02::1
all nodes on the link
subnet broadcast
FF02::2
all routers on the link
(none)
Prefix structure — where the bits go
Global unicast
Unique local
Front
Global routing prefix (P bits, from IANA→RIR→ISP)
FD (8 bits) + random global ID (40 bits)
Middle
Subnet (S bits)
Subnet (16 bits)
Back
Interface ID (I bits)
Interface ID (64 bits)
Typical: ISP gives you 2001:0DB8:1111::/48, you carve …:1::/64, …:2::/64 and so on. /64 is the normal subnet size — the last 64 bits are always the host part.
IPv4 vs IPv6 header — why v6 is faster to route
IPv4 header
IPv6 header
What changed
version, header length, ToS
version, priority (traffic class)
Fixed 40-byte header — no length field needed
identifier, flags, fragment offset
— removed —
Routers no longer fragment; the sender handles it
header checksum
— removed —
L2 and L4 already checksum; saves work at every hop
TTL
hop limit
Same thing, honest name
protocol
next header
Also chains optional extension headers
options
flow label
Marks packets belonging to one flow
EUI-64 — build the host part from a MAC
Split the 6-byte MAC in half.
Insert FFFE between the halves.
Flip the 7th bit from the left of the first byte (0↔1).
Shortcut for the flipThat bit means "locally administered". Flipping it changes the first byte by ±2 in hex: 00↔02, 12↔10, CC↔CE, AB↔A9. Practise on 0200.0101.0101 → link-local FE80::1FF:FE01:101.
How a device gets an address
Method
Who decides
Gives you
Missing
Manual
You
Everything
—
EUI-64
Router, from its MAC
Interface ID
—
SLAAC
Host itself
Prefix, interface ID, gateway
DNS
Stateful DHCPv6
Server, remembers leases
Everything
—
Stateless DHCPv6
Server, remembers nothing
DNS and extras only
address
SLAAC in 3 moves: ① learn the subnet prefix on the link using NDP ② pick your own interface ID (random or EUI-64) ③ run DAD to check nobody else has it. The gap is DNS — fill it with stateless DHCPv6 or RDNSS carried inside NDP.
Link-local addresses
Every IPv6 interface gets one automatically: FE80::/64, interface ID by EUI-64 on Cisco.
Used for talking to neighbours: NDP, routing protocol hellos, and next-hop addresses.
That's why routing tables show via FE80::CE01:AFF:FEAE:0 instead of a global address.
Routing protocols for IPv6
Protocol
Spec
Notes
Static
—
ipv6 route 2001:DB8:2::/64 2001:DB8:1::2 or ipv6 route 2001:DB8:2::/64 Fa0/1
RIPng
RFC 2080
Same as RIPv2 but UDP 521; next hop is a link-local address
OSPFv3
RFC 2740
OSPFv2 is IPv4-only. Needs a manual 32-bit router-id if the router has no IPv4 address
EIGRPv6 / MP-BGP4
—
Mentioned only
From IOS 15.1(3) the OSPFv3 syntax changed to router ospfv3 + ospfv3 1 ipv6 area 0 with address families. Both styles appear in the slides.
▸ reading the routing table
C connected · L local (this interface's own /128) · LC local connected loopback · S static · O OSPF intra-area · OI inter-area · OE1/OE2 external · ON1/ON2 NSSA external · R RIP · B BGP.
You will always see L FE80::/10 via ::, Null0 and L FF00::/8 via ::, Null0 — those are the link-local and multicast catch-alls, not routes you configured.
▸ commands
ipv6 unicast-routing ! nothing routes without this
interface Fa0/1
ipv6 address 2001:DB8:1111:1::1/64
ipv6 address FE80::1 link-local ! optional manual LL
ipv6 enable
ipv6 route 2001:DB8:2::/64 Fa0/1
! RIPng
ipv6 router rip MYRIP
interface Fa0/0
ipv6 rip MYRIP enable
! OSPFv3 (classic syntax)
ipv6 router ospf 1
router-id 1.1.1.1
interface Fa0/0
ipv6 ospf 1 area 0
show ipv6 interface brief
show ipv6 route
show ipv6 route ospf ! only OSPF-learned routes
show interface Fa0/0 ! find the burned-in MAC
ping ipv6 2001:DB8:1111:1::1
▸ what show ipv6 interface tells you
It prints the link-local first, then global addresses, then joined group addresses: FF02::1 (all nodes), FF02::2 (all routers, if routing is on), and the solicited-node multicast FF02::1:FFxx:xxxx used by NDP/DAD. It also confirms ND DAD is enabled.
Exam traps
:: once only. Leading zeros drop, trailing zeros do not.
SLAAC gives no DNS.
OSPFv3 with no IPv4 address = you must set router-id manually.
Prefix means all host bits are 0: 2001:1234:5678:9ABC::/64.
Get aheadBe able to do EUI-64 in under 30 seconds cold. It appears in the drills tab with an infinite generator — five reps and it is automatic.
03
Switch Basics & Security
Switching · SSH · Port Security
How a switch learns, and how to lock it down.
The three devices
Device
Layer
What it really is
Domains
Hub
L1
Multiport repeater — copies bits everywhere
One collision domain for everyone
Switch
L2
Connects multiple collision domains
Each port = own collision domain; whole switch = one broadcast domain
Router
L3
Connects multiple broadcast domains
Each interface = own broadcast domain
The five behaviours of a transparent bridge
Listen — read the source MAC of every frame and record it against the port it arrived on.
Update — if a MAC appears on a new port, move the entry.
Flood broadcasts — out every port except the one it came in on.
Flood unknown unicast — destination not in the table? Same treatment.
Never modify the frame — which is exactly why it's called transparent.
Why this matters laterBehaviours 3 and 4 are what make bridging loops catastrophic. They are the entire motivation for Spanning Tree in Topic 10.
The MAC table
Cisco calls it CAM (Content-Addressable Memory). Entries age out after 300 s.
TCAM is a separate, ternary version used for ACL lookups — it can match "don't care" bits.
Cisco hardware families (worth recognising)
Family
OS
Capability
Catalyst 6500 / 4500 / 3750 / 3650 / 3560
IOS
Layer 2 + Layer 3
Catalyst 2960 / 2000 family
IOS
Layer 2 with a few L3 features
Nexus 7000 / 5000 / 2000
NX-OS
Data center
Your labs use 2960 (pure L2) and 3650 (multilayer). That difference is why Lab 05 puts SVIs on the 3650 and not the 2960.
Securing access — in the order you type it
Hostname and enable secret (hashed) rather than enable password.
Console line password with login.
Local user for remote access, then line vty 0 4 + login local. "0 4" means five simultaneous sessions (n − m + 1).
SSH prerequisites: a domain name → RSA key (2048 recommended) → ip ssh version 2. Without domain + key the crypto simply won't generate.
transport input ssh to refuse Telnet entirely (options: all / none / ssh / telnet).
service password-encryption to hide the plaintext ones. Removing it later does not decrypt what's already stored.
Why SSH not TelnetTelnet sends the password across the wire in clear text — anyone capturing frames reads it. This is the single most common real-world audit finding.
Management IP
A switch has no routable interface of its own, so the IP goes on an SVI: interface vlan 1 + address + no shutdown, plus ip default-gateway so it can reply to other subnets. Security note from the slide: don't use VLAN 1 for management in production.
Port security
Option
Behaviour
Use when
static
You type each allowed MAC
Servers that never move
dynamic
Learns as devices connect, lost on reload
Temporary control
sticky
Learns and writes into running-config
Normal desk ports — the practical choice
maximum n
How many MACs may use the port. Default 1
Desk with a phone + PC → 2
▸ commands
hostname swA
enable secret netdes
line console 0
password netdes
login
username student secret netdes
ip domain-name cpe.eng.cmu.ac.th
crypto key generate rsa ! choose 2048
ip ssh version 2
line vty 0 4
login local
transport input ssh
service password-encryption
interface vlan 1
ip address 192.168.56.251 255.255.255.128
no shutdown
ip default-gateway 192.168.56.1
interface range Fa0/1 - 2
description USER PORTS
duplex auto ! auto | full | half
interface Fa0/1
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security maximum 2
! from the switch, SSH out to another device
ssh -l student 192.168.56.252
show ip interface brief
show interface status
show mac address-table
show port-security interface Fa0/1
show ip ssh
▸ GNS3 / IOU differences
On IOU images you save with copy running-config unix:initial-config.cfg instead of copy running-config startup-config.
VPCS (the tiny virtual PC) uses ip 192.168.10.5 255.255.255.0 192.168.10.1, show ip, and save.
Exam traps
CAM aging 300 s · port security default max 1.
Sticky writes to running-config — you still have to save.
Order matters for SSH: domain name before key generation.
Lab 01 uses /25 = 255.255.255.128.
04
VLANs & Trunking
VLAN · 802.1Q · DTP
One switch, many broadcast domains. One cable, many VLANs.
The problem
A LAN is "everyone in the same broadcast domain", and by default a whole switch is one LAN. To split it you'd need a second physical switch — expensive and inflexible. A VLAN does it in software.
Five benefits — know why, not just what
Benefit
Mechanism
Less CPU load
Fewer devices receive each broadcast frame
Lower security risk
Fewer hosts see flooded (unknown unicast) traffic
Isolation
Groups genuinely cannot reach each other at L2
Easier troubleshooting
A failure domain equals a broadcast domain
Lighter Spanning Tree
Smaller topology per VLAN to compute
Trunking
Connecting two switches that share 5 VLANs could mean 5 cables. Instead one trunk carries all of them, tagging each frame with its VLAN ID on the way out. The receiving switch reads the tag, strips it, and delivers into the right VLAN.
802.1Q field
Size
Value / meaning
TPID (EtherType)
2 bytes
always 0x8100 — "this frame is tagged"
PRI
3 bits
Priority — used by QoS
CFI / DEI
1 bit
0 = Ethernet, 1 = Token Ring · or drop-eligible
VLAN ID
12 bits
1–4094 (2¹² = 4096 total)
The other protocol, Cisco's ISL, is legacy — it wrapped the whole frame instead of inserting a tag. The native VLAN is the one VLAN that crosses the trunk untagged.
VLAN ranges — the full table
Range
Class
Use
Sent by VTP?
0, 4095
Reserved
System only — you can't see or use them
—
1
Normal
Default VLAN — cannot be deleted
Yes
2–1001
Normal
Everyday Ethernet VLANs
Yes
1002–1005
Normal
Legacy FDDI / Token Ring — cannot be deleted
Yes
1006–1024
Reserved
System only
—
1025–4094
Extended
Ethernet VLANs
Only VTP v3, or transparent mode
If you create a VLAN without naming it, the name defaults to VLAN + the 4-digit ID — VLAN 10 becomes VLAN0010.
Two design philosophies
Model
Idea
Traffic pattern
Reality
End-to-end
A user keeps their VLAN wherever they plug in
80/20 — mostly local
Old model; VLANs span the whole campus
Local
VLAN follows geography (per floor/building)
20/80 — mostly leaves the subnet
Modern; servers and internet are elsewhere
DTP — how a link decides to become a trunk
switchport mode
Behaviour
access
Always an access port
trunk
Always a trunk
dynamic desirable
Actively proposes, and answers proposals
dynamic auto
Only answers — never proposes. This is the default
access
dyn auto
trunk
dyn desirable
access
Access
Access
Do not use
Access
dyn auto
Access
Access ⚠
Trunk
Trunk
trunk
Do not use
Trunk
Trunk
Trunk
dyn desirable
Access
Trunk
Trunk
Trunk
The homework question the slide asks"What mode will it be if you connect two switches at default?" → both are dynamic auto, neither proposes, so you get an access link and cross-VLAN traffic silently fails. Note: GNS3 IOU doesn't support DTP at all.
▸ commands
vlan 261
name staffs
interface Fa0/1
switchport mode access
switchport access vlan 261
interface range Fa0/1 - 4
switchport access vlan 261
interface Gi0/1
switchport trunk encapsulation dot1q ! only if the switch also knows ISL
switchport mode trunk
switchport trunk allowed vlan 10,20
switchport trunk allowed vlan add 30
switchport trunk allowed vlan remove 20
switchport trunk allowed vlan except 99
show vlan brief
show vlan id 261
show interface Fa0/1 switchport
show interface trunk
Exam traps
TPID 0x8100, VLAN ID 12 bits.
Two defaults back-to-back = no trunk.
VLAN 1 and 1002–1005 cannot be deleted.
Lab 02 asks you to read TPID + TCI from a captured frame — convert the VLAN ID to hex first (261 = 0x105).
05
VTP
VTPv2 · Domains · Pruning
Create a VLAN once; the domain copies it everywhere.
The problem
With 50 switches you'd type vlan 30 fifty times, and one typo breaks connectivity in a way that's painful to find. VTP carries VLAN additions, deletions and renames in layer-2 frames along trunk links.
Domains
A domain is one switch or a group of interconnected switches sharing a domain name.
A switch belongs to exactly one domain. By default it has none until you set it or it learns one.
VTP advertisements cannot cross a router — it is a layer-2 protocol on trunks.
The three modes
Mode
Create / edit
Accepts updates
Forwards updates
In one line
Server (default)
yes
yes
yes
The authority. Changes propagate domain-wide
Client
no
yes
yes
Behaves like a server but read-only
Transparent
local only
no
yes
Minds its own business, passes messages through
The subtlety students missTransparent still forwards other switches' advertisements — it just doesn't apply them to itself. So a transparent switch in the middle never breaks the domain behind it. That is exactly what Lab 03 makes you observe.
Pruning
By default a trunk carries traffic for every allowed VLAN. If the switch at the far end has no ports in VLAN 3, sending VLAN 3 broadcasts down that trunk is wasted bandwidth. VTP pruning stops broadcasts and unknown unicast for VLANs the neighbour doesn't need.
Versions
Version
What it adds
1
Baseline
2
Token Ring support · unrecognised TLV pass-through · version-independent transparent mode · consistency checks. Primary focus here
3
Doesn't handle VLANs directly — distributes whole databases over the domain; supports extended VLANs
Authentication
Same domain name and password on every switch or nothing syncs.
Password is 8–64 characters, case sensitive, hashed to 128 bits with MD5.
Where VLANs actually live
What
Where
How to wipe it
VLAN database
flash:/vlan.dat
delete vlan.dat
Startup config
nvram:/startup-config
erase startup-config
On IOU they live in the VM's unix: folder instead. A full factory reset needs both commands — this catches people out constantly.
▸ commands, in configuration order
vtp mode server ! or: vtp mode client / vtp mode transparent
vtp domain ENG
vtp version 2
vtp password 261434
vtp pruning
vlan 30
name bachelor
show vtp status ! mode, domain, version, revision, max VLANs
show vtp counters ! how many ads sent/received
show vlan brief
▸ beyond the slide — the revision-number danger
Switches accept whichever advertisement carries the highest revision number. Plug in an old lab switch that happens to have a higher revision and it can overwrite the VLAN database of the entire domain, deleting production VLANs in seconds.
The standard defence: before connecting any used switch, set it to transparent mode or change its domain name — either resets the revision to 0.
Exam traps
Default mode is server — the slide asks this outright.
Clients cannot create VLANs; transparent still forwards ads.
Erasing startup-config does not remove VLANs.
Extended VLANs need v3 or transparent mode.
06
Link Aggregation / EtherChannel
EtherChannel · LACP · PAgP
Several cables acting as one link — more bandwidth, no STP drama.
The problem
A link is saturated. Two options: buy faster ports (expensive), or bundle the links you already have. Cisco calls the bundle an EtherChannel; the port-channel interface is the logical link you then configure.
Why you can't just plug in two cablesTwo parallel links between switches form a loop, so Spanning Tree blocks all but one. You get redundancy but zero extra bandwidth. EtherChannel makes STP see a single logical link, so every member forwards.
Four benefits
No hardware upgrade needed — reuse existing ports.
Configure once, on the port-channel interface.
Redundancy without reconvergence: losing one member does not change the topology, so STP does not recalculate.
Load balancing across members of the same channel.
The two negotiation protocols
PAgP
LACP
Owner
Cisco proprietary
IEEE 802.3ad
Initiates
desirable
active
Waits (default)
auto
passive
No protocol
on
on
Bundles: desirable+auto · desirable+desirable · active+passive · active+active · on+on Fails: auto+auto · passive+passive (nobody starts) · on + any negotiating mode (on sends nothing to answer)
silent vs non-silent (PAgP only): with auto or desirable, silent is assumed — the port may join a channel even without hearing PAgP from the partner, which suits file servers and packet analysers. Use non-silent when you know the partner speaks PAgP.
Reading the verification output
Flag
Meaning
P
bundled in port-channel — what you want
S / U
Layer 2 / in use → Po10(SU) is healthy
R
Layer 3 channel
s
suspended — the far end isn't answering
I
stand-alone — negotiation failed, port acts alone
D / d
down / default port
The slide's own example log: %EC-5-L3DONTBNDL2: Et0/1 suspended: LACP currently not enabled on the remote port — that's the far side not configured yet.
Configuration order that avoids pain
Physical ports default to auto encapsulation / dynamic trunk mode. Set them to trunk explicitly first.
Then create the channel-group.
Then configure the port-channel interface with the same trunk settings. A mismatch suspends the bundle.
▸ commands
interface range Gi1/0/1 - 3
switchport trunk encapsulation dot1q
switchport mode trunk
channel-protocol lacp
channel-group 3 mode active ! active|passive|desirable|auto|on
interface port-channel 3
switchport trunk encapsulation dot1q
switchport mode trunk
show etherchannel summary
show etherchannel 3 port-channel
show interfaces Gi1/0/1 etherchannel
show interfaces etherchannel
Exam traps
Both defaults together (auto+auto, passive+passive) = no channel.
Channel-group numbers are local — SWA can use 3 while SWB uses 4.
PAgP = Cisco; LACP = 802.3ad. Never mix them on one bundle.
Packet Tracer supports only show etherchannel port-channel (no port number) and show etherchannel summary.
07
Multilayer Switch
SVI · Routed Port · Layer 3
One box, three kinds of port.
The three port personalities
Type
Config
What it is
Used for
L2 switch port
switchport
Normal access or trunk port
Connecting hosts and switches
L3 routed port
no switchport + ip address
Behaves exactly like a router interface
Point-to-point links to other L3 devices
SVI
interface vlan X + ip address
A virtual router interface inside a VLAN
Being the gateway for that VLAN
None of it routes until you enable ip routing. Verify a port's identity with show interface X switchport — "Switchport: Enabled" means L2, "Disabled" means routed.
How a real campus uses thisDistribution switches connect to each other with routed ports (fast, no STP involvement), and give users their gateway through SVIs. That's precisely the Lab 05 design: swB uses Gi1/0/24 as a routed port to the router and SVIs for VLAN 30/40.
▸ commands
ip routing
interface Gi1/0/24
no switchport
ip address 192.168.100.2 255.255.255.252
interface vlan 30
ip address 192.168.30.1 255.255.255.0
no shutdown
interface Gi1/0/3
switchport
switchport mode access
switchport access vlan 30
show interface Gi1/0/24 switchport
show ip route
Exam traps
no switchport makes it routed — the double negative catches people.
The SVI only comes up when at least one access port in that VLAN is up.
Packet Tracer multilayer switches have ip routingoff by default.
08
Inter-VLAN Routing
Router-on-a-Stick · SVI · Routing
Three ways to let VLANs talk. Pick by port count.
The rule that drives everything
Devices in the same VLAN must be in the same subnet.
Devices in different VLANs must be in different subnets.
So routing between VLANs is just routing between subnets — a Layer 3 job. A pure switch cannot do it.
The three methods
Method
How
Cost
When
One link per VLAN
A separate physical router interface for each VLAN
Burns a port per VLAN
Two or three VLANs, ancient gear
Router-on-a-stick
One trunk to the router; a subinterface per VLAN
All traffic shares one physical link
Small sites, one router available
Layer 3 switch
An SVI per VLAN; routes internally in hardware
Fastest, no extra device
Anything modern
Router-on-a-stick, precisely
On the switch: make the link to the router a trunk.
On the router: bring the physical interface up with no shutdown — subinterfaces inherit its state.
Create one subinterface per VLAN. encapsulation dot1q 10first, then the IP address.
That IP becomes the default gateway for every host in that VLAN.
The subinterface number (e.g. G0/0.1010) is only a label — the dot1q number is what actually matches the tag. Naming them after the VLAN just keeps you sane.
▸ commands — both methods side by side
! ===== ROUTER-ON-A-STICK =====
interface G0/0
no shutdown
interface G0/0.1010
encapsulation dot1q 10
ip address 192.168.10.1 255.255.255.0
ipv6 address CAFE:1::1/64
ipv6 address FE80::FACE:10 link-local
ipv6 enable
interface G0/0.2020
encapsulation dot1q 20
ip address 192.168.20.1 255.255.255.0
! on the switch side
interface Gi0/1
switchport mode trunk
! ===== LAYER 3 SWITCH =====
ip routing
interface vlan 30
ip address 192.168.30.1 255.255.255.0
no shutdown
show ip route
show vlan brief
Trace one pingPC in VLAN 10 pings a PC in VLAN 20. The frame goes to its gateway (the .1010 subinterface or SVI 10) → the router/switch strips the tag, routes the packet into subnet 20 → re-tags it for VLAN 20 → out the access port. On an L3 switch that whole round trip happens inside the ASIC, which is why it's fast.
Exam traps
Encapsulation before IP address. Forgetting no shutdown on the physical interface kills every subinterface.
Gateway = the address for that host's own VLAN.
Packet Tracer MLS: ip routing is off by default.
09
Private VLANs
PVLAN · Community · Isolated
Isolation inside a single VLAN, without new subnets.
The problem
Normally every host in a VLAN receives every broadcast and can reach every other host. To separate, say, 200 customers you could give each their own VLAN — but that means:
A huge number of L3 interfaces and subnets, most of them nearly empty (wasted address space).
A far more complicated Spanning Tree.
Dozens of ACLs to maintain (management complexity).
The alternatives are a VACL (filter inside the VLAN) or a Private VLAN, which partitions the VLAN into subdomains.
The vocabulary
Term
Meaning
Primary VLAN
The parent — the "real" VLAN and its subnet
Secondary VLAN
A child mapped to exactly one primary. Two kinds: isolated or community
Promiscuous port
Talks to everything. Normally the router, firewall, gateway, or shared server
Isolated port
Talks only to promiscuous ports — not even to other isolated ports
Community port
Talks within its own community, plus promiscuous ports
From ↓ / To →
Promiscuous
Same community
Other community
Isolated
Promiscuous
yes
yes
yes
yes
Community
yes
yes
no
no
Isolated
yes
no
no
no
Configuration order (it matters)
Put the switch in VTP transparent mode — VTP does not carry private VLANs.
Create every secondary VLAN and label it isolated or community.
Create the primary VLAN and associate the secondaries to it.
For routing, map the secondaries onto the primary's SVI.
You only ever need one isolated secondary per primary (isolated hosts are separate from each other anyway), but one community VLAN per group.
▸ commands
vtp mode transparent
vlan 201
private-vlan isolated
vlan 202
private-vlan community
vlan 100
private-vlan primary
private-vlan association 201,202
! later: private-vlan association add|remove {list}
interface Fa0/1 ! a customer/host port
switchport mode private-vlan host
switchport private-vlan host-association 100 201
interface Fa0/24 ! router / shared server
switchport mode private-vlan promiscuous
switchport private-vlan mapping 100 201,202
interface vlan 100 ! let the SVI route the secondaries
private-vlan mapping 201,202
show vlan private-vlan
show interface Fa0/1 switchport
Exam traps
Isolated ↔ isolated is blocked. Community A ↔ community B is blocked.
host-association on host ports, mapping on promiscuous ports and SVIs.
VTP cannot carry PVLANs — configure them on every switch, transparent mode recommended.
LAB 06 uses a Private-VLAN-capable Layer 2 IOU image in GNS3. Feature support depends on the image, so use the supplied lab image and verify the commands before building the topology.
10
Spanning Tree Protocol
STP · Root Election · Port Roles
Redundant links create loops. STP blocks the minimum number of ports to break every loop.
Why a loop is fatal — walk it through
Two switches A and B both connect segment A to segment B. PC1 (segment A) sends one frame to PC4, and neither switch knows either MAC yet:
A and B both receive it on gi1/0/1 and record PC1 → port 1/0/1.
Both decide to flood it.
Both flood it onto segment B. PC4 gets two copies — and A hears B's copy while B hears A's.
Both now relearn PC1 → port 1/0/2. The MAC table has flipped.
Still nobody knows PC4, so both flood again — back onto segment A.
Relearn, reflood, forever. One frame becomes an infinite storm.
Three simultaneous failuresBroadcast storm eats all bandwidth · MAC tables thrash so unicast is unreliable · every host is interrupted by duplicate frames. A single loop can take down a building, which is why STP is on by default everywhere.
How switches recognise each other: the BID
Bridge ID = 8 bytes: a 2-byte priority field followed by the 6-byte system MAC. Lower is better, and priority is compared first — the MAC only breaks ties.
BPDUs — the messages
Sent to the multicast address 01-80-C2-00-00-00, source = the switch's own MAC, every 2 seconds by default.
Configuration BPDU — builds and maintains the tree.
TCN BPDU — announces that something changed.
Field
Bytes
What it's for
Protocol ID / Version
2 / 1
Always 0 for 802.1D
Message type
1
Configuration or TCN
Flags
1
bit 0 = TC, bit 7 = TCA (acknowledge)
Root Bridge ID
8
Who I think the root is
Root Path Cost
4
What it costs me to reach the root
Sender Bridge ID
8
Who is speaking
Port ID
2
Which port it left from (priority + number)
Message age / Max age
2 / 2
Ageing of this information
Hello / Forward delay
2 / 2
Timers dictated by the root
Those four highlighted fields are literally the tie-break sequence you use to solve any STP question.
The algorithm — three elections
One root bridge per VLAN (with PVST+). Every port on the root becomes designated.
One root port on each non-root switch — its best way back to the root.
One designated port per network segment — the end closer to the root.
Anything that is neither a root port nor a designated port is blocked.
Election 1 — the root bridge
Every switch boots believing it is the root and advertises itself. As better BPDUs arrive they defer. Winner = lowest priority, tie → lowest MAC. A new switch with a lower BID can preempt an existing root at any time, which is why you set priorities manually (Topic 11).
Election 2 — root ports, and how cost accumulates
The root sends BPDUs with root path cost 0.
A neighbour receives it and adds the cost of the port it arrived on.
It re-advertises with the new cumulative cost, and so on outward.
Bandwidth
Cost (IEEE 1998, Cisco default)
4 Mbps
250
10 Mbps
100
16 Mbps
62
45 Mbps
39
100 Mbps
19
155 Mbps
14
622 Mbps
6
1 Gbps
4
10 Gbps
2
IEEE 2004 defines larger "long" values for faster links; enable them with spanning-tree pathcost method long.
Decision sequence (identical for root and designated ports):
Lowest root path cost.
Lowest sender BID.
Lowest sender port priority (default 128).
Lowest sender port number.
The detail that decides your lab answersSteps 3 and 4 use the neighbour's port ID, not your own. With two cables to the same switch, the winner is whichever port the sender considers lower — that's why SW2's Fa0/4 beats Fa0/3 when it connects to SW1's Fa0/1.
Election 3 — designated ports
Each segment elects one designated port using the same sequence. A root port can never also be designated. Everything left over blocks.
Port states
State
Can
Cannot
Duration
Disabled
nothing
send or receive data
—
Blocking
receive BPDUs
send/receive data, learn MACs
indefinite while a loop exists
Listening
send + receive BPDUs
send/receive data, learn MACs
Forward Delay — 15 s
Learning
BPDUs + learn MACs
send/receive data
Forward Delay — 15 s
Forwarding
everything
—
indefinite while stable
Blocking Max Age 20s
Listening 15s
Learning 15s
Forwarding data flows
Timers
Timer
Default
Function
Hello
2 s
Interval between configuration BPDUs
Forward Delay
15 s
Time spent in Listening, and again in Learning
Max Age
20 s
How long a stored BPDU survives without an update. Expiry signals an indirect failure
Three kinds of topology change
1 · Direct — the switch physically sees a link go down.
A and C both detect the link down.
C removes its stored best BPDU and tries to send a TCN out its root port — but that was the failed link.
A (the root) sends a BPDU with the TC flag set; every switch relays it.
B and C shorten their MAC ageing from 300 s to 15 s so stale entries die fast.
C's blocked port becomes its best path and walks blocking → listening → learning → forwarding.
Downtime = 2 × Forward Delay = 30 s
2 · Indirect — the link stays up but traffic silently stops (a one-way failure).
Both ends still show "up", so no failure is detected and no TCN is sent.
C keeps its stored BPDU until Max Age expires and flushes it.
C waits to hear from the root again, and gets a configuration BPDU on its blocked port.
That becomes the new best entry; the port walks blocking → listening → learning → forwarding.
Downtime = 20 + 2 + 15 + 15 = 52 s
3 · Insignificant — cosmetic, e.g. a user reboots their PC.
C sees the access port go down and sends a TCN to the root.
The root acknowledges and floods a TC-flagged BPDU to everyone.
Every switch shortens MAC ageing and flushes idle entries — for no reason at all.
This is the argument for PortFastA cosmetic event just aged out the whole network's MAC tables. Topic 11's PortFast stops host ports from generating topology changes, and LAB 10 makes you watch both behaviours back to back.
The family
Name
Standard
Cisco config keyword
Classic STP
802.1D
pvst (as PVST+)
Rapid STP
802.1w
rapid-pvst (as RPVST+/PVRST+)
Multiple STP
802.1s
mst
▸ commands
show spanning-tree
show spanning-tree vlan 10
spanning-tree pathcost method long
Exam traps
Priority first, MAC only on ties.
Cost is added on the incoming port — draw arrows toward the root and sum.
Blocking ports still receive BPDUs; they are silent, not deaf.
30 s vs 52 s, and where each number comes from.
PVST+ = one root per VLAN, so two VLANs can have different trees on the same wires.
10+
BackboneFast & RLQ
BackboneFast · RLQ · Indirect Failure
Kill the 20-second Max Age wait after an indirect failure — by asking upstream "can you still reach the root?"
What it is for
BackboneFast exists only for indirect failures — a link that dies somewhere you cannot see.
It removes the Max Age timeout (20 s).
It does not remove Listening and Learning, so you still pay 15 + 15.
Result: recovery drops from 52 s to about 30 s.
The inferior BPDU — where it comes from
When a switch loses its connection to the root, it does the only thing it can: it declares itself the new root and advertises that. Since its claim is worse than the information neighbours already hold, that message is called an inferior BPDU. It is not a lie — it is a cry for help, and BackboneFast is the mechanism that hears it.
Without BackboneFast — why it takes 20 extra seconds
The A–B link fails indirectly. A never notices, so A sends no topology change.
B notices it has lost the root, declares itself root, and sends an inferior BPDU out of e3 toward C's port e4.
C's e4 is a blocked port. C ignores the inferior BPDU and simply keeps waiting — until the good BPDU it stored from A expires after 20 s (Max Age). Only then does e4 begin Listening and the tree rebuilds.
The wasteC had a perfectly good path to the root the whole time. It just had no way to ask, so it sat out the full Max Age timer doing nothing.
With BackboneFast — the RLQ conversation
Same indirect failure at A–B; A still says nothing.
B still declares itself root and sends the inferior BPDU to C.
C receives an inferior BPDU on a blocked port — the trigger. C immediately sends a Root Link Query (RLQ) out of its other candidate ports.
An RLQ Reply (RLQ R) comes back, confirming C can still reach the real root.
C moves e4 straight to Listening. No 20-second wait.
RLQ rules — memorise these two lists
A switch that receives an RLQ…
does this
is not the root bridge
forwards the RLQ onward toward the root
is the root bridge
sends RLQ R back down the spanning-tree path
has also lost the root
sends the reply straight back to that port (bad news travels fast)
The switch that sent the RLQ gets the reply…
does this
on its root port
Its own tree is unchanged. It just moves the port that received the inferior BPDU to Listening.
on a blocked port
That blocked port may become the new root port. It moves both the blocked port and the inferior-BPDU port to Listening — and lets the normal election decide which one wins.
The worked example from the slides
Step
What happens
1
Indirect failure on B's port e2. B loses the root.
2
B floods an inferior BPDU out every unblocked port except the failed one.
3
C receives it on e4, which is blocked. C's current root port and blocked ports are all candidates, so C sends RLQ out e5 and e6.
4
D relays the query to root A; the RLQ R returns via D to C's port e5 — its root port. C's root port therefore does not change; it simply moves e4 to Listening.
Where this sits in the timeline
Scenario
Max Age
New BPDU
Listening
Learning
Total
Indirect, no BackboneFast
20
2
15
15
52 s
Indirect, with BackboneFast
skipped
—
15
15
≈ 30 s
Direct failure (any config)
n/a
—
15
15
30 s
How to remember the whole familyPortFast removes the wait for hosts. UplinkFast removes it for a local uplink failure. BackboneFast removes the Max Age portion for a remote failure. Only RSTP removes Listening and Learning as well — which is why 802.1w replaced all three.
▸ commands
spanning-tree backbonefast ! global — enable on EVERY switch
show spanning-tree backbonefast ! counters: inferior BPDUs, RLQ sent/received
show spanning-tree summary
Exam traps
Trigger is an inferior BPDU (Root Guard reacts to superior, Loop Guard to missing).
It saves the Max Age 20 s only — Listening and Learning still cost 30 s.
RLQ = Root Link Query, RLQ R = the reply. Know which device sends which.
Reply on the root port → only the inferior-BPDU port moves. Reply on a blocked port → both move.
Must be enabled on all switches in the network to work properly.
11
Implementing STP 1 — Tuning & Guards
Priority · PortFast · Guards
Put the root where you want it, converge faster, and stop users breaking the tree.
Verification first — you cannot tune what you cannot see
Command
Shows
show spanning-tree [vlan X]
Root ID, this bridge's ID, all port roles and states
show spanning-tree active
Only active interfaces
show spanning-tree detail
Everything, including counters
show spanning-tree interface X
One port's role, cost and port ID
show spanning-tree root
Root bridge per VLAN in one table
show spanning-tree [vlan X] bridge
BID broken into its component parts
Why the automatic root is usually wrong
Left alone, the root is decided by MAC address — effectively random, and often the oldest, slowest switch. The slide's example shows the consequence: workstations on switch B must cross into the core (D), back down to access (A), and up to the core again (C) just to reach the server farm, while 1 Gbps links sit unused. Put the root on a distribution switch, and the secondary root on its pair.
Setting the root — two ways
Method
Command
Behaviour
Explicit priority
spanning-tree vlan 10 priority 20480
You choose. Range 0–61440 in steps of 4096; default 32768
Cisco shortcut
spanning-tree vlan 10 root primary
Switch picks for itself: if everyone else is above 24576 → take 24576; otherwise take lowest − 4096
spanning-tree vlan 10 root secondary
Sets a backup root value
Two things about root primary
It modifies the priority once, at the moment you type it. It does not keep watching, so a new switch can still steal the root later.
Running it twice does not keep subtracting — it recalculates the same answer. Lab 09 proves this: SW2 lands on 16384 both times.
Extended system ID
Enabled by default. The 16-bit priority field is split: 4 bits of configurable priority (hence the 4096 steps) and 12 bits carrying the VLAN ID. So the value you see is:
displayed priority = configured priority + VLAN ID
Configured 4096 → VLAN 1 shows 4097, VLAN 10 shows 4106, VLAN 50 shows 4146. In Lab 09, 20480 in VLAN 10 shows as 20490. Turn it off with no spanning-tree extend system-id.
Tuning the path — three levers
Lever
Command
When to use
Bridge ID
spanning-tree vlan X priority N
To choose the root
Port cost
spanning-tree [vlan X] cost N
To prefer one path over another of equal speed
Port ID
spanning-tree [vlan X] port-priority N
To break a tie between two links to the same neighbour
Port ID = 16 bits: 8 bits of priority (0–255, default 128) + 8 bits of port number (starts at 1 and increases across modules). Shown as 128.4 in the Prio.Nbr column.
The three convergence accelerators
Feature
Where
Problem it fixes
PortFast
Access ports to hosts
30 s wait every time a PC boots
UplinkFast
Access switches with two uplinks
Up to 50 s to fail over to the backup uplink
BackboneFast
All switches
The 20 s Max Age wait after an indirect failure
PortFast in detail. When a workstation powers on, the port normally crawls Blocking → Listening → Learning → Forwarding: at least 30 s, plus up to 20 s more if PAgP is negotiating. The PC has often given up on DHCP by then. PortFast shortens listening and learning to nothing, so the port forwards immediately. If a loop is ever detected on that port it still drops back to blocking, so it is safe as long as the port faces a host. The macro switchport host sets access mode + PortFast + disables PAgP in one line.
UplinkFast in detail. The access switch keeps a functioning root port plus one blocked backup, and swaps instantly when the primary dies. To guarantee it never becomes the root or a transit path it also raises the switch priority to 49152 and adds +3000 to every local port cost. Because of that it is not allowed on the root bridge.
BackboneFast in detail. It reacts to an inferior BPDU — one advertising a worse root, or a longer distance to it. Normally the switch would sit through Max Age before responding; BackboneFast checks immediately whether an alternate path exists.
Where the inferior BPDU arrived
Conclusion
On a port in Blocking state
The root port and other blocked ports are alternate paths to the root
On the root port itself
All blocked ports become alternate paths
On the root port, and nothing is blocked
This switch has lost contact with the root — it becomes the new root
The edge guards
Guard
Trigger
Action
Protects against
BPDU Guard
Any BPDU on a PortFast port
err-disable the port
Someone plugging a switch into a desk port
BPDU Filter
—
Stop sending BPDUs there
Leaking topology info to edge devices
Root Guard
Superior BPDU (a better root claim)
root-inconsistent state
A rogue or misconfigured switch stealing the root
Filter beats Guard: if both are on the same interface, BPDU filtering takes precedence and Guard never fires. Globally-enabled filtering is safer — the port simply loses PortFast if a BPDU appears; per-interface filtering ignores BPDUs completely, which is genuinely risky.
The log messages to recognise SPANTREE-2-RX_PORTFAST: Received BPDU on PortFast enable port. Disabling 2/1 → BPDU Guard fired. SPANTREE-2-ROOTGUARDBLOCK: Port 1/1 tried to become non-designated in VLAN 77. Move to root-inconsistent state. → Root Guard fired.
▸ commands
spanning-tree vlan 10 priority 20480
spanning-tree vlan 10 root primary
spanning-tree vlan 10 root secondary
spanning-tree extend system-id
interface Gi0/1
spanning-tree cost 10
spanning-tree port-priority 64
spanning-tree portfast default ! all non-trunk ports
interface Fa0/11
spanning-tree portfast
switchport host ! macro
spanning-tree uplinkfast ! not on the root!
spanning-tree backbonefast
spanning-tree portfast edge bpduguard default
spanning-tree portfast bpdufilter default
interface Fa0/5
spanning-tree bpdufilter enable
interface Gi0/2
spanning-tree guard root
show spanning-tree summary totals
show spanning-tree inconsistentports
show spanning-tree interface Fa0/11 portfast
show spanning-tree uplinkfast
show spanning-tree backbonefast
Exam traps
Priority must be a multiple of 4096 — 30000 is invalid.
Displayed priority includes the VLAN ID.
Triggers: superior → Root Guard · inferior → BackboneFast · any BPDU on PortFast → BPDU Guard.
BackboneFast has its own deck — see 10+ BackboneFast & RLQ for the full RLQ mechanism.
UplinkFast numbers: 49152 and +3000.
12
Implementing STP 2 — Loop Guard, UDLD, Flex Links
Loop Guard · UDLD · Flex Links
The dangerous failure is not a broken link — it's a link that goes quiet.
First, the complete list of port roles
Role
Definition
Root port
The one port on a switch closest to the root bridge
Designated port
The port on a segment that is closer to the root
Blocking port
Neither root nor designated
Alternate port
A candidate root port sitting in blocking — identified for fast reuse by UplinkFast
Forwarding port
Ports where no STP activity is expected — normal end-user connections
The silent-failure problem
STP trusts BPDUs completely. A blocked port that stops receiving them assumes the topology changed: after Max Age it flushes the stored BPDU, transitions through the states, and starts forwarding. If the BPDUs stopped because of a fault rather than a real change, that port has just closed a loop. Worse, it now believes it is designated and starts sending BPDUs downstream when it should be listening upstream.
Loop Guard
Watches non-designated ports. If BPDUs stop arriving, the port goes to loop-inconsistent blocking instead of forwarding.
Recovers by itself the moment BPDUs return — no manual reset.
Safe to enable everywhere: the switch works out which ports are non-designated on its own.
Layer 2 only.
SPANTREE-2-LOOPGUARDBLOCK: No BPDUs were received on port 3/2 in vlan 3. Moved to loop-inconsistent state. SPANTREE-2-LOOPGUARDUNBLOCK: port 3/2 restored in vlan 3.
UDLD — proving the link works both ways
Fibre uses two strands, and SFP/GBIC modules fail one direction at a time. Both switches still see "link up", but traffic only flows one way. UDLD sends layer-2 frames carrying the sender's port identity; the far end must echo them back with its own identity added. If that round trip completes, the link is genuinely bidirectional.
Normal mode
Aggressive mode
On detection
Marks the port undetermined + syslog
Sends 8 messages in 8 s, then err-disables
Interval
15 s default (7 s on Catalyst 3550)
Detection time
3 × interval ≈ 45 s
Enabled globally, it only actually runs on fibre ports.
Both ends must have it — one-sided UDLD disables nothing.
On an EtherChannel it monitors each member link independently.
Loop Guard vs UDLD — the comparison the slide draws
Conclusion from the slideNeither covers everything, so enable both for the highest level of protection. Software faults are rarer than hardware ones, but Loop Guard is the only thing that catches them.
Flex Links — the no-STP alternative
Define an active/standby pair on an access switch; the standby carries nothing until the active dies.
Failover in under 50 ms — far faster than any STP mechanism.
STP is disabled on those ports; the pair replaces it.
Layer 2 ports and port-channels only — not VLANs, not L3 ports.
One backup per active interface. Members cannot be inside an EtherChannel, though two port-channels can be a Flex Links pair.
▸ commands
spanning-tree loopguard default ! global
interface Gi0/1
spanning-tree guard loop ! per port
udld aggressive ! global, fibre ports (or: udld enable)
interface Gi0/1
udld aggressive ! per port (or: udld enable / udld disable)
interface Gi0/1
switchport backup interface Gi0/2 ! Flex Links
no spanning-tree vlan 1-4094
show spanning-tree interface Gi0/1 detail
show spanning-tree summary
show udld Gi0/1
show interface switchport backup
Exam traps
Three triggers, three features: missing → Loop Guard · superior → Root Guard · inferior → BackboneFast.
Normal UDLD only logs; aggressive err-disables.
The EtherChannel difference (whole bundle vs single link) is a favourite comparison question.
Flex Links turns STP off on that pair.
13
Rapid Spanning Tree — How It Works
RSTP · Proposal/Agreement · Edge
Same tree, built by handshakes rather than by waiting out timers.
Where it came from
802.1w evolved 802.1D for faster convergence. Cisco combined it with PVST+ to get Rapid PVST+ (also written RPVST+ or PVRST+), configured as rapid-pvst. RSTP is also the foundation of 802.1s MST. Root bridge election is unchanged from 802.1D — same BID, same lowest-wins rule.
Port roles — two new ones
Role
Meaning
Root
Best path to the root — same as 802.1D
Designated
The segment's best port toward the root
Alternate
An alternate path to the root via another switch — blocked, but ready
Backup
A redundant, less desirable connection to the same segment — blocked
Alternate = "if my root port dies I'll use this to reach a different switch". Backup = "my second cable onto the same wire". Backup only exists with hubs or shared segments, so it is rare in practice.
Port states — five become three
802.1D
RSTP
Frames
Learns MACs
Disabled / Blocking / Listening
Discarding
dropped
no
Learning
Learning
dropped
yes
Forwarding
Forwarding
forwarded
yes
Port types
Type
Definition
Edge port
At the edge of the network with a single host attached — i.e. PortFast. Loses edge status the instant a BPDU arrives
Root port
The port with the best cost to the root
Point-to-point
Connects to another switch and becomes designated. Full-duplex links are assumed point-to-point
RSTP treats convergence as a chain of handshakes across point-to-point links — which is exactly why the port type matters.
Faster failure detection
Every switch sends its own BPDUs every hello interval, rather than only relaying the root's.
Miss 3 in a row and the neighbour is presumed down; all information about that port is aged out immediately.
That is ≈ 6 seconds, versus Max Age 20 seconds in 802.1D.
Synchronisation — the proposal/agreement handshake
After BPDU exchange identifies the root, a switch receiving a superior BPDU makes that port its root port. For each non-edge port it then runs this sequence:
The sender has a superior BPDU, so the local switch accepts it as the designated switch and makes its own port the new root port.
It synchronises itself with the topology.
All non-edge ports move to Discarding — the switch deliberately isolates itself.
It sends an agreement back, confirming the designated-port choice.
The root port moves to Forwarding; the sender's port can forward too.
For each non-edge port still discarding, it sends a proposal to that neighbour.
It expects and receives an agreement back.
That port moves to Forwarding.
Why this is safe and fastBefore agreeing, a switch blocks everything downstream. At no instant does a path exist that could form a loop — so there is no need to wait 15 + 15 seconds "just in case". The blocking travels outward like a zipper, and each link comes up in milliseconds.
Topology changes in RSTP
802.1D
RSTP
What counts as a change
Any port state change
Only a non-edge port reaching Forwarding
Who announces it
Tell the root; the root tells everyone
The detecting switch floods it directly
Effect on MAC tables
Shorten ageing to 15 s
Flush immediately, on all ports except the one that received the TC
▸ commands
spanning-tree mode rapid-pvst
interface Gi0/1
spanning-tree link-type point-to-point ! force; auto if full-duplex
interface Fa0/5
spanning-tree portfast ! makes it an edge port
spanning-tree mode pvst ! back to classic
Exam traps
Which old states collapse into Discarding (Disabled, Blocking, Listening).
6 s (3 hellos) vs 20 s (Max Age).
An edge port receiving a BPDU stops being an edge port.
Alternate (another switch) vs Backup (same segment).
14
RSTP 2 — Roles & Topology Changes in Practice
RSTP · Roles · Topology Changes
The same event, told twice: 802.1D takes 30 seconds, RSTP takes a handshake.
Reading a port-role diagram
The slide labels every port R (root), D (designated), A (alternate) or B (backup). Practise until you can label a diagram without thinking:
Mark the root bridge — every port on it is D.
On each other switch mark exactly one R (best cost home).
On each link, the end closer to the root is D.
A leftover port facing another switch is A; a leftover second port onto the same segment is B.
The TC mechanism, step by step
When a bridge detects a change:
It starts the TC While timer (2 × hello) on all non-edge designated ports and, if needed, its root port. That timer is how long it actively advertises the change.
It flushes the MAC addresses associated with those non-edge ports.
While the timer runs, every BPDU it sends carries the TC bit — including out of its root port.
When a bridge receives a TC BPDU:
It clears MAC addresses on all its ports except the one the TC arrived on.
It starts its own TC While timer and sends TC-flagged BPDUs out all designated ports and its root port.
The result: propagation is a one-step flood from whoever noticed, instead of 802.1D's two-step "notify the root, root notifies everyone". No waiting on the root at all.
Case study — adding a link between the root and switch A
802.1D
RSTP
Initial state of the new port
Blocking, then Listening
Blocked pending handshake
How the news travels
BPDUs flow during Listening; A forwards the superior BPDU to B and C; D eventually hears it and blocks P1
Root proposes to A; A syncs (blocks its ports to B and C), agrees, and the link forwards immediately
Then
Port must still complete Listening + Learning
A proposes to B and C; each syncs and agrees; links unblock one by one
Refusals
—
Switch D refuses C's proposal because it knows a better path, so that link stays blocked
Time to forwarding
≈ 30 s (15 + 15)
handshake + BPDU travel
Summary"In 802.1D the port waits out Listening and Learning while the news spreads. In RSTP the root proposes, the switch isolates its downstream ports, agrees, and forwards — then repeats the same handshake with its own neighbours, creating a wave of synchronisation." That single paragraph answers any RSTP-vs-STP question.
Exam traps
Be ready to narrate both protocols for the same picture — the slides deliberately show them side by side.
RSTP's delay is handshake + travel, not a fixed timer.
A neighbour that knows a better path can refuse a proposal, leaving that link blocked.
15
Multiple Spanning Tree (MST)
MST · Regions · Instances
Hundreds of VLANs but only a couple of distinct topologies — so run only a couple of trees.
The three approaches compared
Approach
Trees
Load balancing
Cost
CST
One for all VLANs
none — one link always idle
Cheapest
PVST+
One per VLAN
full
Wasteful: 1000 VLANs = 1000 instances
MST (802.1s)
One per VLAN group
full
Just a few instances
The insight: with a given physical layout there are usually only two or three sensible topologies. Running a separate instance for every VLAN computes the same answers over and over.
Designing an MST deployment
Decide how many instances you need — usually one per useful topology (often 2).
Decide which VLANs map to each instance.
Root a different switch for each instance, so every uplink carries traffic.
Example: instance 1 = VLANs 11, 21, 31 rooted on switch A · instance 2 = VLANs 12, 22, 32 rooted on switch B.
Priority in MST
system ID priority = configured priority + instance number
Default priority with instance 10 → 32768 + 10 = 32778. Same idea as the extended system ID in Topic 11, but keyed on the instance instead of the VLAN.
Regions — the part that breaks in practice
A switch running MST must work out which of its neighbours share its configuration. Two switches are in the same region only if all three of these match exactly:
Attribute
Range
MST configuration name
up to 32 characters
MST configuration revision number
0–65535
Instance-to-VLAN mapping table
4096 entries
A port sits at a region boundary if the designated bridge on its segment belongs to a different region, or if it receives legacy 802.1D BPDUs. Normally a single region is enough for a whole campus.
The classic failureBPDUs carry a digest of the mapping table, not the table itself. One typo in one VLAN list and the two switches silently decide they are in different regions — everything still "works" but the load balancing quietly stops. First diagnostic step: run show spanning-tree mst configuration on both and compare name, revision and mapping.
▸ commands, in order
spanning-tree mode mst
spanning-tree mst configuration
show current ! what is applied now
name XYZ
revision 1
instance 1 vlan 11, 21, 31
instance 2 vlan 12, 22, 32
show pending ! preview before applying
end ! this applies it! root per instance, on different switches
A(config)# spanning-tree mst 1 root primary
B(config)# spanning-tree mst 2 root primary
show spanning-tree mst
show spanning-tree mst 1 detail
show spanning-tree mst interface Gi0/1
show spanning-tree mst configuration
show spanning-tree summary
Exam traps
The three region attributes — name, revision, mapping. One mismatch = separate regions.
Priority + instance number (32778), not the VLAN number.
show pending previews; end commits.
MST is built on RSTP, so it inherits the roles, states and handshake from Topic 13.
16
DHCP & Relay
Addressing · Pools · SLAAC
Dynamic Host Configuration Protocol (DHCP) gives a host an IP address and the settings it needs to use the network. A relay lets clients reach a server in another subnet.
What the client receives
A lease is permission to use an address for a limited time. Along with that address, a DHCP server can supply the subnet mask, default gateway, and Domain Name System (DNS) servers. The gateway reaches other networks; DNS resolves names. They solve different problems.
First understand the boundaryA client's initial broadcast stays inside its VLAN. A local DHCP server can answer directly. To reach a central server across a Layer 3 boundary, configure a DHCP relay on the client's gateway interface.
DORA: follow one new lease
Choose a message to see who sends it and why. DORA means Discover → Offer → Request → Acknowledge. User Datagram Protocol (UDP) port 67 belongs to the server; port 68 belongs to the client.
Client → local broadcast
0.0.0.0 : 68 → 255.255.255.255 : 67
“Is a DHCP server available?” The client has no usable IPv4 address yet, so it broadcasts a DHCPDISCOVER.
Server → client
Server IP : 67 → client / broadcast : 68
A DHCPOFFER proposes an address and configuration. Several servers can offer a lease; the client chooses one. The slide example shows a broadcast reply.
Client → local broadcast
0.0.0.0 : 68 → 255.255.255.255 : 67
The client broadcasts a DHCPREQUEST identifying its selected offer. This tells the other servers that their offers were not selected. This is the initial selection step, not lease renewal.
Server → client
Server IP : 67 → client / broadcast : 68
A DHCPACK confirms the lease and settings. The client can then configure the address. An offer alone is not the completed lease.
The slides draw all four messages as broadcasts. In real networks the server may send the Offer and ACK straight to the client (unicast) instead, and lease renewals are normally unicast. See RFC 2131, message delivery.
Configure a local DHCP server
Check the gateway first. The VLAN needs a working gateway interface: an SVI such as interface vlan 10 on a multilayer switch, or a router subinterface.
Exclude fixed addresses. Addresses already used by the gateway, servers or printers must be excluded so DHCP never hands them to a client.
Create a named pool. Enter the subnet, then the gateway, DNS server and lease time that clients should receive.
One pool per VLAN. Each VLAN subnet needs its own pool. The server chooses the pool whose subnet matches the interface the request arrived on; for a relayed request, it uses the relay interface address (for example 10.1.10.1).
Example: a pool for VLAN 10
ip dhcp excluded-address 10.1.10.1 10.1.10.20 ! range: .1 through .20
ip dhcp excluded-address 10.1.10.254 ! a single address
ip dhcp pool VLAN10
network 10.1.10.0 255.255.255.0
default-router 10.1.10.1
dns-server 8.8.8.8 8.8.4.4 ! one or two servers
lease 7 ! 7 days; lease 0 12 = 12 hours; lease infinite
exit
Without a lease line, IOS leases for one day.
Command
What it controls
Common mistake
excluded-address
Addresses the server must not lease; both range endpoints are included
Thinking an excluded address is reserved for one device. It is simply never handed out.
network
The pool's client subnet and mask
Entering one host's IP instead of the subnet ID.
default-router
The gateway delivered to clients
Entering the DHCP server's address instead of the VLAN's gateway.
dns-server
Name resolution servers delivered to clients
Assuming that getting an IP address means name lookups will also work.
lease
How long an address allocation lasts
Thinking a leased address belongs to the client forever.
Use ip dhcp excluded-address, including the final d. This corrects the command typo in the slides; the syntax is confirmed in Cisco's DHCP server guide.
DHCP relay: keep the server central
In the slide example, clients are in VLAN 10 with gateway 10.1.10.1/24, and the DHCP server is 20.5.5.5 in another network. Put ip helper-address on the VLAN 10 gateway interface, because that is where the client broadcast arrives.
Configure the client-facing relay interface
interface vlan 10
ip address 10.1.10.1 255.255.255.0
ip helper-address 20.5.5.5
The relay turns the broadcast into a normal (unicast) packet to 20.5.5.5 and adds its own address, 10.1.10.1, so the server knows which pool to use. The server still needs a pool for 10.1.10.0/24 with 10.1.10.1 as the default router, and the two networks must be able to route to each other in both directions. The helper command does not create a pool or a route.
Verify the result, then isolate the failure
Evidence
What to check
show ip dhcp binding
On the DHCP server, find the client's allocated address and binding.
Client configuration
Address, mask, gateway, and DNS all match the intended VLAN.
No lease
Check VLAN membership, active gateway interface, pool subnet and free addresses; then helper placement and server reachability.
Lease works, remote network fails
Check the delivered default gateway and routing.
IP connectivity works, names fail
Check the delivered DNS setting and DNS server reachability.
IPv6 SLAAC alongside IPv4 DHCP
Stateless Address Autoconfiguration (SLAAC) lets a host form an IPv6 address using a prefix in a Router Advertisement (RA). It does not need a DHCPv6 address lease. LAB 13 deliberately uses IPv4 DHCP and IPv6 Automatic together.
SLAAC interface pattern and flags
ipv6 unicast-routing
interface vlan 10
ipv6 address 2001:DB8:10::1/64
ipv6 enable
no ipv6 nd managed-config-flag
no ipv6 nd other-config-flag
The documentation prefix here is a separate teaching example. Keep LAB 13's original IPv6 addresses when doing that lab.
M flag: get the address from DHCPv6. O flag: get other settings, such as DNS, from DHCPv6. Turning both off, as the slides do, means hosts use SLAAC only. SLAAC gives the host an address and gateway but not DNS; DNS must come another way, for example a DNS option inside the RA.
Check yourself: the server is reachable, but only VLAN 20 has no leases. What next?
Check VLAN 20's gateway interface, helper address if the server is remote, and matching DHCP pool. A working lease in VLAN 10 does not prove that VLAN 20 has a pool or a working relay.
Exam answer to rememberDHCP allocates an address and configuration through Discover, Offer, Request, and ACK. Broadcasts stay within the client's VLAN; a relay forwards requests to a remote server. The server's pool must match the client subnet.
17
Enterprise Campus Network Design
Hierarchy · Modules · Resilience
A campus network should grow and recover in predictable ways. Give each layer a clear job, group access and distribution switches into blocks, and provide deliberate redundant paths.
From one shared segment to a hierarchy
The first slide shows an old shared Ethernet segment (a hub): all hosts share the same bandwidth and are in one collision domain and one broadcast domain. A switch gives every port its own collision domain; a router or Layer 3 switch splits broadcast domains. So the collision problem on that slide does not apply to modern switched networks.
When a network grows without a plan, nobody can tell which path traffic takes. A good design knows where traffic flows, has enough capacity, has room to grow, and has a known plan for failures.
Three layers, three responsibilities
Layer
Role
Choose for
Access Building access switches
Connect end devices and provide VLAN membership, filtering, and traffic priority.
Low cost per port, high port density, scalable uplinks, and redundant paths upstream.
Distribution Building distribution switches
Aggregate access switches; route between VLANs; apply security and connectivity policy.
High Layer 3 throughput, enough fast ports, access lists, Quality of Service (QoS), and resilient links.
Core Campus backbone
Connect distribution blocks and carry aggregate campus traffic efficiently.
Very high Layer 3 throughput, redundancy, fast recovery, QoS, and a simple forwarding design.
Where does policy belong?In this model, routing between VLANs and policy (ACLs, QoS) happen at the distribution layer. Keep ACLs and other heavy processing out of the core so it can simply forward traffic fast.
Classify the service before tracing the path
Service type
Resource location
Path in the slide model
Local
Same segment or VLAN as the user
Access layer only
Remote
A different segment or VLAN within the local block
Access → distribution
Enterprise
A central resource shared by campus users
Access → distribution → core
In an exam scenario, trace the real path: a server in another switch block is always reached through the core.
A switch block limits the failure domain
A switch block is a group of access switches plus the distribution switches they connect to. The core connects the switch blocks together. Usually routing starts at the distribution switches: VLANs and broadcasts stop there, so Spanning Tree Protocol (STP) runs only inside each block.
A second cable does not protect against failure of the only upstream switch. Use a pair of distribution switches, with each access switch connected to both. A separate core also needs redundancy; one core switch would remain a single point of failure.
Compare three switch-block designs
Pick a design and see where routing (Layer 3) begins. All three use the slides' layout: two distribution switches above two access switches.
Shared VLAN · larger Layer 2 domain
Above the boundary: Layer 3. Below it: Layer 2. Each access switch has a path to both distribution switches.
VLAN A is on both access switches, so it must be carried on trunks between all four switches. That creates loops, and STP has to block some links.
Local VLANs · smaller Layer 2 domains
Above the boundary: Layer 3. Below it: Layer 2. Each access switch has a path to both distribution switches.
VLAN A exists only on the left access switch and VLAN B only on the right. The access uplinks are still Layer 2 trunks, but the link between the two distribution switches is routed (Layer 3). There is no Layer 2 path between the access switches, so there is no loop for STP to block.
Routed access · Layer 3 moves down
Above the boundary: Layer 3. Below it: Layer 2. Each access switch has a path to both distribution switches.
The access switches now route. Their uplinks and the distribution link are all Layer 3. If an uplink fails, the routing protocol (for example OSPF) switches to the other one, and both uplinks can carry traffic at the same time. VLANs exist only on each access switch.
Size the block by traffic, not just headcount
Access capacity: enough ports for users and devices, plus uplink capacity for their traffic.
Distribution capacity: all traffic from the access switches, plus routing between VLANs, plus ACL and QoS processing.
VLAN size: how far each VLAN stretches, how much broadcast and multicast traffic it carries, and how large the STP domain becomes.
Growth: which user groups and applications will be added, and where their servers are.
The slides give about 2,000 users per block as a historical sizing guideline. It is not a protocol limit. Traffic behavior and device capacity decide when to split a block.
Signs the block is too largeThe distribution switches are overloaded by routing or ACL work, or broadcast and multicast traffic slows the whole block. Fix it by adding capacity or splitting the block; adding more access ports only makes it worse.
Core, dual core, and collapsed core
Design
Structure
Reason to use it
Dual core
Two multilayer core switches connect multiple switch blocks. Distribution has redundant Layer 3 paths into the core.
Remove the single core failure point; allow active equal-cost routing paths.
Multinode core
Several core pairs are connected to each other. In the slide example, each switch block connects to one core pair only, not to every core switch.
Grow a very large campus while keeping it organized in blocks.
Collapsed core
The same pair of devices performs distribution and core functions. Access switches connect redundantly to that pair.
A smaller campus can reduce cost and complexity without a separate core tier.
A collapsed core merges two layers; it does not remove redundancy. The two devices must be powerful enough for both jobs.
Design review: explain every link
Mark the access, distribution, and core roles.
Draw the VLAN and Layer 3 boundaries. Identify which links are trunks and which are routed.
Give each access switch two upstream paths to distinct distribution switches.
Link the two distribution switches together. Do not link access switches to each other, unless they are stacked into one logical switch.
Test both a link failure and a switch failure, and know which protocol recovers (STP, HSRP or the routing protocol).
After a failure, the remaining link carries all the traffic. Make sure it is big enough.
Check yourself: two access uplinks end on one distribution switch. Is that enough?
It protects against a cable failure, but if that distribution switch dies, the access switch is cut off. Connect the second uplink to the other distribution switch.
Exam answer to rememberHierarchy gives each layer one job: access connects users, distribution routes and applies policy, core moves traffic fast. Switch blocks keep a failure inside one block and make growth predictable. Two of every device and link keep the network running when one fails.
18
Integrating Wireless LAN
RF · CAPWAP · Roaming
In a wireless LAN, all devices on a channel share the same radio time. The access point (AP) links wireless clients to the wired network. The design you choose (autonomous or controller-based) decides where traffic goes, where settings are managed, and how a moving client stays connected.
Shared airtime: CSMA/CA and backoff
Wi-Fi is half-duplex: on one channel, only one device can transmit at a time. Devices use Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA): listen first, then wait a random time before sending, so two devices are less likely to transmit together.
Wait for the channel to become idle, then wait the Distributed Coordination Function Interframe Space (DIFS).
Count down a random backoff while the channel stays idle.
If another device starts transmitting, pause the countdown. Continue counting when the channel is free again.
Transmit when the counter reaches zero. Collisions can still occur, for example when two counters expire together.
In the slide's A/B/C example, A transmits first; B and C defer. C's shorter backoff wins the next turn, so B waits again. Collision avoidance reduces the risk; it does not promise that collisions never happen.
Wi-Fi standards: compare the slide values
The rates below are theoretical maximums. Real speed is much lower, because it depends on channel width, the number of antennas (spatial streams), the number of clients, signal quality and shared airtime. MIMO means Multiple Input, Multiple Output; SU and MU mean single-user and multi-user.
IEEE standard
Generation
Bands in the deck
Maximum PHY rate
MIMO
802.11
Original
2.4 GHz
2 Mbps
No
802.11b
—
2.4 GHz
11 Mbps
No
802.11a
—
5 GHz
54 Mbps
No
802.11g
—
2.4 GHz
54 Mbps
No
802.11n
Wi-Fi 4
2.4 / 5 GHz
600 Mbps
SU-MIMO
802.11ac
Wi-Fi 5
5 GHz
6.9 Gbps
MU-MIMO in Wave 2
802.11ax
Wi-Fi 6
2.4 / 5 GHz
9.6 Gbps
MU-MIMO
802.11ax
Wi-Fi 6E
2.4 / 5 / 6 GHz
9.6 Gbps
MU-MIMO
802.11be
Wi-Fi 7
2.4 / 5 / 6 GHz
About 46 Gbps
MU-MIMO
Building blocks: IBSS, BSS, ESS, and SSID
Term
Meaning
Picture in words
IBSS Independent Basic Service Set
Ad hoc network without an AP
Stations communicate directly.
BSS Basic Service Set
One AP and its associated stations in the infrastructure example
The AP is the center of the cell.
ESS Extended Service Set
Connected infrastructure BSSs using a distribution system
Multiple AP cells form one extended wireless network.
SSID Service Set Identifier
The wireless network's name
The client picks the SSID; the AP puts that SSID's traffic into a VLAN (for example SSID Staff → VLAN 10).
Association
The client's membership relationship with an AP
To join, the client needs the right SSID, a supported data rate, and the correct password or credentials.
An Access Point (AP) connects wireless and wired traffic. In normal (infrastructure) mode, clients never talk directly: even two clients on the same AP send their traffic through the AP. Direct Link Setup is a special exception.
Cells, channel reuse, and BSS coloring
A cell is one AP's coverage area. Neighboring cells should overlap a little so clients can roam, with no gaps (coverage holes). The slides compare a grid layout with a honeycomb layout, and also plan channels between floors, because APs on the floor above and below interfere too.
Coverage is not the same as capacity. Full power covers a bigger area, but then more clients share one AP's airtime, so each client gets less.
Smaller cells can support a denser deployment. The slides call reduced-power cells microcells and very small cells picocells.
Plan channels. Two nearby APs on the same channel share airtime and slow each other down, so neighbors should use different non-overlapping channels (1, 6 and 11 on 2.4 GHz).
BSS coloring (Wi-Fi 6) puts a 6-bit "color" number in the frame's first part (the PHY header). A device can then tell quickly whether a frame comes from its own AP or a neighbor's, without reading the full 48-bit BSSID.
Different color is not automatic permissionIf a frame comes from a neighbor's BSS (different color) and its signal is weak, a device may transmit anyway instead of waiting. It still follows normal CSMA/CA. The color is only a label; it gives no security.
Autonomous AP or controller-based WLAN?
Decision
Autonomous architecture
Unified architecture in the slides
Management
Each AP is configured and managed individually.
A Wireless LAN Controller (WLC) centrally manages lightweight APs (LAPs).
Forwarding
The AP sends client traffic straight onto the wired VLAN.
The LAP sends all client traffic through a tunnel to the WLC, and the WLC puts it on the wired network.
VLAN transport
If the AP has several SSIDs (one VLAN each), the switch port to every AP must be a trunk carrying all those VLANs.
The switch port to a LAP can be a normal access port, because client traffic travels inside the CAPWAP tunnel. Only the WLC's switch port must be a trunk with all the client VLANs.
Scaling
With many APs, changing channels, power or roaming settings one AP at a time becomes hard.
The WLC sets channels and power for all APs, tracks every client and handles roaming, so it scales to large networks.
With autonomous APs, roaming inside one SSID needs the same VLAN on every AP's switch port across the area, like an end-to-end VLAN. With a WLC, client traffic travels inside tunnels, so the client VLAN only needs to exist at the WLC.
Split-MAC: divide the work
Split-MAC (Cisco Unified Wireless Network, CUWN) divides the work that one autonomous AP does alone between two separate devices. A lightweight AP (LAP) is an AP that cannot work alone; it needs a wireless LAN controller (WLC), a separate device that manages many LAPs. The LAP keeps the real-time radio work: sending and receiving frames, beacons and probe replies, and Wi-Fi encryption. The WLC does everything else: authentication, security policy, association and roaming, RF channel and power, and QoS.
Control and Provisioning of Wireless Access Points (CAPWAP) is the protocol between the LAP and the WLC. It runs over IP, so the LAP and WLC can be in different subnets. It replaced the older Lightweight Access Point Protocol (LWAPP). CAPWAP uses two tunnels:
Tunnel
Carries
Protection in the slide model
Control
Configuration and AP management messages
Authenticated and encrypted
Data
Wireless client traffic between LAP and WLC
Encryption is optional; Datagram Transport Layer Security (DTLS) can protect it.
The LAP and WLC prove who they are to each other with X.509 certificates. Note the difference: Wi-Fi encryption (WPA2/WPA3) protects client ↔ AP, while CAPWAP DTLS protects AP ↔ WLC. They are separate.
The WLC can also choose channels and power automatically, raise power to cover a failed AP's area, spread clients across APs, monitor the radio environment, and detect wireless attacks.
How a lightweight AP becomes ready
Get an IP address from DHCP.
Discover available controllers and learn their addresses.
Join a controller. If it cannot join the first one, it tries the next.
Match the software image. If needed, download the controller-provided image and reboot.
Build the secure CAPWAP tunnel and download its settings (SSIDs, VLANs, channels).
In the slides' model, if a LAP loses its WLC, its clients are disconnected and the LAP looks for another WLC. Some AP modes (such as FlexConnect) and backup controllers can keep clients working.
Trace client traffic before troubleshooting
Situation
Data path
Autonomous AP → wired resource
Client → AP → switched campus
Centrally switched LAP → wired resource
Client → LAP → CAPWAP data tunnel → WLC → campus
Two clients, central switching
Client A → LAP → WLC → LAP → client B, including the slide's same-AP example
Exceptions mentioned in the deck
Direct Link Setup (DLS) can allow direct client communication; FlexConnect can forward selected traffic locally at the AP.
If a client is connected to Wi-Fi but cannot reach anything, follow its path: check the client's VLAN and IP address, then the CAPWAP tunnel and WLC (if used), then routing beyond the WLC.
Roaming: what changes and what stays?
Roaming means the client moves from one AP to another. With autonomous APs, each AP keeps its own client list, and the old AP forwards leftover frames to the new AP. With a WLC, the controller keeps the client list and moves the client for it.
Roam
What changes
How the client is reached
Intracontroller
AP changes; WLC stays the same.
The WLC just updates its client table to point to the new LAP.
Layer 2 intercontroller
AP and WLC change; the client subnet stays the same.
The old WLC hands the client's information to the new WLC. The client keeps its IP address; the slides call this local-to-local.
Layer 3 intercontroller
The client moves to a WLC serving a different subnet.
The old WLC (anchor) and new WLC (foreign) build a tunnel, so the client keeps its original IP. The slides call this local-to-foreign.
The slides quote under 10 ms for an intracontroller roam and under 20 ms for a Layer 2 intercontroller roam. These are Cisco's figures, not guarantees; authentication and the client device also affect the delay.
Layer 3 roam: follow the same client IP
In the slide example, Client-1 starts with 192.168.100.199/24. AP-1 serves the staff WLAN in 192.168.100.0/24; AP-2's local subnet is 192.168.200.0/24. Switch between before and after.
Associated with AP-1
Client-1 is associated with AP-1 through WLC-1. The client IP remains 192.168.100.199/24.
WLC-1 serves the client's original VLAN 100 and subnet. The client reaches the network through AP-1 and WLC-1.
Associated with AP-2 · original address retained
WLC-1 anchors the original subnet; WLC-2 is foreign. The client IP remains 192.168.100.199/24.
WLC-1 becomes the anchor controller; WLC-2 becomes the foreign controller. Data travels via AP-2 and WLC-2, then through the mobility tunnel to WLC-1. Client-1 keeps 192.168.100.199. The controller roles belong to WLCs, not to the APs.
The tunnel between the two WLCs is Ethernet over IP (EoIP). If the client roams again to a third WLC, the first WLC stays the anchor. A guest anchor uses the same idea on purpose: all guest traffic is tunneled to one chosen WLC (often in the DMZ).
Fast authentication and mobility groups
Joining a new AP is quick, but logging in again (802.1X with a RADIUS server, then new encryption keys) is slow. These methods let a roaming client skip the full login, if both the client and the network support them:
Method
What to remember
CCKM Cisco Centralized Key Management
The WLC stores the client's keys, so a roaming client does not log in again. Needs a Cisco-compatible (CCX) client.
PKC / OKC Proactive / Opportunistic Key Caching
The client's key is saved (cached) and shared with the other APs, so the client can roam without a full login.
802.11r / FT Fast BSS Transition
The IEEE standard for fast roaming: the client and the new AP set up keys quickly during the move. Both sides must support it.
Correction: the slide's "remembers previous APs, up to eight" describes Sticky Key Caching (SKC), not PKC. Cisco explains the difference in its fast-secure roaming note.
A mobility group is a set of WLCs that share client information so clients can roam between them. Each WLC has a mobility list of the other WLCs (MAC address, IP address and group name), configured by hand; WLCs do not trust each other automatically. Roaming works best between WLCs in the same group.
Check yourself: a client crosses into another controller's subnet. Must it obtain a new IP?
No. In this Layer 3 roam, the new (foreign) WLC tunnels the traffic back to the old (anchor) WLC, so the client keeps its IP and its sessions. Layer 2 roaming also keeps the IP. The difference: in Layer 2 the new WLC is on the same subnet; in Layer 3 it is on a different subnet, so a tunnel is needed.
Exam distinctionsAn SSID is a network name; a VLAN is a wired broadcast domain. A LAP is not a WLC. CAPWAP connects an AP to a controller; the mobility tunnel connects two controllers. In Layer 3 roaming the client keeps its IP even though the new WLC is on a different subnet.
18B
First Hop Redundancy & HSRP
Gateway · Virtual IP · Failover
A host sends every off-subnet packet to one default gateway. A First Hop Redundancy Protocol (FHRP) lets two or more routers share a virtual gateway address, so one router can fail without reconfiguring any host.
The gateway is a single point of failure
In the supplied example, hosts in VLAN 10 (10.1.1.0/24) use R1 at 10.1.1.9 as their default gateway. Redundant switch links do not help when R1, or its LAN interface, fails: nothing can leave the subnet.
Adding R2 at 10.1.1.129 creates a second exit, but a host still has only one configured gateway. Hosts pointing at .9 keep sending to a dead router. Changing every host, or waiting for new DHCP leases, is not a failover plan.
The FHRP ideaThe routers keep their own interface addresses and also share a virtual IP address and virtual MAC address. Hosts use the virtual IP as their gateway. One router normally answers for it; another takes over when that router fails.
Three FHRPs
Protocol
Origin
Forwarding model
Load-sharing unit
HSRP Hot Standby Router Protocol
Cisco
One active router forwards; others are standby/listen.
Per subnet. Use different groups for different VLANs to spread work.
VRRP Virtual Router Redundancy Protocol
Open standard, RFC 5798
One master forwards; others are backups.
Per subnet.
GLBP Gateway Load Balancing Protocol
Cisco
Several routers forward at the same time: active/active.
Per host. Different hosts learn different virtual MAC addresses for the same gateway IP.
The deck compares all three and configures HSRP. HSRP is the protocol to configure and analyze for this topic.
Follow one HSRP failover
Choose a stage. The hosts' configuration never changes: every host keeps gateway 10.1.1.1 and the same ARP entry for it.
R1 is active and owns the virtual gateway
Host ARP table: 10.1.1.1 → 0000.0C9F.F001, the version 2 virtual MAC for group 1.
R1 wins the active role with priority 110 against R2's default 100. Only the active router uses the virtual IP and virtual MAC. R2 monitors R1's hellos and is ready to take over.
R2 becomes active; the hosts change nothing
Gateway IP and host ARP entry are unchanged. Only the switches relearn where the virtual MAC lives.
R2 stops hearing hellos; when the hold time expires (10 s by default, with 3 s hellos) it becomes active and starts using 10.1.1.1 and 0000.0C9F.F001. It sends a gratuitous ARP — an ARP reply nobody requested — sourced from the virtual MAC. The switches update their MAC address tables, so frames for the gateway now go out the port toward R2.
Preemption decides whether R1 takes the role back
R1 configuration
Result when R1 recovers
standby 1 priority 110 only
R2 stays active. Without preemption, an existing active router keeps its role even if a higher-priority router appears. R1 becomes standby.
standby 1 priority 110 + standby 1 preempt
R1 preempts and becomes active again; R2 returns to standby.
Preemption is off by default in HSRP and is configured on the router that should reclaim the role. In show standby brief, a P beside the priority marks a router configured to preempt.
Which router becomes active?
No other HSRP router on the subnet: the local router becomes active.
No active router yet, several candidates: the highest priority wins. Default priority is 100.
Priorities tie: the highest IP address on the HSRP interface wins.
An active router already exists: it keeps the role unless a higher-priority router is configured with preempt.
Exam trap“Highest priority is always active” is false. Without preemption, the router that became active first stays active. Also note that HSRP uses the highest values, while STP elections use the lowest.
HSRP version 1 and version 2
Feature
Version 1
Version 2
IPv6 support
No
Yes
Hello timer resolution
Seconds
Milliseconds
Group numbers
0–255
0–4095
Virtual MAC (group in hex)
0000.0C07.ACxx
0000.0C9F.Fxxx
IPv4 multicast for hellos
224.0.0.2
224.0.0.102
Unique router identifier in messages
No
Yes
Work out a virtual MAC from the group number in hex: version 1 group 10 → 0000.0C07.AC0A; version 2 group 1 → 0000.0C9F.F001. Both routers in a group must run the same version.
Configure HSRP
Example: one router in group 1
interface GigabitEthernet0/0
standby version 2 ! both routers must match; default is version 1
standby 1 ip 10.1.1.1 ! group 1, virtual IP — the only required line
standby 1 priority 110 ! default 100; highest wins
standby 1 preempt ! reclaim active after recovery
standby 1 name GATEWAY-VLAN10 ! optional label
The group number (1) and virtual IP (10.1.1.1) must match on every router in the group; each router keeps its own interface address.
Supplied example: R1 active, R2 standby
! R1
interface GigabitEthernet0/0
ip address 10.1.1.9 255.255.255.0
standby version 2
standby 1 ip 10.1.1.1
standby 1 priority 110
standby 1 name HSRP-group-for-book
! R2 — same group and virtual IP, own interface address, default priority
interface GigabitEthernet0/0
ip address 10.1.1.129 255.255.255.0
standby version 2
standby 1 ip 10.1.1.1
standby 1 name HSRP-group-for-book
The example does not configure preemption, so show standby reports “Preemption disabled.” Add standby 1 preempt on R1 if R1 must always return to active.
Read the verification output
R1# show standby brief
P indicates configured to preempt.
|
Interface Grp Pri P State Active Standby Virtual IP
Gi0/0 1 110 Active local 10.1.1.129 10.1.1.1
R2# show standby brief
Interface Grp Pri P State Active Standby Virtual IP
Gi0/0 1 100 Standby 10.1.1.9 local 10.1.1.1
Field
How to read it
State
This router's own role: Active or Standby.
Active / Standby
The real interface address of the router in that role. local means “this router.”
P column
Blank: not configured to preempt. P: preempt configured.
Virtual IP
The gateway address the hosts use. It must match on both routers.
The longer show standby adds the virtual MAC, hello and hold timers, preemption, state-change history, and the active router's priority. Both routers should agree on who is active, who is standby, and the virtual IP.
Check yourself: both routers show “State Active” for group 1. What is wrong?
They are not exchanging hellos, so each thinks it is alone. Check that they are in the same VLAN/subnet, the interfaces are up, the group number and HSRP version match, and nothing filters the HSRP multicast. Two active routers mean duplicate virtual-MAC sources and unstable forwarding.
Check yourself: why does a host not need a new ARP entry after failover?
The virtual MAC moves with the active role. The host still maps 10.1.1.1 to the same virtual MAC; only the switches learn a new port for that MAC from the new active router's gratuitous ARP.
Exam answer to rememberHSRP gives hosts one virtual gateway IP and MAC shared by several routers. The highest priority (then highest interface IP) becomes active; standby takes over when hellos stop, then announces the virtual MAC with a gratuitous ARP. Preemption is needed for a higher-priority router to reclaim the active role.
19
High Availability
Logical switches · Supervisors · NSF
High availability (HA) means the network keeps working almost all the time, even when a part fails. In a campus you get it from: two of every device, two of every link, joining switch pairs into one logical switch (so STP blocks nothing), and a backup supervisor that takes over quickly.
Pairs at every layer — and what they still waste
The campus design rule is to build each layer in pairs and connect each lower switch to the next layer with two links. In the supplied figure, every access switch has an uplink to each distribution switch. That survives a link or distribution-switch failure, but two problems remain:
The two access switches do not back each other up; a host plugged into one depends on that one switch.
The redundant uplinks form loops, so STP blocks some of the bandwidth you paid for.
The improvement is to make two physical switches behave as one logical switch. Links to a logical switch can be bundled into one EtherChannel, and STP sees one link rather than a loop.
Three stages of the same switch block
Four independent switches · STP blocks uplinks
Redundant, but some uplinks carry nothing until a failure.
Every switch is managed separately. Failover depends on STP reconverging, and blocked uplinks add no capacity during normal operation.
One logical access switch · one EtherChannel per distribution switch
Each EtherChannel joins one link from A1 and one from A2. The channel to D2 can still be blocked by STP.
A1 and A2 now back each other up and bundle their uplinks. But D1 and D2 are still separate switches, so the two EtherChannels form a loop through them, and STP may block one whole channel.
Two logical switches · one multichassis EtherChannel
A multichassis EtherChannel (MEC) spans physical switches on both ends.
Between two logical switches there is no Layer 2 loop to break, so nothing is blocked. All links carry traffic, and losing one physical switch or link only reduces the channel's capacity.
StackWise: many access switches, one logical switch
Cisco StackWise / StackWise Plus joins separate physical switches with special stacking cables, daisy-chained back to the first switch to close a ring.
Up to nine physical switches can form one stack in the deck's model.
One member is the stack master: it performs management for the whole stack, which is managed through one IP address.
The deck's examples are fixed-configuration access switches such as the Catalyst 3750-E, 3750-X, and 3850.
Virtual Switching System: two chassis, one logical switch
A chassis switch has slots for line cards plus a supervisor card: the "brain" that runs management, routing protocols and the forwarding tables.
Virtual Switching System (VSS) configures two identical chassis as one logical switch, a VSS pair, joined by a virtual switch link (VSL).
One supervisor, in one chassis, controls the logical switch; the other chassis' supervisor is the redundant standby.
VSS is usually used at distribution or core. It is how you build the "logical distribution" switch in the third diagram above.
StackWise vs VSS in one lineStackWise stacks several fixed access switches with stack cables under a stack master. VSS pairs exactly two chassis over a VSL under one active supervisor. Both present one logical switch, enabling EtherChannels that span physical devices.
Supervisor redundancy modes
A chassis can hold two supervisors. The first one to boot becomes active; the other waits as standby. Redundant power supplies work the same way. The redundancy mode decides how ready the standby is: the more it prepares in advance, the faster it takes over.
Failover: Good — over 2 minutes. Reloading every module drops all ports.
RPR+ · booted standby, modules keep running
Done before the failure
Bootstrap and IOS images loaded
Startup-config synchronized
Supervisor diagnostics
Route engine initialized
Still to do after the failure
Initialize Layer 2 protocols
Initialize Layer 3 protocols
Routing protocols converge
FIB flushed and re-created
Failover: Better — over 30 seconds. Other modules are not reloaded, so switch ports retain their state.
Stateful Switchover · fully initialized standby
Done before the failure
Images loaded, diagnostics passed
Startup and running configuration synchronized
Route engine initialized
Layer 2 protocols initialized; Layer 2 state kept on both supervisors
FIB synchronized
Still to do after the failure
Initialize Layer 3 protocols
Routing protocols converge
FIB updated (not flushed)
Failover: Best — about 1 second. The switch keeps forwarding in hardware and the standby already knows every port's state, so links do not go down. NSF can also speed up the Layer 3 steps.
Mode
Standby readiness
Failover time in the deck
RPR
Partially booted; must reload other modules
Good: more than 2 minutes
RPR+
Booted with route engine ready; no Layer 2/3 protocols started
Better: more than 30 seconds
SSO
Fully booted; configurations and Layer 2 state synchronized
Best: about 1 second
The slides write RPR and RPR+ as "PRP" on one page; the correct names are Route Processor Redundancy and RPR Plus. The times are the slides' rough figures for comparison.
Nonstop Forwarding and the RIB vs FIB question
Table
Built by
Used for
RIB Routing Information Base
Routing protocols and static/connected routes — the control plane's routing table
Choosing best routes
FIB Forwarding Information Base
Cisco Express Forwarding (CEF), built from the RIB. A separate adjacency table stores the next hop's MAC address.
Forwarding packets in hardware — the data plane
Nonstop Forwarding (NSF) works together with SSO. The standby already has a copy of the FIB, so packets keep being forwarded during the switchover. The new active supervisor then rebuilds its routing table (RIB). Neighbors that support NSF ("NSF-aware") do not drop the neighbor relationship; they simply send their routes again. Supported routing protocols: BGP, EIGRP, OSPF and IS-IS.
The slide spells these “NFS” and “EIRP”; the correct names are NSF and EIGRP.
Check yourself: a network team wants links to stay up during a supervisor failure. Which mode?
SSO. It keeps Layer 2 and interface state on both supervisors, so links do not flap; add NSF so routed forwarding continues while routing protocols recover. RPR reloads every module, and RPR+ still has to initialize Layer 2 and Layer 3 protocols.
Check yourself: why does a logical switch improve on two separate switches with STP?
The redundant links become one EtherChannel to one logical device, so there is no Layer 2 loop for STP to block. All links forward, and a physical member failure only reduces channel capacity instead of waiting for STP reconvergence.
Exam answer to rememberPair devices and links at each layer; make pairs logical (StackWise at access, VSS at distribution/core) so multichassis EtherChannels replace STP-blocked links. Inside a chassis, supervisor redundancy ranges from RPR (slowest, reloads modules) through RPR+ to SSO (fastest, state synchronized), and NSF keeps forwarding while routing recovers.
20
Introduction to Quality of Service
Marking · Policing · Queuing · WRED
Quality of Service (QoS) is the set of methods a network uses to protect and prioritize time-critical or important traffic. It classifies traffic, marks it, limits its rate, and decides what to queue, send first, or drop when a link is congested.
Different traffic, different requirements
Requirement
Data
Voice
Video
Bandwidth
High
Low
High
Delay
Not critical beyond a few ms
< 150 ms
< 150 ms for real-time video
Jitter
Not applicable
Low
Low
Packet loss
< 5%
< 1%
< 1%
Availability
High
High
High
Inline power
No
Optional
Optional for some devices
Security
High
Medium
Low or medium
Provisioning effort
Medium
Significant
Medium
Jitter is variation in delay: packets sent at even intervals arrive unevenly. Typical acceptable jitter in the deck: VoIP < 30 ms, video conferencing 30–50 ms, online gaming < 30 ms, streaming media < 100 ms, general data around 100 ms or higher.
Traffic
Shape
Packets
Sensitivity
Transport
Data
Steady or bursty
Average about 300 bytes
Drop- and delay-insensitive
TCP retransmits losses
Voice
Steady
Small, 480 bytes or less
Drop- and delay-sensitive
UDP; needs priority
Video
Bursty, mostly variable bit rate
Large, 800–1500 bytes
Drop- and delay-sensitive
UDP; needs priority
VDI (virtual desktop)
Steady or bursty
Mix of large and small
Drop- and delay-sensitive
TCP (RDP, ICA) or UDP (PCoIP)
What QoS is for
Control over resources — for example, stop low-priority traffic from monopolizing a link.
More efficient use of resources — measure traffic, then decide how each class is handled.
Tailored services — offer different service grades to different customers or applications.
Coexistence of mission-critical applications — critical applications get the most efficient use of the network.
QoS deals with congestion. It fights three problems: delay (latency), jitter (changing delay), and packet loss. QoS cannot add bandwidth; it decides which traffic waits or is dropped when the link is full.
Three service models
Model
Guarantee
How it works
Best effort
None
Every packet treated alike; one FIFO queue.
IntServ Integrated Services
Hard QoS
Resources for each flow are reserved explicitly along the whole path (signaled per flow, e.g. with RSVP).
DiffServ Differentiated Services
Soft QoS — no hard guarantee
Traffic is grouped into classes; some classes receive preferential treatment at each hop.
Campus switches use DiffServ because it scales: each switch only reads the packet's marking and does not need to keep a reservation for every conversation.
The Cisco switch QoS pipeline
Classify each incoming packet: decide what kind of traffic it is and give it an internal DSCP value.
Police: compare the traffic with its allowed rate; traffic above the rate is dropped or given a lower marking.
Mark (or re-mark) the packet's QoS field.
Choose a transmit queue for the egress interface.
Congestion management decides which queue sends next; congestion avoidance (WRED) drops some packets early, before a queue is full.
Without a congestion-avoidance mechanism, a queue simply drops new packets when it is full.
Where the markings live: CoS, IP Precedence, DSCP
Marking
Layer
Location
Bits
Values
CoS Class of Service
2
802.1Q tag (user priority) — exists only on tagged frames
3
0–7
IP Precedence
3
Top 3 bits of the IPv4 ToS byte (P2–P0)
3
0–7
DSCP Differentiated Services Code Point
3
Top 6 bits of the same byte (DS5–DS0)
6
0–63
The last 2 bits of that byte are Explicit Congestion Notification (ECN). (The slide says "the last 2 bits of DSCP"; they actually come after the 6 DSCP bits.) IP Precedence is just the first 3 bits of DSCP, so IPP 5 = 101 becomes DSCP 101000 = 40. In short: DSCP = IPP × 8. DSCP is the main marking used in enterprise networks.
Worked example: a Cisco IP phone marks voice DSCP 46 = 101110. Its top three bits 101 are IP Precedence 5, and the phone also uses CoS 5.
Per-hop behaviors (the homework)
PHB
DSCP
Treatment
Default
0 (000000)
Best effort.
EF · Expedited Forwarding
46 (101110)
Low delay, low jitter, low loss — voice payload, served from a priority queue.
AF · Assured Forwarding (RFC 2597)
AFxy = 8x + 2y
Four classes (queues) x = 1–4, each with three drop priorities y = 1–3. Higher x = better queue; higher y = dropped sooner under congestion.
CS · Class Selector
CSn = 8n
Backward compatible with IP Precedence: only the top 3 bits are set (CS5 = 40).
Queue
Drop 1 (low)
Drop 2
Drop 3 (high)
Class 4 · best
AF41 = 34
AF42 = 36
AF43 = 38
Class 3
AF31 = 26
AF32 = 28
AF33 = 30
Class 2
AF21 = 18
AF22 = 20
AF23 = 22
Class 1 · worst
AF11 = 10
AF12 = 12
AF13 = 14
Decode AF from binaryb5 b4 b3 b2 b1 b0: b5b4b3 is the class, b2b1 is the drop priority, b0 is always 0. Example: 011100 → class 011 = 3, drop 10 = 2 → AF32; all six bits as decimal → DSCP 28.
Trust boundaries and default maps
Inside the switch, every packet gets an internal DSCP. By default, ports are untrusted: the switch ignores the packet's marking and uses DSCP 0. A port set to trust DSCP keeps the packet's own DSCP. A port that trusts CoS or IP Precedence converts that value to DSCP using this table:
CoS or IP Precedence
0
1
2
3
4
5
6
7
Default internal DSCP
0
8
16
24
32
40
48
56
Example from the slides: a host sends CoS 5. On a port that trusts CoS, the internal DSCP becomes 40; on an untrusted port it becomes 0. Note that CoS 5 becomes 40, not 46 (EF), so for voice you trust DSCP instead or change the map.
Ways to classify: trust the marking arriving on a port; set one fixed value for everything on a port; match packets with an ACL; or recognize applications with Network-Based Application Recognition (NBAR).
Classify as close to the user as possible — normally at the access switch — so every switch after it can simply trust the marking.
Marking means writing a new DSCP, CoS or IPP value into incoming packets, for a whole port or with a policy map. Example: mark everything from a video server as DSCP 40.
Shaping vs policing
Shaping
Policing
Excess traffic
Delays (buffers) it to stay within the rate
Drops or re-marks it immediately
Effect on bursts
Smooths them into a steady flow; fewer drops downstream
Cuts them at the configured rate (burst size allows some)
Adds delay?
Yes
No
Good fit
Bursty TCP leaving your network toward a slower ISP link
Enforcing a hard limit, for example on traffic arriving from users at the access switch
Poor fit
Delay-sensitive voice and video
Traffic that cannot tolerate loss when it exceeds the rate
The slides' "leaky token bucket": each arriving packet pours tokens (equal to its size) into a bucket. The bucket drains at the configured rate, and its size is the burst allowed. If a packet would make the bucket overflow, traffic is arriving too fast: that packet is out of profile and is dropped or re-marked. A policer can act as a dropper (traffic within the CIR is sent, the rest dropped) or as a marker (within CIR = AF11, between CIR and PIR = AF12, above PIR = AF13).
Congestion management: queuing and scheduling
Mechanism
How it schedules
Key point
FIFO
One queue, first come first served, tail drop when full
Default; no classification, not QoS-enabled
WRR · Weighted Round Robin
Visits each egress queue in turn; a queue's weight sets its share
Higher weight = a bigger share of the bandwidth
Priority queuing
The priority queue is served first; WRR weights are ignored for it
Usually one strict-priority egress queue, for voice
Custom queuing
Reserves a percentage of bandwidth per traffic type; unused share can be borrowed
Used on WAN links. The shares are fixed and do not adapt, so it is not recommended for fast WAN links
WRR example: four queues with weights 50, 10, 25, 15 (total 100) get 50%, 10%, 25% and 15% of the bandwidth. If the weights do not add up to 100, a queue's share is its weight ÷ the total. Buffer memory is split too: priority queues get little (voice packets are small and leave immediately), while low-priority queues get more because their traffic waits longer.
LLQ (Low-Latency Queuing) is Cisco's name for adding one strict-priority queue to class-based queuing (CBWFQ): voice is always sent before packets in the other queues.
Congestion avoidance: tail drop, RED, WRED
Tail drop, the default, drops every arriving packet once the queue is full. That hurts TCP: many sessions lose packets together and enter slow start together (TCP synchronization), aggressive flows can monopolize the queue, deep queues add delay and jitter, and premium traffic is dropped just like best effort.
RED (Random Early Detection) drops a few packets at random before the queue is full; the fuller the queue, the more it drops. Only some TCP senders slow down each time, at different moments, so the link stays busy instead of every flow slowing down together. Once the queue is completely full, tail drop happens anyway. RED only helps TCP, because TCP slows down after a loss; UDP does not.
WRED (Weighted RED) adds classification: each IP Precedence or DSCP value can have its own minimum threshold, maximum threshold, and drop probability. Deck example for one queue: at 50% full, randomly drop DSCP 0–20 (best effort); at 80%, also drop DSCP above 20 (up to 31); when full, tail drop.
Best practicePut high-priority, delay-sensitive traffic in a strict priority queue and use WRR for the others; apply WRED to the remaining data queues. Use WRED on highly congested interfaces, especially WAN links between data centers.
AutoQoS: one command makes the switch create standard QoS classes and policies (for example for voice) automatically.
Check yourself: a packet arrives marked DSCP 30. What is it and how is it treated?
30 = 011110: class 011 = 3, drop 11 = 3 → AF33. It uses the class 3 queue with the highest drop priority, so WRED drops it before AF31 and AF32 traffic in that queue.
Check yourself: voice through a shaper — good idea?
No. Shaping buffers excess traffic, adding delay and jitter. Give voice a strict priority queue and police the priority class so it cannot starve the others.
Exam answer to rememberDiffServ classifies and marks at the edge (DSCP 6 bits, CoS 3 bits, IPP 3 bits), trusts markings only at the trust boundary, polices or shapes rates, schedules queues (priority for voice, WRR for the rest), and uses WRED instead of tail drop so TCP flows back off gradually.
21
Monitoring
Syslog · NTP · SNMP · SPAN
Monitoring answers “what happened, when, and what is flowing now.” Switches log events with syslog, keep the timestamps correct with NTP, report counters and alerts through SNMP, and mirror traffic to an analyzer with SPAN or RSPAN.
Syslog message format
00:30:39: %SYS-5-CONFIG_I: Configured from console by console
! timestamp facility-severity-mnemonic message text
Memory hook for 0–7: Every Awesome Cisco Engineer Will Need Ice-cream Daily.
Where messages go
Console, internal buffer, timestamps
! Console: on by default at debugging (7); seen only when connected to the console port
logging console warnings ! same as: logging console 4 — shows 0–4! Internal buffer: off by default; keeps messages to review later
logging buffered informational ! level 6 and more severe
logging buffered 16384 ! size in bytes, 4096–2147483647
show logging
! Clock-time stamps with every option
service timestamps log datetime localtime show-timezone msec year
! …or time since boot, e.g. 2w5d
service timestamps log uptime
A level can be typed as its number or keyword: logging console 4 and logging console warnings are the same, displaying levels 0–4 and suppressing 5–7.
! datetime timestamps
Nov 10 13:55:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/1, changed state to down
! uptime timestamps
00:17:58: %AMDP2_FE-6-EXCESSCOLL: Ethernet3/3 TDR=0, TRC=0
Correct time: the clock and NTP
A datetime stamp is only useful if the switch clock is right. After boot the clock starts at March 1, 1993.
Clock and time zone
show clock
Switch# clock set 15:30:00 20 October 2026 ! privileged EXEC, not config mode
Switch(config)# clock timezone ICT 7 ! Thailand, UTC+7
Switch(config)# clock timezone IST 5 30 ! India, UTC+5:30 — minutes are optional
Day is 1–31, month is a name (January…), year is 1993–2035, the hour offset is −23…23 and the minute offset 0–59.
Network Time Protocol (NTP) synchronizes many devices to common time servers:
NTP client configuration and verification
ntp server 200.1.1.10 prefer ! preferred source
ntp server 200.1.1.240 version 4 ! version 3 is the default; 4 adds IPv6
show ntp status
show ntp associations
IOU3# show ntp status
Clock is synchronized, stratum 4, reference is 200.1.1.10
IOU3# show ntp associations
address ref clock st when poll reach delay offset disp
+~200.1.1.240 127.127.1.1 5 90 128 377 0.000 0.000 2.850
*~200.1.1.10 127.127.1.1 3 25 128 377 1.000 0.500 2.537
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
Homework question
Answer
Stratum
Distance from the reference clock. A device attached directly to a reference clock is stratum 1; each NTP hop adds 1; stratum 16 means unsynchronized. Lower is closer to the source.
* in associations
sys.peer: the server the clock is synchronized to now. Here 200.1.1.10 at stratum 3, which is why IOU3 reports stratum 4.
+ in associations
Candidate: a usable server that could be selected. Here 200.1.1.240 at stratum 5.
~
Configured with ntp server. # selected, - outlier, x falseticker (disagrees, not trusted).
In the running configuration, 200.1.1.10 is also marked prefer. Because it is preferred and has the lower stratum, the switch synchronizes to it. reach 377 means the last eight polls all succeeded.
SNMP: manager, agent, MIB
SNMP manager — a network management system, usually a central application, that polls devices and receives alerts. Examples: Cacti, Munin.
SNMP agent — a process on the monitored device.
MIB (Management Information Base) — the device's database of variables, kept in memory and updated in real time, organized as a tree. Each variable has an OID (object identifier), defined with ASN.1.
Example OID: 1.3.6.1.2.1.2.2.1.10 = iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).interfaces(2)… — the inbound-byte counter of an interface in the IF-MIB. Vendor MIBs live under private(4).enterprise(1): Cisco is .9, Microsoft .311, Juniper .2636.
Operation
Direction
Port
Purpose
Get
Manager → agent
UDP 161
Read one MIB variable
Get-next
Manager → agent
UDP 161
Read the next variable in the tree (used to walk through a table)
Get-bulk
Manager → agent
UDP 161
Read a whole table or list (v2c and later)
Set
Manager → agent
UDP 161
Write a MIB variable
Trap
Agent → manager
UDP 162
Unsolicited alert, not acknowledged
Inform
Agent → manager
UDP 162
Unsolicited alert the manager must acknowledge (v2c and later)
Version
Authentication
Data protection
Distinguishing features
SNMPv1 (RFC 1157)
Community string
None
Simple get/set and traps; 32-bit counters
SNMPv2c (RFC 1901)
Community string
None
Adds get-bulk and inform; 64-bit counters
SNMPv3 (RFCs 3410–3415)
Username (users in groups)
HMAC with SHA or MD5; DES, 3DES or AES-128/192/256 encryption
Authentication, integrity, encryption, and restricted views
SNMPv3 level
Keyword
Authenticated
Encrypted
noAuthNoPriv
noauth
no
no
authNoPriv
auth
yes
no
authPriv
priv
yes
yes
Best practiceUse SNMPv3. If SNMPv1 is unavoidable, make it read-only and restrict it with an access list. A community string travels in clear text.
SNMPv1 / v2c configuration
access-list 10 permit 192.168.3.99 ! optional ACL, numbered 1–99
snmp-server community NETRO ro 10 ! read-only, limited by ACL 10
snmp-server community NETRW rw 10 ! read-write (avoid with v1)
snmp-server host 192.168.3.99 NETRO ! v1 traps
snmp-server host 192.168.3.99 NETRO snmp ! v1 traps, only the snmp trap type
snmp-server host 192.168.3.99 version 2c NETRO ! v2c traps
snmp-server host 192.168.3.99 informs version 2c NETRO ! v2c informs
SNMPv3 configuration and the supplied example
! Optional view: let the group read only the interfaces subtree
snmp-server view IFONLY 1.3.6.1.2.1.2 included
snmp-server group READERS v3 auth read IFONLY ! authNoPriv, restricted view! Supplied example: only 192.168.3.99 and 192.168.100.4 may poll
access-list 10 permit 192.168.3.99
access-list 10 permit 192.168.100.4
snmp-server group NetOps v3 priv
snmp-server user mymonitor NetOps v3 auth sha s3cr3tauth priv aes 128 s3cr3tpr1v 10
snmp-server host 192.168.3.99 informs version 3 priv mymonitor
Read it as: group NetOps requires authPriv; user mymonitor authenticates with SHA and encrypts with AES-128, limited by ACL 10; informs go to 192.168.3.99 at the priv level. Without a view, every MIB variable is visible. Other levels: snmp-server group G1 v3 noauth (noAuthNoPriv) and snmp-server group G2 v3 auth (authNoPriv); MD5 can replace SHA, and DES or 3DES can replace AES. The deck writes the view keywords as include/exclude; IOS uses included/excluded.
Port mirroring: SPAN and RSPAN
Switched Port Analyzer (SPAN) copies traffic from source ports or VLANs to a destination port where a network analyzer (sniffer) captures it. Normal forwarding is unchanged.
Local SPAN
Remote SPAN (RSPAN)
Source and destination
Same switch (or one logical switch)
Different switches
Transport
Inside the switch
A special-purpose RSPAN VLAN carried over trunks
Use when
The analyzer can be plugged in at the source switch
The analyzer is elsewhere in a large or spread-out network
Local SPAN
! Supplied example: mirror Gi1/0/1 to the analyzer on Gi1/0/48
monitor session 1 source interface gigabitethernet1/0/1 both
monitor session 1 destination interface gigabitethernet1/0/48
! A VLAN as the source, received traffic only, keeping tags
monitor session 2 source vlan 10 rx
monitor session 2 destination interface gigabitethernet1/0/47 encapsulation replicate
rx = traffic received on the source, tx = traffic sent, both = default. Keep ports and VLANs in separate sessions. By default the copies lose their VLAN tags and do not include the switch's own control frames (BPDUs, CDP, VTP, DTP, PAgP). Add encapsulation replicate to keep the tags and include those frames.
Safety and capacitySTP is disabled on a local SPAN destination port, so never connect a SPAN destination back into an active network — use RSPAN to move mirrored traffic between switches. If the sources carry more than the destination port can send, some mirrored frames are dropped and never reach the analyzer.
Switches do not learn MAC addresses in the RSPAN VLAN. The copies still carry the real hosts' MAC addresses, so with normal learning a switch could send them to the real host. Instead, they are flooded through VLAN 99 until they reach the analyzer.
The middle switch (B) needs no monitor session — only VLAN 99. Allow VLAN 99 on the trunks between the switches, but never put it on an access port.
VTP can carry the RSPAN VLAN to every switch, and VTP pruning keeps it off unnecessary trunks.
Verify and remove sessions
show running-config | include monitor
show monitor ! every session
show monitor session 1 detail
show monitor session remote ! RSPAN sessions only
no monitor session 1 ! remove one session
no monitor session all ! or: no monitor session local
Check yourself: logging console 3 is configured. Will “%LINEPROTO-5-UPDOWN” appear on the console?
No. Level 5 is less severe than the threshold 3, so only levels 0–3 appear. Lowering the number shows fewer messages.
Check yourself: why must intermediate RSPAN switches also have VLAN 99 with remote-span?
Because the copies travel through those switches inside VLAN 99. If VLAN 99 is missing on switch B, the copies are dropped there and never reach the analyzer.
Exam answer to rememberSyslog = timestamp + facility-severity-mnemonic + text; lower severity number = worse, and a threshold shows itself and everything lower. NTP fixes time, with stratum counting hops from the reference. SNMP: manager polls agents on UDP 161, agents alert on UDP 162; v3 adds users, authentication, and encryption. SPAN mirrors locally; RSPAN carries mirrors in a remote-span VLAN.
22
Basic Security
CIA · Firewall · DMZ · IPS · NGFW
Security protects three properties of data: availability, integrity, and confidentiality. At the network edge, a firewall enforces which connections may cross between zones, a DMZ holds public servers, and an IPS looks inside traffic for known attacks.
The CIA (AIC) triad
Property
Meaning
Example threat
Availability
Data and services can be reached reliably and on time.
A denial-of-service (DoS) flood
Integrity
Only authorized people or systems can change data.
Altered configuration or records
Confidentiality
Only authorized people or systems can access data.
Eavesdropping on unencrypted traffic
Connect it to earlier topics: HA and HSRP serve availability; SNMPv3 authentication serves integrity; SNMPv3 encryption and SSH serve confidentiality.
Firewall
A firewall sits inline in the forwarding path between the internal network and the external network, so every packet crossing the edge passes through it. It chooses which packets to allow and which to discard, using rules that can match:
source and destination addresses;
transport-layer port numbers;
text in an HTTP request's URI;
TCP connection state — a stateful firewall remembers connections and allows the return traffic of sessions started from inside.
Security zones and the DMZ
Connections are judged by which zone initiates them. Return traffic of an allowed session is permitted by the stateful firewall.
A demilitarized zone (DMZ) is a less-secured zone for servers that outside users are allowed to reach, such as the public web servers for www.example.com. If a DMZ server is compromised, the attacker still has to pass the firewall to reach the inside zone.
IPS: matching attack signatures
A firewall filters by rules the administrator writes. An Intrusion Prevention System (IPS) uses different logic: it compares traffic with attack signatures — patterns of known attacks such as DoS, DDoS, viruses, and worms — and can drop matching packets or redirect them to another security application. An IPS is also placed inline between the external and internal networks. Its signature database must be kept updated.
One figure caption in the deck says “IDS.” An IDS (intrusion detection system) usually monitors a copy of traffic — for example from a SPAN port — and alerts, while an IPS sits inline and can block. The figure shows the inline IPS.
Next-generation firewall and IPS
Device
Adds beyond the traditional device
NGFW Next-Generation Firewall
All traditional firewall functions, plus Application Visibility and Control (AVC) that examines application data, advanced malware protection, URL filtering, and NGIPS capability.
NGIPS Next-Generation IPS
Traditional IPS functions, plus AVC, contextual awareness (information gathered from hosts to judge their vulnerabilities), reputation-based filtering (groups of known-malicious URLs and IP addresses), and event impact levels to rank alerts.
The deck's product examples are Cisco ASA 5500-X with FirePOWER Services and Firepower 1000/2100/4100/9000 appliances, NGIPSv for VMware, and Firepower Threat Defense for ISR routers. Know the functions; product names are context.
Question
Firewall
IPS
Decision basis
Administrator rules: addresses, ports, URI, session state
Attack signatures (and reputation/context in NGIPS)
Placement
Inline at the edge
Inline at the edge
Must stay current?
Rules change with policy
Signatures must be updated continuously
Check yourself: where should a public web server go, and who may start connections to it?
In the DMZ. Outside users may initiate connections to it; outside users may not initiate connections to the inside zone. Inside users may initiate connections outward, and the stateful firewall allows the replies.
Check yourself: a new worm uses an allowed port. Which device can stop it?
An IPS (or NGIPS/NGFW) with an updated signature for that worm. A traditional port-based firewall rule allows it because the port is permitted.
Exam answer to rememberCIA = availability (reachable), integrity (only authorized changes), confidentiality (only authorized access). A stateful firewall sits inline and filters by address, port, URI, and session state; the DMZ holds servers reachable from outside; an IPS sits inline and blocks by signature; NGFW/NGIPS add application visibility, malware protection, URL/reputation filtering, and context.
Labs
LAB 01–LAB 13 in original numbering. IPv4 subnetting is a separate review, not a numbered lab.
Lab
Title
Platform / kit
Technical focus
REVIEW
IPv4 Subnetting
Manual
/24–/30 addressing
LAB 01
Basic Switch
Packet Tracer · 2 × 2960
SSH · management SVI · port security
LAB 02
VLAN and 802.1Q
Packet Tracer · 2 × 2960
access ports · trunk · tag inspection
LAB 03
VTP
Packet Tracer · 4 × 2960
server · client · transparent
LAB 04
EtherChannel with LACP
Packet Tracer · 2 × 3650
active/passive bundles
LAB 05
Inter-VLAN Routing
Packet Tracer · 1941 · 2960 · 3650
router-on-a-stick · L3 switch · OSPF
LAB 06
Private VLAN
GNS3 · L2/L3 IOU · VPCS
community · isolated · promiscuous
LAB 07
Determine Spanning Tree
Manual
root and port-role calculation
LAB 08
Verifying Spanning Tree
Packet Tracer · 4 × 2960
PVST+ output
LAB 09
Configuring Spanning Tree
Packet Tracer · 4 × 2960
priorities · root primary
LAB 10
STP with Topology Changes
Packet Tracer · 4 × 2960
convergence · PortFast
LAB 11
Rapid Spanning Tree
Packet Tracer · 4 × 2960
RSTP · backward compatibility
LAB 12
Multiple Spanning Tree
GNS3 · 4 × IOU
regions · instances · cost
LAB 13
DHCP
Packet Tracer · L3 switch · router
pools · exclusions · SLAAC
REVIEW
IPv4 Subnetting
IPv4 · prefixes · manual calculation
The entry check. Every lab after this one hands you a prefix and expects you to know instantly which addresses are legal.
Objective
Given any address and prefix, produce the network address, broadcast address, usable host range, and host count — without a calculator. Then do it backwards: given a host requirement, choose the prefix.
The only table you need to memorise
Prefix
Mask (last octet)
Block size
Usable hosts
/24
0
256
254
/25
128
128
126
/26
192
64
62
/27
224
32
30
/28
240
16
14
/29
248
8
6
/30
252
4
2
Block size = 256 − mask octet. Usable = block − 2 (network + broadcast). A /30 giving exactly 2 hosts is why router-to-router links use it — see Lab 05.
The four-step method
Find the interesting octet — the one the prefix cuts through. /25–/30 cuts octet 4, /17–/24 cuts octet 3.
Block size = 256 − that octet's mask value.
Count up in blocks from 0 until you pass the host address. The last multiple you did not pass is the network address.
Broadcast = next network − 1. Usable = network + 1 through broadcast − 1.
▸ worked examples, taken from the later labs
192.168.56.130/25 ! Lab 01 — PC1
mask 255.255.255.128 → block 128 → boundaries 0, 128
130 sits in the 128 block
network 192.168.56.128
usable 192.168.56.129 – 192.168.56.254
broadcast 192.168.56.255
! so PC1 .130, PC2 .131, swA .251, swB .252 are ALL one subnet — they can ping
192.168.100.1/30 ! Lab 05 — router-to-L3-switch link
mask 255.255.255.252 → block 4 → boundaries 0, 4, 8 ...
network 192.168.100.0
usable 192.168.100.1 – 192.168.100.2 ! exactly two: rC and swB
broadcast 192.168.100.3
192.168.10.5/24 ! Lab 08 — PCA
network 192.168.10.0 · usable .1 – .254 · broadcast .255
Traps
The mask is written /25 but typed 255.255.255.128. Packet Tracer wants the dotted form on PCs and the dotted form on ip address lines.
A switch management IP lives on interface vlan 1, not on a physical port — see Lab 01.
Two addresses in the same /24 are not automatically in the same subnet if the mask is longer. Always compute the network address before assuming reachability.
Point-to-point links take /30 (or /31 on real gear). Using /24 there wastes 252 addresses.
Why it mattersEvery subsequent lab silently assumes this. Lab 01 fails to ping if you read /25 as /24. Lab 05's OSPF adjacency will not form if the /30 is wrong on either end. This lab is short because it is a gate, not a topic.
LAB 01
Basic Switch
Packet Tracer 9.0 · SSH · Port Security
Two switches, two PCs, and locking the switch down so only SSH gets in.
Objective
Configure a switch from bare metal with the commands you will type in every lab from here on: hostname, secrets, local users, SSH, password encryption, a management IP, and port security.
/25 → mask 255.255.255.128 → subnet 192.168.56.128–255. All four devices sit inside it, so everything can ping everything.
Steps, as the sheet numbers them
Open the supplied topology file with Packet Tracer 9.0.
Set both PC IPs from the figure. Check the real interface names in the file — they are not always Fa0/1.
Hostnames swA and swB as shown.
enable secret netdes.
Console line password netdes, without a username — plain password + login.
Create user student with secret netdes.
vty 0–4: authenticate against that username (login local) and accept SSH only.
Encrypt all remaining plaintext passwords.
Management IPs: swA .251, swB .252, both /25, on interface vlan 1, and no shutdown it.
Enable SSH properly: domain cpe.eng.cmu.ac.th, RSA key 2048, version 2.
swA Fa0/1 and swB Fa0/2 → access mode.
Port security on swA Fa0/1, then switch it to the sticky option.
Ping PC1 → swA, swB, PC2. All four must succeed.
Verify with show commands, then copy running-config startup-config on both.
▸ complete config — swA
enable
configure terminal
hostname swA
enable secret netdes
!
line console 0 ! step 5 — no username here
password netdes
login
exit
!
username student secret netdes ! step 6
!
ip domain-name cpe.eng.cmu.ac.th ! step 10 — must come BEFORE the key
crypto key generate rsa
How many bits in the modulus [512]: 2048
ip ssh version 2
!
line vty 0 4 ! step 7
login local
transport input ssh
exit
!
service password-encryption ! step 8
!
interface vlan 1 ! step 9
ip address 192.168.56.251 255.255.255.128
no shutdown
exit
!
interface FastEthernet0/1 ! steps 11–12
switchport mode access
switchport port-security
switchport port-security mac-address sticky
exit
!
end
copy running-config startup-config
▸ complete config — swB (differences only)
hostname swB
!
interface vlan 1
ip address 192.168.56.252 255.255.255.128
no shutdown
!
interface FastEthernet0/2 ! swB's access port is Fa0/2, not Fa0/1
switchport mode access
!
! everything else — secret, console, user, SSH, encryption — is identical to swA
Verify — the exact line to read
Command
What proves it worked
show ip ssh
SSH Enabled - version 2.0. If it says disabled, the RSA key never generated — check the domain name.
show port-security interface Fa0/1
Port Security : Enabled, Maximum MAC Addresses : 1, Sticky MAC Addresses : 1 once PC1 has sent a frame.
show run | include sticky
The learned MAC now sits inside the running config as a static line — that is what "sticky" means.
show mac address-table
PC MACs appear as DYNAMIC; the sticky one appears as STATIC.
show ip interface brief
Vlan1 … up up with the right address. Down means you forgot no shutdown.
Review checks
The mask for /25 typed out: 255.255.255.128. Both PCs and both switches are inside one subnet.
SSH needs three ingredients before the key will generate: hostname (not "Switch"), ip domain-name, then crypto key generate rsa. Miss one and SSH silently stays off.
transport input ssh is what actually blocks Telnet. login local only chooses which credentials.
service password-encryption hides type-7 passwords (console, vty). It does not touch enable secret — that is already a type-5 hash.
Sticky learns the MAC once and writes it to the config; a different PC on that port triggers a violation.
In the real worldThis config is the first five minutes of every switch that ever gets racked. Console password for the person standing in front of it, SSH-only for everyone else, and port security on the access ports so a student cannot unplug a printer and hang a rogue AP off the wall socket.
LAB 02
VLAN and 802.1Q Tag Inspection
VLAN · 802.1Q · Verification · Packet Tracer
Split two rooms into two broadcast domains, then open a real frame in Simulation mode and find the tag with your own eyes.
Objective
Configure VLANs across a trunk between two switches — and then prove the tag exists by decoding TPID and TCI out of a captured frame. Part 1 is configuration; Part 2 is frame analysis.
Topology & addressing
Room 402 · swA Gi0/1═ trunk ═Gi0/2 swB · Room 413
PC
Switch · port
VLAN
IPv4
IPv6
PC0
swA Fa0/1
261 staffs
192.168.10.11/24
CAFE:10::11/64
PC1
swB Fa0/3
261 staffs
192.168.10.12/24
CAFE:10::12/64
PC2
swA Fa0/2
434 students
192.168.20.21/24
—
PC3
swB Fa0/4
434 students
192.168.20.22/24
—
Part 1 — configure
Build the topology. Think about cable types before you drag: PC↔switch straight, switch↔switch cross.
Set all four PC addresses, including the two IPv6 addresses on PC0 and PC1.
Create the VLAN database on both switches: 261 staffs, 434 students.
Trunk, in this order: switchport trunk encapsulation dot1qfirst, then switchport mode trunk. If the switch rejects the encapsulation command, that model only speaks dot1q anyway — skip it.
Ping inside a VLAN: PC0→PC1 and PC2→PC3. Both must work.
Ping across VLANs: PC0→PC2. This must fail — that is the point of the lab, not a mistake.
Read the VLAN show commands, answer Part 1 of the sheet.
Press Show All/None so the packet list is populated.
Edit Filters → untick everything, then tick only ICMP under IPv4.
Choose Add Simple PDU, click PC0 (source) then PC1 (destination).
Press Play. Wait until PC1 replies to PC0, then press Play again to stop.
In the event list find the row where Last Device = PC0 and At Device = swA.
Click the ICMP square to open the packet, then the Outbound PDU Details tab — this is the frame leaving swA on the trunk, so it carries the tag.
Read TPID and TCI and answer Part 2.
Decoding the tag
The 802.1Q tag is 4 bytes inserted after the source MAC.
TPID is always 0x8100 — it is the flag that says "a tag follows".
TCI is the next 16 bits, split PRI (3) · CFI/DEI (1) · VLAN ID (12).
With default priority 0 and CFI 0, the TCI is just the VLAN number in hex:
VLAN 261 = 0x105 → TCI 0x0105 · VLAN 434 = 0x1B2 → TCI 0x01B2.
12 bits is why the VLAN range stops at 4094: 0 and 4095 are reserved.
Review checks
TPID value — 0x8100, fixed, never changes.
Convert the VLAN ID to hex and back. Practise 261 ↔ 0x105 and 434 ↔ 0x1B2 until it is instant.
The tag exists only on the trunk. The frame arriving at PC1 has already been stripped — inspect at the switch, not the PC.
The native VLAN crosses the trunk untagged, and must match on both ends or traffic leaks between VLANs.
Cross-VLAN ping failing is correct behaviour. Fixing it needs a router — that is Lab 05.
Frame grows by 4 bytes, so the maximum tagged frame is 1522, not 1518.
LAB 03
VTP
VTPv2 · Server · Client · Transparent
Four switches, three modes. Create one VLAN at a time and watch exactly where it does and does not appear.
Objective
Configure VTP server, client and transparent modes, and verify propagation with show commands. The lab is designed as five separate experiments — each one creates a VLAN on a different switch and asks you where it landed.
Topology — a 4-floor building
Switch
Floor
VTP mode
Trunk to
swA
5th
server
Gi0/2 → swB Gi0/1 · Gi0/1 → swC Gi0/1
swB
4th
client
Gi0/1 → swA Gi0/2
swC
6th
transparent
Gi0/1 → swA · Gi0/2 → swD Gi0/1
swD
7th
server
Gi0/1 → swC Gi0/2
Domain ENG · password 261434 · VTP version 2 on all four. Catalyst 2960.
Steps, as the sheet numbers them
Configure the trunk interfaces shown in the figure.
All switches: VTP version 2, the mode from the figure, domain ENG, password 261434.
On swA: create VLAN 30 bachelor and VLAN 40 grad. Verify on all four.
On swC: create VLAN 100 faculty. Verify on all four.
Verify VTP with the show commands.
Verify VLANs on all switches → answer Q1–4.
On swD: create VLAN 50 guests → answer Q5–8.
On swC: create VLAN 200 CMU → answer Q9–12.
On swB: create VLAN 80 visitors → answer Q13.
▸ commands
! ---- every switch: trunk first, VTP second ----
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp version 2
vtp domain ENG
vtp password 261434
vtp mode server ! swA and swD! vtp mode client ! swB! vtp mode transparent ! swC
!
! ---- swA (server) ----
vlan 30
name bachelor
vlan 40
name grad
!
! ---- swC (transparent) ----
vlan 100
name faculty
!
! ---- verification ----
show vtp status ! mode, domain, revision, version
show vtp password
show vlan brief ! run this on ALL FOUR after each step
What actually happens — the whole lab in one table
Created on
VLAN
swA
swB
swC
swD
swA server
30, 40
yes
yes
no
yes
swC transparent
100
no
no
yes
no
swD server
50
yes
yes
no
yes
swC transparent
200
no
no
yes
no
swB client
80
rejected — cannot be created at all
The transparent switch is the trick: swC keeps its own VLANs private, but still forwards other switches' advertisements through itself. That is why swD receives VLAN 30/40 from swA even though swC — sitting between them — never installs them.
Review checks
Client mode cannot create VLANs. swB answers with VTP VLAN configuration not allowed when device is in CLIENT mode. That is the whole of Q13.
Transparent = local VLAN database, revision stays 0 forever, but it relays advertisements for its domain.
Both servers can create, and each change increments the revision number. Highest revision in the domain wins — which is how a wrongly-configured switch can wipe a production VLAN database.
Domain name and password must match exactly, case-sensitive, or nothing propagates and no error appears.
VTP only carries the VLAN database. It never carries port assignments — switchport access vlan is always local.
show vtp status is where the mode, domain, revision and version all live. Learn to read it in one glance.
In the real worldMost networks now run VTP transparent or turn VTP off entirely. One switch with a high revision number and a stale database, plugged in by a well-meaning technician, can delete every VLAN in a campus. This lab is teaching you the failure mode as much as the feature.
LAB 04
EtherChannel with LACP
LACP · EtherChannel · Catalyst 3650
Three cables between two switches. Before bundling, STP throws two of them away. After bundling, all three carry traffic. Same wires, triple the bandwidth.
Objective
Configure an EtherChannel using LACP, verify it with show commands, and — the real lesson — observe what EtherChannel does to Spanning Tree.
Topology
Link
SWA
SWB
bundle member 1
Gi1/0/1
Gi1/0/11
bundle member 2
Gi1/0/2
Gi1/0/12
bundle member 3
Gi1/0/3
Gi1/0/13
host port · VLAN 100
Gi1/0/21 → pcX
Gi1/0/21 → pcY
Catalyst 3650 — multilayer switches. VLAN 100 named Net. The PCs get no IP addresses; they exist purely to make VLAN 100 active.
Before you can configure anythingThe 3650 boots with an empty power slot. Open the switch's Physical tab and drag a power supply module into the empty bay, or the device never comes up. In production two modules go in, for redundancy.
Phase 1 — look at STP before bundling
Configure the three inter-switch links as trunk ports, with dot1q encapsulation if the command exists.
Create VLAN 100 named Net on both. Optionally use VTP (domain netdes, password 261434) to review Lab 03.
Gi1/0/21 on both switches → access port in VLAN 100. No IPs on the PCs.
On SWA: spanning-tree vlan 100 root primary, then press Fast Forward Time ×4.
On SWB: show spanning-tree vlan 100 and read the Sts column.
Answer Q1–2.
What you should seeThree parallel trunks form a loop, so STP leaves exactly one forwarding and blocks the other two. SWB shows one Root FWD and two Altn BLK. Two thirds of the cabling you paid for is doing nothing — which is the problem EtherChannel exists to solve.
Phase 2 — bundle them
Build the EtherChannel across all three links with LACP: SWA active mode, channel-group 3; SWB passive mode, channel-group 4.
Configure the new Port-Channel interfaces as trunks, dot1q if available.
If Packet Tracer fails to bring the Port-Channel up — save, close, reopen. Known bug, not your config.
Fast Forward Time ×4. STP still needs ~30 s to move the bundle to forwarding.
SWB# show etherchannel summary
Flags: D - down P - in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
Group Port-channel Protocol Ports
------+-------------+-----------+---------------------------------------
4 Po4(SU) LACP Gi1/0/11(P) Gi1/0/12(P) Gi1/0/13(P)
! S = Layer 2, U = in use, P = bundled. All three P = success.
SWB# show etherchannel port-channel ! no port number, or PT rejects it
SWB# show spanning-tree vlan 100 ! now shows Po4 as ONE port, not three
The point of the lab, in one lineRun show spanning-tree vlan 100 before and after. Before: three physical ports, one forwarding, two blocked. After: one logical portPo4, forwarding, carrying all three links' bandwidth. STP cannot create a loop out of a bundle it sees as a single interface.
Review checks
Channel-group numbers are locally significant. SWA uses 3, SWB uses 4, and the bundle still forms. Only the LACP modes have to be compatible.
LACP is the IEEE standard 802.3ad; PAgP is the Cisco-only equivalent. on mode uses no protocol at all and will happily build a loop if you misconfigure one side.
Every member port must match on speed, duplex, mode (access/trunk) and allowed VLANs — a mismatch drops that port out of the bundle silently.
Configuration applied to the Port-channel interface propagates to members; changing a single member breaks it out of the bundle.
Sts flags to recognise: SU = Layer 2 and in use, P = bundled, D = down, s = suspended.
LAB 05
Inter-VLAN Routing
Router-on-a-Stick · Layer 3 Switch · OSPF
The left half routes with a router-on-a-stick. The right half routes with SVIs inside a Layer 3 switch. OSPF glues the two halves together. One lab, both techniques, side by side.
Objective
Configure inter-VLAN routing two different ways, add IPv6 and OSPFv3 to the router side, and verify end-to-end connectivity between all four VLANs.
PC1 and PC2 also take IPv6 Automatic (SLAAC from the router). Router-to-switch link: rC 192.168.100.1/30 ↔ swB 192.168.100.2/30.
Steps, as the sheet numbers them
Open 2026CPE434Lab05InterVLANBase.pkt in Packet Tracer 9.0.
Set all four PC addresses and gateways. PC1 and PC2 also get IPv6 = Automatic.
swA — pure Layer 2: create VLAN 10 and 20, Fa0/1 and Fa0/2 as access ports in them, Gi0/1 as trunk up to the router.
rC — router-on-a-stick: address G0/1 (the /30), no shutdownboth G0/0 and G0/1, then build the two subinterfaces, then OSPF and OSPFv3 in area 0.
swB — Layer 3 switch: create VLAN 30 and 40, access ports, SVIs as the gateways, turn Gi1/0/24 into a routed port, enable ip routing, run OSPF.
Answer the sheet. From Q6 onward, ping every PC from every PC within 300 seconds — some questions read the MAC address table, and entries age out after 300 s.
Optional: add IPv6 to PC3/PC4 and OSPFv3 to swB with your own scheme.
▸ complete config — rC, the router-on-a-stick
ipv6 unicast-routing ! without this, IPv6 routing is off
!
interface GigabitEthernet0/1 ! link to swB
ip address 192.168.100.1 255.255.255.252
no shutdown
!
interface GigabitEthernet0/0 ! trunk down to swA — the "stick"
no shutdown ! no IP on the physical port itself
!
interface GigabitEthernet0/0.1010 ! VLAN 10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
ipv6 enable
ipv6 address CAFE:1::1/64
ipv6 address FE80::FACE:10 link-local
ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0.2020 ! VLAN 20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
ipv6 enable
ipv6 address CAFE:2::1/64
ipv6 address FE80::FACE:20 link-local
ipv6 ospf 1 area 0
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
ipv6 router ospf 1
router-id 192.168.100.1 ! OSPFv3 has no IPv4 to borrow an ID from
▸ complete config — swB, the Layer 3 switch
ip routing ! THE line people forget. Without it swB is a hub with SVIs.
!
vlan 30
name year3
vlan 40
name year4
!
interface GigabitEthernet1/0/3
switchport mode access
switchport access vlan 30
interface GigabitEthernet1/0/4
switchport mode access
switchport access vlan 40
!
interface Vlan30 ! the SVI = the gateway PC3 points at
ip address 192.168.30.1 255.255.255.0
no shutdown
interface Vlan40
ip address 192.168.40.1 255.255.255.0
no shutdown
!
interface GigabitEthernet1/0/24
no switchport ! turn the port into a routed port
ip address 192.168.100.2 255.255.255.252
no shutdown
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
▸ complete config — swA, Layer 2 only
vlan 10
name year1
vlan 20
name year2
!
interface FastEthernet0/1
switchport mode access
switchport access vlan 10
interface FastEthernet0/2
switchport mode access
switchport access vlan 20
!
interface GigabitEthernet0/1 ! the trunk carrying both VLANs to rC
switchport mode trunk
! 2960 is dot1q-only, so no encapsulation command exists here
Verify — in this order
Command
Where
Look for
show ip ospf neighbor
rC and swB
One neighbour, state FULL. Nothing else works until this does.
show ip route
rC
O routes for 192.168.30.0 and .40.0 learned from swB.
show ip route
swB
O routes for 192.168.10.0 and .20.0, plus C for its own SVIs.
show ip interface brief
rC
Both subinterfaces up up. A down subinterface usually means G0/0 itself was never no shutdown.
show ipv6 interface brief
rC
The link-local FE80::FACE:10 and the global CAFE:1::1 both present.
show mac address-table
swA, swB
Q6 onward reads this — ping everything first, entries expire after 300 s.
Review checks
Router-on-a-stick vs SVI. One physical port carrying tagged subinterfaces, versus virtual interfaces inside a switch that already has a routing ASIC. Same result, very different performance.
The subinterface number (.1010) is cosmetic. What matters is encapsulation dot1Q 10 — that number must match the VLAN.
ip routing on a Layer 3 switch is off by default. Without it, SVIs come up but nothing routes between them.
no switchport converts a switchport into a routed port so it can hold an IP directly.
OSPFv3 requires a manually configured router-id when there is no IPv4 address to borrow one from.
The /30 gives exactly two usable addresses — .1 and .2 — which is precisely a point-to-point link.
PC1/PC2 get their IPv6 by SLAAC, which only works because the router advertises the prefix. If the PC shows no address, save/close/reopen Packet Tracer — a known quirk the sheet warns about.
In the real worldRouter-on-a-stick is what you build when the budget bought a Layer 2 switch and a router you already own. Every packet between VLAN 10 and VLAN 20 goes up the trunk, into the router, and back down the same cable — so that one link carries the traffic twice. The Layer 3 switch on the right does the same job in silicon at line rate without leaving the box. This lab puts both in one topology so you can see exactly what you are paying for.
LAB 06
Private VLAN
PVLAN · GNS3 · IOU · Verification
Place community and isolated hosts behind one primary VLAN, then prove the isolation policy through the promiscuous router port.
Objective and platform
Configure and verify Private VLAN operation while reviewing router addressing and Layer 2 switch configuration. This lab requires GNS3 with the GNS3 VM, Layer 2 and Layer 3 IOU images, and VPCS hosts. Only Layer 2 functions of SWA are used.
Configure PC1–PC5 with the exact IPv4 addresses and gateways above. In VPCS, verify each host with show ip.
Configure RB e0/0 and e0/1 with the two gateway addresses.
Put SWA in VTP transparent mode.
Create secondary VLAN 101 as a community Private VLAN.
Create secondary VLAN 102 as an isolated Private VLAN.
Create primary VLAN 10 and associate secondary VLANs 101 and 102.
Configure SWA e0/0 as a promiscuous port and map primary VLAN 10 to secondaries 101 and 102. This link is not a trunk, and RB needs no subinterface.
Configure SWA e1/0–1 as community host ports associated with primary 10 and secondary 101.
Configure SWA e2/0–1 as isolated host ports associated with primary 10 and secondary 102.
Run the required connectivity tests and compare them with the matrix below.
Save SWA, RB, and every VPCS host before closing the project.
▸ complete SWA and RB configuration
! ---------- SWA: Layer 2 only ----------
configure terminal
vtp mode transparent
!
vlan 101
private-vlan community
vlan 102
private-vlan isolated
vlan 10
private-vlan primary
private-vlan association 101,102
!
interface Ethernet0/0
switchport mode private-vlan promiscuous
switchport private-vlan mapping 10 101,102
no shutdown
!
interface range Ethernet1/0 - 1
switchport mode private-vlan host
switchport private-vlan host-association 10 101
no shutdown
!
interface range Ethernet2/0 - 1
switchport mode private-vlan host
switchport private-vlan host-association 10 102
no shutdown
end
copy running-config startup-config
! ---------- RB ----------
configure terminal
interface Ethernet0/0
ip address 200.10.10.1 255.255.255.0
no shutdown
interface Ethernet0/1
ip address 100.1.1.1 255.255.255.0
no shutdown
end
copy running-config startup-config
▸ VPCS addressing and save commands
PC1> ip 200.10.10.11/24 200.10.10.1
PC2> ip 200.10.10.12/24 200.10.10.1
PC3> ip 200.10.10.21/24 200.10.10.1
PC4> ip 200.10.10.22/24 200.10.10.1
PC5> ip 100.1.1.201/24 100.1.1.1
show ip
save
Expected connectivity
Required test
Expected result
Reason
PC1–PC4 ↔ PC5
Pass
Every secondary VLAN may reach the promiscuous port and return through RB.
PC1 ↔ PC2
Pass
Both are members of community VLAN 101.
PC3 ↔ PC4
Fail
Hosts in isolated VLAN 102 cannot communicate directly.
Troubleshooting and persistenceIf expected behavior is not visible after configuration, save all device configurations and reopen the GNS3 project. Use copy running-config startup-config or write on SWA and RB, and save inside every VPCS console. Without those saves, GNS3 may restore only the topology.
LAB 07
Determine Spanning Tree
STP · Manual Calculation · Bridge ID · Midterm Practice
Four switches, every value at default. Calculate the VLAN 1 topology manually from the bridge IDs and port relationships.
Objective
Determine the Spanning Tree Protocol topology by hand. Packet Tracer is not required.
What you are given
Switch
MAC
Rank
Ports
SW1
000C.858B.5322
lowest → root
Fa0/1 → SW2 Fa0/4 · Fa0/2 → SW2 Fa0/3
SW4
000C.CFA1.904D
2nd lowest
Fa0/9 → SW2 Fa0/6 · Fa0/10 → SW3 Fa0/8
SW2
0040.0B0B.0AB7
3rd
Fa0/3 Fa0/4 → SW1 · Fa0/5 → SW3 · Fa0/6 → SW4
SW3
0090.21D7.0E24
highest
Fa0/7 → SW2 Fa0/5 · Fa0/8 → SW4 Fa0/10
All priorities default → 32769 for VLAN 1 (32768 + sys-id-ext 1). All links Fast Ethernet → cost 19 each. Compare MACs left to right, byte by byte: 000C.85 < 000C.CF < 0040 < 0090.
The five-step method — use it every single time
Count the blocked ports first. Blocked = switch-to-switch links − (switches − 1) = 5 − 3 = 2. Now you know when to stop.
Elect the root: lowest priority, tie → lowest MAC. All of the root's ports are Designated.
One Root port per non-root switch: lowest path cost to root → tie → lowest neighbour BID → tie → lowest neighbour port ID.
One Designated end per link: whichever side is closer to the root; tie → lower BID.
Leftovers block. Ports facing PCs are always Designated and never block.
Solved — VLAN 1
Switch
Port
Role
Why
SW1
Fa0/1
Designated
root bridge — every port designated
SW1
Fa0/2
Designated
same
SW2
Fa0/4
Root
cost 19 tie → sender port 128.1 beats 128.2
SW2
Fa0/3
Blocked
the losing half of that tie
SW2
Fa0/5
Designated
SW2 cost 19 < SW3 cost 38
SW2
Fa0/6
Designated
SW2 cost 19 < SW4 cost 38
SW3
Fa0/7
Root
cost 38 via SW2, beats 57 the long way
SW3
Fa0/8
Blocked
tie at 38 on the SW3–SW4 link → SW4's MAC is lower
SW4
Fa0/9
Root
cost 38 via SW2
SW4
Fa0/10
Designated
won the tie against SW3
Check: exactly 2 blocked, exactly 3 root ports, every link has exactly one designated end. ✓
Traps
The SW3–SW4 tie is decided by MAC, not port number, because both sides sit at cost 38. 000C.CFA1 (SW4) beats 0090.21D7 (SW3) — so SW3 is the one that blocks.
SW2's tie is decided by the sender's port ID, not its own. SW1 Fa0/1 sends 128.1, SW1 Fa0/2 sends 128.2 — so SW2's Fa0/4 (which faces Fa0/1) wins.
Path cost accumulates on ingress. SW3 reaching root the long way is 19+19+19 = 57, not 38.
Priority is 32769 for VLAN 1, not 32768 — the extended system ID adds the VLAN number.
STP Simulator
labs 07 · 08 · 09
One topology, four states. Click a scenario and watch the roles move.
R root portD designatedX blockeddashed = not forwarding
LAB 08
Verifying Spanning Tree
STP · PVST+ · Verification · Packet Tracer
Same topology as Lab 07, but now you open the file and read the truth off the switches. Two VLANs, two different trees — that is PVST+ in one screenshot.
Objective
Verify the STP topology with show spanning-tree, and understand why VLAN 1 and VLAN 10 produce different answers on identical cabling.
Steps
Download 2026CPE434Lab08STP.pkt and open with Packet Tracer 9.0.
Wait at least 1 minute, or press Fast Forward Time. STP has not converged before that.
Run show spanning-tree on all four switches and answer.
Topology adds PCA 192.168.10.5 on SW3 Fa0/11, access port in VLAN 10. Everything else is Lab 07.
▸ how to read the output
SW3# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol ieee
! ---- BLOCK 1: who the root is ----
Root ID Priority 32778
Address 000C.CFA1.904D ! that's SW4's MAC → SW4 is root
Cost 19 ! my distance to it
Port 8(FastEthernet0/8) ! my root port! ---- BLOCK 2: who I am ----
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0090.21D7.0E24 ! my own MAC
Interface Role Sts Cost Prio.Nbr Type
Fa0/7 Altn BLK 19 128.7 P2p ! Prio.Nbr IS the port ID
Fa0/8 Root FWD 19 128.8 P2p
Fa0/11 Desg FWD 19 128.11 P2p
! If BLOCK 1 and BLOCK 2 show the same address, that switch IS the root —! and IOS prints "This bridge is the root" between them.
Verified reasoning key
Q1 · MAC addresses — read from the Bridge ID → Address line; same base MAC in every VLAN block.
Q2 · VLAN 1 priority — all four are 32769. Default 32768 + sys-id-ext 1. Type it without a comma.
Q3 · Interface ID of SW2 Fa0/4 — 128.4. Port priority (128) dot port number. It is the Prio.Nbr column.
Q4 · Root for VLAN 1 — SW1. All priorities tie at 32769 → lowest MAC wins, 000C.858B.
Q5 · SW2 port roles, VLAN 1
Fa0/3
Fa0/4
Fa0/5
Fa0/6
Blocked
Root
Designated
Designated
Both uplinks cost 19 → tie broken by the sender's port ID: SW1 Fa0/1 = 128.1 beats Fa0/2 = 128.2, so SW2 Fa0/4 is Root and Fa0/3 blocks. Fa0/5 and Fa0/6 are Designated because SW2 (19) is closer to root than SW3/SW4 (38).
SW1 was deliberately configured to 36864 in the base file, so 36864 + 10 = 36874. It loses the VLAN 10 election on purpose. The others are default 32768 + 10.
Q7 · Root for VLAN 10 — SW4. SW1 is out at 36874; the remaining three tie at 32778 → lowest MAC 000C.CFA1.904D.
Q8 · All port roles, VLAN 10
Port
Switch
Role
Port
Switch
Role
Fa0/1
SW1
Blocked
Fa0/7
SW3
Blocked
Fa0/2
SW1
Root
Fa0/8
SW3
Root
Fa0/3
SW2
Designated
Fa0/9
SW4
Designated
Fa0/4
SW2
Designated
Fa0/10
SW4
Designated
Fa0/5
SW2
Designated
Fa0/11
SW3
Designated
Fa0/6
SW2
Root
edge port to PCA — never blocks
Root is SW4, so Fa0/9 and Fa0/10 are Designated. SW2 and SW3 each reach SW4 directly (root ports Fa0/6 and Fa0/8). On the SW2–SW3 link both cost 19 → lower BID wins, SW2 takes Designated and SW3 Fa0/7 blocks. SW1 can only reach the root through SW2 at cost 38, so SW2 is Designated on both Fa0/3 and Fa0/4; SW1 picks Fa0/2 as its root port (sender 128.3 beats 128.4) and blocks Fa0/1.
The one idea to take away
Identical cables, identical costs — and yet VLAN 1 blocks SW2 Fa0/3 + SW3 Fa0/8 while VLAN 10 blocks SW1 Fa0/1 + SW3 Fa0/7. Different roots, different trees. That is PVST+: one independent spanning tree per VLAN, and you can steer each one separately.
Blocked count is 2 in both VLANs — 5 links − 3. The count never changes; only which ports lose does.
Priority always displays as configured + VLAN number. If a question gives you 36874 and asks the configured value, subtract the VLAN: 36864.
Q2 · Root per VLAN — VLAN 1 → SW1, VLAN 10 → SW1. Same winner, two different reasons: VLAN 1 is untouched so all tie at 32769 and the lowest MAC wins; VLAN 10 now has priorities and SW1 holds the lowest.
Q3 · Port roles, VLAN 10, before root primary
Port
Sw
Role
Port
Sw
Role
Fa0/1
SW1
Designated
Fa0/6
SW2
Designated
Fa0/2
SW1
Designated
Fa0/7
SW3
Root
Fa0/3
SW2
Blocked
Fa0/8
SW3
Designated
Fa0/4
SW2
Root
Fa0/9
SW4
Root
Fa0/5
SW2
Designated
Fa0/10
SW4
Blocked
Root SW1 → all its ports Designated. SW2's two equal paths break on sender port ID (128.1 beats 128.2) → Fa0/4 Root, Fa0/3 blocks. SW3 and SW4 both reach root for 38. On SW3–SW4, lower BID wins: SW3 (32778) beats SW4 (40970), so Fa0/8 Designated and Fa0/10 blocks. Blocked = 5 − 3 = 2 ✓
Q4 · Are VLAN 1 and VLAN 10 the same shape? — False. Both roots happen to be SW1, but the SW3–SW4 link flips: VLAN 1 breaks the tie on MAC (SW4 wins, SW3 Fa0/8 blocks); VLAN 10 breaks it on priority (SW3 wins, SW4 Fa0/10 blocks).
Q5 · Root after root primary on SW2 — VLAN 1 → SW1 (untouched), VLAN 10 → SW2.
Q6 · SW2's VLAN 10 priority now — 16394, i.e. configured 16384.
The rule: if the current lowest priority is above 24576, take 24576; otherwise go 4096 below it. SW1 held 20480, which is not above 24576, so SW2 takes 20480 − 4096 = 16384 → displayed 16394. This is the single most-missed question in the lab.
Q7 · Run root primary again — priority now? — 16394, unchanged. The command recalculates against the other switches every time; it is not cumulative. The lowest rival is still SW1 at 20480, so the answer is still 20480 − 4096.
Q8 · Port roles, VLAN 10, after root primary
Port
Sw
Role
Port
Sw
Role
Fa0/1
SW1
Blocked
Fa0/6
SW2
Designated
Fa0/2
SW1
Root
Fa0/7
SW3
Root
Fa0/3
SW2
Designated
Fa0/8
SW3
Designated
Fa0/4
SW2
Designated
Fa0/9
SW4
Root
Fa0/5
SW2
Designated
Fa0/10
SW4
Blocked
Root is now SW2, so all four SW2 ports are Designated. SW1 picks between its two links — sender SW2 Fa0/3 (128.3) beats Fa0/4 (128.4), and that cable lands on SW1 Fa0/2, so Fa0/2 is Root and Fa0/1 blocks. Exact mirror image of Q3. SW3 and SW4 keep Fa0/7 and Fa0/9, now cost 19 straight to the root; the SW3–SW4 tie is unchanged.
Review checks
Priority must be a multiple of 4096. 20000 is rejected; 20480 is accepted.
Displayed = configured + VLAN ID. Every priority question hides this. 16384 → 16394 for VLAN 10.
root primary = "current lowest above 24576 → take 24576, else lowest − 4096", computed once, never cumulative. root secondary always lands on 28672.
Changing priority for VLAN 10 leaves VLAN 1 completely alone. Always check which VLAN a question is about.
The tie-break order never changes: cost → sender BID → sender port priority → sender port number.
LAB 10
STP with Topology Changes
STP · Convergence · PortFast · Packet Tracer
Break things on purpose and time the recovery. Five experiments that turn the 15+15 second forward-delay from a number on a slide into something you watch happen.
Objective
Observe how STP responds to topology changes, verify port states during the transition, and explain why PortFast belongs on access ports.
Add PCB first, wait a minute, then re-verify all four priorities against the figure before you start — the whole lab is meaningless if the tree is not the one you think it is.
Fa0/11 is FWD instantly — the entire argument for PortFast
3
just look
SW4 vlan 10
Fa0/9 Root FWD · Fa0/10 Altn BLK
4
shutdown SW4 Fa0/9
SW4 vlan 10
Fa0/10 promotes to Root, walks LIS → LRN ≈ 30 s
5
no shutdown Fa0/9
SW4 vlan 10
Fa0/9 retakes Root while still transitioning (LIS or LRN, depending on capture time); Fa0/10 drops to Altn BLK immediately
Wait at least one minute between sections. At the end, save the running configuration on all four switches and save the Packet Tracer project under a new filename; LAB 11 starts from this file.
Catching the 29-second window1. Type the show command but do not press Enter — trigger the event, come back, hit Enter.
2. For the shut / no-shut pair, stay in config mode and use do show spanning-tree vlan 10 — zero navigation.
3.Never press Fast Forward Time inside the window; it jumps 30 s and you land on FWD. Do press it between sections.
4. After no shutdown, wait about 5 seconds before the show. The link needs a moment to come up and SW4 cannot know Fa0/9 is better until SW2's next hello arrives. Fire instantly and you will catch Fa0/9 Desg LIS / Fa0/10 Root FWD — a real snapshot, but not the one being asked for.
▸ commands
! --- setup: add PCB on SW4 ---
SW4(config)# interface FastEthernet0/12
SW4(config-if)# switchport mode access
SW4(config-if)# switchport access vlan 10
! --- section 2 ---
SW3(config)# interface FastEthernet0/11
SW3(config-if)# spanning-tree portfast
! --- sections 4 and 5: stay in config mode, use 'do show' ---
SW4(config)# interface FastEthernet0/9
SW4(config-if)# shutdown
SW4(config-if)# do show spanning-tree vlan 10 ! immediately
SW4(config-if)# no shutdown
SW4(config-if)# do show spanning-tree vlan 10 ! wait ~5 s first! --- finish: all four switches ---
end
copy running-config startup-config
Verified reasoning key
Q
Blank
Answer
1
Fa0/11 role · state
Desg · LRN
2
Fa0/11 role · state
Desg · FWD
3
Fa0/9 role · Fa0/10 role · Fa0/9 state · Fa0/10 state
Root · Altn · FWD · BLK
4
Fa0/10 role · state
Root · LRN
5
Fa0/9 role · Fa0/10 role · Fa0/9 state · Fa0/10 state
Root · Altn · LRN · BLK
This worked capture shows LRN for the three transition checks. The source requires a reading inside 29 seconds, so an earlier capture can still show LIS: Listening occupies the first 15 seconds and Learning the next 15. Record what the device actually displays. Roles are computed independently of state, which is why Fa0/9 can read Root while it is still Learning.
Review checks
Status codes: LIS listening · LRN learning · FWD forwarding · BLK blocking. Role codes: Root · Desg · Altn. Type the abbreviations exactly as the output prints them.
Role and state are independent. A port becomes Root the instant the BPDU maths says so, and only then spends 30 s earning the right to forward.
Experiment 5 is the money shot: Fa0/9 Root LRN and Fa0/10 Altn BLK at the same moment means SW4 has no forwarding path to the root at all. PCB is cut off for 30 seconds.
PortFast belongs on host ports only. On a switch-to-switch link it skips the loop check and builds a loop — which is why you pair it with BPDU Guard.
Direct link failure (experiment 4) costs 30 s: no Max Age wait, just 15 + 15. An indirect failure adds the 20 s Max Age on top — that is the 50 s figure, and what BackboneFast removes.
And this is why RSTP existsThirty seconds of blackout every time a link flaps is unacceptable on a modern network. 802.1w replaces the timers with a proposal/agreement handshake and converges in under a second — and it turns PortFast into a first-class concept called an edge port. Topic 13 picks up exactly here.
LAB 11
Configuring Rapid Spanning Tree
RSTP · 802.1w · Compatibility · Packet Tracer
Same link failure, four times over, changing only the protocol. Watch 30 seconds of outage collapse to nothing — and see what happens when only half the network has been upgraded.
Objective
Verify that RSTP is backward compatible with IEEE 802.1D, and compare the convergence time of the two. This is the lab that makes the case for 802.1w with a stopwatch instead of a slide.
Note on the lab sheetThe title slide reads "Lab 10 — Configure Rapid Spanning Tree". That is a typo carried over from the previous deck; Section 1 says "From Lab 10", so this is Lab 11.
Open the file you saved at the end of Lab 10. Make sure no interface is left shut down — Lab 10 finished with a shut/no-shut cycle on SW4 Fa0/9. Wait a minute, then re-verify all four priorities against the figure.
Baseline on SW1 — this is what Section 1 asks about
SW1# show spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol ieee! "ieee" = classic 802.1D / PVST+
Root ID Priority 16394
Address 0040.0B0B.0AB7 ! SW2
Cost 19
Port 2(FastEthernet0/2)
Interface Role Sts Cost Prio.Nbr Type
Fa0/1 Altn BLK 19 128.1 P2p ! loser of the tie
Fa0/2 Root FWD 19 128.2 P2p ! sender SW2 Fa0/3 = 128.3 beats Fa0/4 = 128.4
SW1 has two equal-cost links to the root, so the tie is settled by the sender's port ID. SW2's Fa0/3 (128.3) beats its Fa0/4 (128.4), and Fa0/3 lands on SW1's Fa0/2 — so Fa0/2 is the root port and Fa0/1 is the alternate. Every experiment below kills Fa0/2 and watches Fa0/1 take over.
The five sections
§
Running RSTP
Event
Read on
Q
1
nobody
baseline, nothing changed
SW1
1–3
2
SW2 only
shutdown SW1 Fa0/2
SW1
4–5
3
SW2 only
no shutdown SW1 Fa0/2
SW1
6
4
all four
shutdown SW1 Fa0/2
SW1
7
5
all four
no shutdown SW1 Fa0/2
SW1
8
Every reading is taken within the first 29 seconds of the event, on SW1, for VLAN 10. Wait a full minute between sections.
▸ commands
! --- section 2: only SW2 changes protocol ---
SW2(config)# spanning-tree mode rapid-pvst
! --- the event, run from SW1, stay in config mode ---
SW1(config)# interface FastEthernet0/2
SW1(config-if)# shutdown
SW1(config-if)# do show spanning-tree vlan 10
SW1(config-if)# no shutdown
SW1(config-if)# do show spanning-tree vlan 10 ! wait ~5 s after no shut! --- section 4: bring the rest across ---
SW1(config)# spanning-tree mode rapid-pvst
SW3(config)# spanning-tree mode rapid-pvst
SW4(config)# spanning-tree mode rapid-pvst
! --- useful checks ---
show spanning-tree vlan 10 ! the "protocol" word tells you the mode
show spanning-tree summary ! one line: which mode this switch is in! spanning-tree mode pvst <- returns a switch to classic 802.1D
Verified reasoning key
Every question reads SW1, VLAN 10, inside the first 29 seconds.
Q
§
Asks
Answer
1
1
protocol on SW1
ieee
2
1
root bridge for VLAN 10
SW2
3
1
Fa0/1 role · state
Altn · BLK
4
2
protocol on SW1, after SW2 → RSTP
ieee
5
2
Fa0/1 role · state
Root · LIS
6
3
Fa0/1 role · Fa0/2 role · Fa0/1 state · Fa0/2 state
Altn · Root · BLK · LIS
7
4
Fa0/1 role · state
Root · FWD
8
5
Fa0/1 role · Fa0/2 role · Fa0/1 state · Fa0/2 state
Altn · Root · BLK · FWD
Q4 is the trap. Only SW2 was switched to RSTP, so SW1 — which is what the question asks about — still reports ieee. Read the wrong switch's output and the conclusion is wrong. Both protocol questions answer ieee.
Q5 vs Q7 is the entire lab. Identical event, identical topology. With SW1 still on 802.1D the promoted alternate crawls through LIS; with every switch on 802.1w it is already FWD. Thirty seconds of outage against none.
Q6 and Q8 show the asymmetry. Demotion to blocking is instant in both protocols — there is no timer on the way into blocking. It is the promotion that costs time, and only under 802.1D.
Timing — do not carry Lab 10's convention over
This worked capture shows LIS; the LAB 10 capture shows LRN. Both are physically possible inside a 29-second window — the port is Listening for the first 15 seconds and Learning for the next 15. Take your own reading quickly and report what the device actually shows.
Why RSTP is instant — the two mechanisms
Situation
802.1D
802.1w
Root port dies, alternate available (§2 vs §4)
Alternate walks LIS 15 s + LRN 15 s
Alternate is a pre-computed backup and switches to forwarding at once — the BPDU it already stored proves the path is loop-free
New link comes up (§3 vs §5)
Every port serves the same 30 s
Proposal / agreement handshake across the point-to-point link: one exchange, then forward
Review checks
The mode word in the output: ieee = 802.1D/PVST+, rstp = rapid-PVST. That single word answers "which protocol is this switch running".
The Cisco command is spanning-tree mode rapid-pvst — not "rstp".
Backward compatibility is per port, not per switch. An RSTP bridge that hears a legacy BPDU on one port drops to 802.1D on that port only. Cisco marks it in the Type column as P2p Peer(STP).
Which means a half-upgraded network is as slow as the old one on the mixed links. That is the entire point of sections 2 and 3.
RSTP has three states — Discarding, Learning, Forwarding — but Cisco still prints BLK for discarding in the Sts column, so the output looks familiar.
RSTP port roles add Backup (a second port onto the same segment) alongside Root, Designated and Alternate.
Rapid transition needs a point-to-point link, which Cisco infers from full duplex. A half-duplex or shared link falls back to timers even under RSTP.
In the real worldNobody runs 802.1D by choice any more — but plenty of campuses run a mix, because one forgotten access switch never got its mode changed. This lab shows you exactly what that costs: the upgrade buys nothing until the last switch on the path is converted.
LAB 12
Configuring Multiple Spanning Tree
MST · Instances · GNS3 · IOU
Twenty VLANs. PVST+ would compute twenty separate spanning trees. MST collapses them into two — and lets you send each half of the network a different way.
Objective
Configure MST and verify it. Along the way: build a region, map VLANs to instances, elect a different root per instance, and steer one instance off a link with a per-instance cost.
This lab needs different toolsGNS3 + the GNS3 VM + Cisco IOU Layer 2 switches. Packet Tracer is not used and its 2960 image does not support MST properly.
Add the switches in order, IOU1 through IOU4. If you added them correctly they will have these MAC addresses — check before you configure anything, because the root elections depend on them:
IOU1 aabb.cc00.0100 · IOU2 aabb.cc00.0200 · IOU3 aabb.cc00.0300 · IOU4 aabb.cc00.0400 If they do not match, delete the project and add them again in order. There is no way to fix it afterwards.
Topology — a square with one diagonal
IOU1 top · IOU2 left · IOU4 right · IOU3 bottom · plus a diagonal IOU2 ↔ IOU4
Link
End A
End B
top-left
IOU1 e0/0
IOU2 e0/1
top-right
IOU1 e1/3
IOU4 e1/2
bottom-left
IOU2 e0/2
IOU3 e0/3
bottom-right
IOU3 e1/0
IOU4 e1/1
diagonal— the one step 6 cripples
IOU2 e2/0
IOU4 e2/1
5 switch-to-switch links, 4 switches → 2 blocked ports per instance. Same arithmetic as every STP lab: links − (switches − 1).
Steps, as the sheet numbers them
Create VLANs 51–70 on all four switches.
Configure every inter-switch link as a trunk, with dot1q encapsulation if the command exists.
Configure MST on all four with name netdes, revision 1, instance 1 = VLANs 51–60, instance 2 = VLANs 61–70.
IOU2 becomes root for instance 1.
IOU4 becomes root for instance 2.
Set the instance 2 path cost of IOU2 e2/0 and IOU4 e2/1 to 10,000,000.
Answer the questions.
▸ complete config
! ===== VLAN and MST region: identical on all four =====
vlan 51-70
spanning-tree mode mst
!
spanning-tree mst configuration
name netdes ! case-sensitive
revision 1
instance 1 vlan 51-60
instance 2 vlan 61-70
exit ! config is staged until you exit — nothing applies before this! ===== Trunk only the interfaces present in the supplied topology =====! IOU1
interface range Ethernet0/0 , Ethernet1/3
switchport trunk encapsulation dot1q
switchport mode trunk
! IOU2
interface range Ethernet0/1 - 2 , Ethernet2/0
switchport trunk encapsulation dot1q
switchport mode trunk
! IOU3
interface range Ethernet0/3 , Ethernet1/0
switchport trunk encapsulation dot1q
switchport mode trunk
! IOU4
interface range Ethernet1/1 - 2 , Ethernet2/1
switchport trunk encapsulation dot1q
switchport mode trunk
! ===== IOU2 only =====
spanning-tree mst 1 root primary
interface Ethernet2/0
spanning-tree mst 2 cost 10000000
! ===== IOU4 only =====
spanning-tree mst 2 root primary
interface Ethernet2/1
spanning-tree mst 2 cost 10000000
Verify — in this order
Command
What proves it worked
show spanning-tree mst configuration
Run this first, on all four. Name, revision and the VLAN-to-instance map must be byte-identical. One character different and that switch is its own region.
show spanning-tree mst
All three instances at a glance — MST0 (the IST), MST1, MST2 — with the root and each port's role.
show spanning-tree mst 1
Root should be IOU2. Look for This bridge is the root.
show spanning-tree mst 2
Root should be IOU4, and the diagonal should not be carrying instance 2 after step 6.
show spanning-tree mst interface e2/0
The same port, listed once per instance, with a different cost and possibly a different role in each. This one command is the whole idea of MST.
show spanning-tree mst 2 detail
Confirms the 10,000,000 cost actually took.
What you should see, and why
Three instances exist, not twenty. MST0 is the IST — it always exists and carries every VLAN you did not map, including VLANs 1–50 and 71–4094. MST1 carries 51–60, MST2 carries 61–70. Twenty VLANs, two trees plus the IST, instead of twenty independent computations.
Two different roots on one physical topology. Instance 1 folds toward IOU2, instance 2 folds toward IOU4. VLANs 51–60 and VLANs 61–70 take genuinely different paths across the same cables — that is load sharing, and it is the reason anyone bothers with MST instead of a single common tree.
Step 6 is the demonstration. The IOU2–IOU4 diagonal is the shortest hop between the two roots. Setting its instance-2 cost to 10,000,000 — far above any default long-path cost — forces instance 2 to reroute through IOU1 or IOU3, while instance 1 keeps using the diagonal at its normal cost. One cable, two costs, two behaviours, decided per instance.
Cost is set on both ends because path cost is evaluated on the receiving side; leaving one end cheap makes the two switches disagree about the diagonal.
Review checks
What makes a region. Three things must match exactly on every switch: name, revision number, and the VLAN-to-instance map. Not the priorities, not the costs. Mistype netdes as Netdes and you have two regions that talk to each other as if through plain 802.1D.
Instance 0 is the IST and cannot be deleted. Every unmapped VLAN rides it.
MST is built on RSTP, so it inherits the rapid transitions from Lab 11 — proposal/agreement, alternate ports promoted instantly.
The MST config is staged: your instance lines do nothing until you leave spanning-tree mst configuration mode. Then all of them apply at once and the tree re-converges.
Root election is per instance: spanning-tree mst 1 root primary touches instance 1 only.
Path cost is per instance too: spanning-tree mst 2 cost 10000000 leaves instance 1 alone on the same interface.
MST uses the long (32-bit) path cost method by default, which is why 10,000,000 is a plausible number here — under the old 16-bit short costs the maximum was 65,535.
Outside the region, the whole region looks like one single bridge to the rest of the network.
In the real worldA data-centre with 500 VLANs running PVST+ is running 500 spanning-tree processes, and the switch CPU feels every one. MST is how you get that down to two or three trees while still using both uplinks — half the VLANs left, half the VLANs right, nothing idle. The cost is that every switch in the region must be configured identically, which is exactly the failure this lab teaches you to check for first.
LAB 13
DHCP
DHCP · L3 Switch · Router-on-a-Stick · IPv6
Serve two VLANs directly from a multilayer switch and two more from a router-on-a-stick, with exact allocation ranges and IPv6 SLAAC on every client.
Objective and source file
Configure and verify DHCP first on a Layer 3 switch, then on a router using router-on-a-stick. Open 2026CPE434Lab13DHCPTopo.pkt with Packet Tracer 9.0. Enable IPv6 routing on both swA and rC.
Topology
Section
Device / interface
VLAN
Host
Layer 3 switch DHCP
swA Gi1/0/1
10 · DHL1
PC1
swA Gi1/0/2
20 · DHL2
PC2
Router-on-a-stick DHCP
swB Fa0/1
30 · DHL3
PC3
swB Fa0/2
40 · DHL4
PC4
swB Gi0/1 ↔ rC Gi0/1
802.1Q trunk
—
DHCP plan — use these values exactly
Pool
Network / gateway
DNS
Allowed leases
IOS exclusions
vlnet10
200.10.1.0/24 · .1
1.1.1.1
200.10.1.2–.254
200.10.1.1
vlnet20
200.20.1.0/24 · .1
8.8.4.4
200.20.1.101–.200
.1–.100 and .201–.254
vlnet30
200.30.1.0/24 · .1
200.30.1.2
200.30.1.50–.100
.1–.49 and .101–.254
vlnet40
200.40.1.0/24 · .1
8.8.8.8
200.40.1.2–.254
200.40.1.1
IOS excluded-address ranges are inclusive at both ends. The DHCP pool names are lowercase exactly as shown.
Part 1 — Layer 3 switch DHCP on swA
Create VLAN 10 DHL1 and VLAN 20 DHL2.
Enable IPv4 and IPv6 routing.
Make Gi1/0/1 a VLAN 10 access port and Gi1/0/2 a VLAN 20 access port; enable PortFast on both.
Configure SVI VLAN 10 as 200.10.1.1/24 and CAFE:10::1/64.
Configure SVI VLAN 20 as 200.20.1.1/24 and CAFE:20::1/64.
Build pools vlnet10 and vlnet20 with the exact ranges above.
Run ipv6 enable on both SVIs. Do not disable IPv6 Neighbor Discovery.
On PC1 and PC2, select DHCP for IPv4 and Automatic for IPv6.
▸ complete swA configuration
configure terminal
ip routing
ipv6 unicast-routing
!
vlan 10
name DHL1
vlan 20
name DHL2
!
interface GigabitEthernet1/0/1
switchport mode access
switchport access vlan 10
spanning-tree portfast
interface GigabitEthernet1/0/2
switchport mode access
switchport access vlan 20
spanning-tree portfast
!
interface vlan 10
ip address 200.10.1.1 255.255.255.0
ipv6 address CAFE:10::1/64
ipv6 enable
no shutdown
interface vlan 20
ip address 200.20.1.1 255.255.255.0
ipv6 address CAFE:20::1/64
ipv6 enable
no shutdown
!
ip dhcp excluded-address 200.10.1.1
ip dhcp excluded-address 200.20.1.1 200.20.1.100
ip dhcp excluded-address 200.20.1.201 200.20.1.254
!
ip dhcp pool vlnet10
network 200.10.1.0 255.255.255.0
default-router 200.10.1.1
dns-server 1.1.1.1
ip dhcp pool vlnet20
network 200.20.1.0 255.255.255.0
default-router 200.20.1.1
dns-server 8.8.4.4
end
Part 2 — Router-on-a-Stick DHCP on swB and rC
Create VLAN 30 DHL3 and VLAN 40 DHL4 on swB.
Make Fa0/1 a VLAN 30 access port and Fa0/2 a VLAN 40 access port; enable PortFast on both.
Configure swB Gi0/1 as a trunk. Enter the dot1q encapsulation command first if that switch model supports it.
Enable rC Gi0/1 with no shutdown.
Create rC Gi0/1.30 with dot1q VLAN 30, 200.30.1.1/24, and BEEF:30::1/64.
Create rC Gi0/1.40 with dot1q VLAN 40, 200.40.1.1/24, and BEEF:40::1/64.
Build pools vlnet30 and vlnet40 with the exact exclusions above. Do not disable IPv6 Neighbor Discovery.
On PC3 and PC4, select DHCP for IPv4 and Automatic for IPv6.
▸ complete swB and rC configuration
! ---------- swB ----------
configure terminal
vlan 30
name DHL3
vlan 40
name DHL4
interface FastEthernet0/1
switchport mode access
switchport access vlan 30
spanning-tree portfast
interface FastEthernet0/2
switchport mode access
switchport access vlan 40
spanning-tree portfast
interface GigabitEthernet0/1
switchport trunk encapsulation dot1q ! enter only if available
switchport mode trunk
end
! ---------- rC ----------
configure terminal
ipv6 unicast-routing
interface GigabitEthernet0/1
no shutdown
interface GigabitEthernet0/1.30
encapsulation dot1q 30
ip address 200.30.1.1 255.255.255.0
ipv6 address BEEF:30::1/64
interface GigabitEthernet0/1.40
encapsulation dot1q 40
ip address 200.40.1.1 255.255.255.0
ipv6 address BEEF:40::1/64
!
ip dhcp excluded-address 200.30.1.1 200.30.1.49
ip dhcp excluded-address 200.30.1.101 200.30.1.254
ip dhcp excluded-address 200.40.1.1
!
ip dhcp pool vlnet30
network 200.30.1.0 255.255.255.0
default-router 200.30.1.1
dns-server 200.30.1.2
ip dhcp pool vlnet40
network 200.40.1.0 255.255.255.0
default-router 200.40.1.1
dns-server 8.8.8.8
end
Verification
Check
Expected evidence
show ip dhcp pool
Each pool shows the correct network and an available-address count constrained by its exclusions.
show ip dhcp binding
PC leases appear inside only the allowed range for their VLAN.
show ip interface brief
swA VLAN 10/20 and rC Gi0/1.30/.40 are up with the correct IPv4 gateways.
show ipv6 interface brief
The four gateways show CAFE:10, CAFE:20, BEEF:30, and BEEF:40 prefixes.
PC Desktop → IP Configuration
IPv4 uses DHCP with the specified gateway/DNS; IPv6 uses Automatic.
Range checkA client address outside its stated interval means an exclusion is missing or mistyped. Recheck both ends of every inclusive exclusion range before deleting or rebuilding a pool.
Drills
Flashcards
Click to flip · SPACE flip · ← → move · G got it · A again
question
answer
Mock exam
best —
20 random questions from a bank of . Explanations on every answer.
Mode matcher
DTP · PAgP · LACP
Pick both ends. Instantly see the result.
×
EUI-64 generator
Work out the link-local on paper, then reveal.
Root election generator
Four switches boot. Click the root.
Intensive
Weak point radar
no data yet
Built from every answer you give anywhere on this site. Red means study it now.
Timed exam simulator
no feedback until you submit
Real conditions: a running clock, no explanations mid-test, full report at the end.
LENGTH
Port role solver
the #1 exam skill
A fresh 4-switch scenario every round, same topology as Labs 07–10. Assign every port, then grade.
Rapid fire
60 seconds
Answer as many as you can. Wrong answers cost nothing but time — speed is the point.
600 correct
Gauntlet
one mistake ends it
Keep answering until you miss. This is how you find the gap you did not know you had.
streak 0
Command recall
type it from memory
Sprint programs
structured sessions
Pick one, start the clock, work the checklist. Progress is saved.
00:00
Cheatsheet
Final sheet · chapters 16–23
final exam
This page is the midterm quick reference (STP, VLANs, EtherChannel). The final sheet, its preview, and the drills to master it are in the FINAL tab.
show vlan brief
show interface trunk
show interface Fa0/5 switchport
show vtp status
show etherchannel summary
show vlan private-vlan
show spanning-tree vlan 10
show spanning-tree root
show spanning-tree summary
show spanning-tree inconsistentports
show spanning-tree mst configuration
show udld
show interface switchport backup
show mac address-table
show ipv6 interface brief
show ip route
show ip ospf neighbor
show ip ssh
show port-security interface Fa0/1
DHCP, campus design & WLAN
DHCP and SLAAC quick reference
DORA: Discover → Offer → Request → ACK. UDP server 67 / client 68. Use one matching pool per client subnet; exclude fixed addresses before allocating leases.
ip dhcp excluded-address 10.1.10.1 10.1.10.20
ip dhcp pool VLAN10
network 10.1.10.0 255.255.255.0
default-router 10.1.10.1
dns-server 8.8.8.8
lease 1
exit
! Relay example: client-facing interface
interface vlan 10
ip address 10.1.10.1 255.255.255.0
ip helper-address 20.5.5.5
! Verify on the DHCP server
show ip dhcp binding
Replace placeholders in the pool pattern. The concrete relay example needs a remote pool for 10.1.10.0/24 and working routing. For IPv6 SLAAC, advertise an autonomous prefix; the deck clears the M/O flags with no ipv6 nd managed-config-flag and no ipv6 nd other-config-flag.
Campus design decisions
Access: endpoints and VLAN membership. Distribution: aggregation, routing boundary, policy. Core: efficient resilient backbone. A switch block is access plus distribution.
Use two upstream devices and redundant links; know which links are Layer 2 and Layer 3. Keep VLANs within the intended block. Routed access moves the routing boundary downward; a collapsed core combines distribution/core roles. Size by traffic and failure conditions, not only user count.
Wireless architecture and roaming
IBSS: ad hoc. BSS: AP plus clients. ESS: connected BSSs. SSID: network name. A PHY rate is not actual throughput.
Split-MAC: LAP handles real-time radio work; WLC handles central management. CAPWAP control is protected; data-tunnel encryption is optional in the deck. Centrally switched traffic passes through the WLC.
Intracontroller: same WLC, new AP tunnel. Layer 2 intercontroller: new WLC, same subnet. Layer 3 intercontroller: new local subnet, anchor/foreign tunnel preserves the original client IP. CCKM, PKC/OKC, and 802.11r reduce repeated authentication work with compatible support.
FHRP, HA, QoS, monitoring & security
final scope
Item
Value
HSRP default priority / preempt
100 / off
HSRP hello / hold
3 s / 10 s
HSRP v1 MAC · multicast · groups
0000.0C07.ACxx · 224.0.0.2 · 0–255
HSRP v2 MAC · multicast · groups
0000.0C9F.Fxxx · 224.0.0.102 · 0–4095
HSRP / VRRP / GLBP
active-standby · master-backup · active-active per host
Switching and routing topics with the LAB 01–LAB 13 sequence. Lab details follow the original lab files.
Lab numberingLAB 01 through LAB 13 always retain their source numbers. The subnetting Review is useful preparation, but it is not a numbered lab and is excluded from lab progress.
Competency map
Filled bars are technical topics marked complete on this device.
Contents
24Topics
13Labs mapped
262Flashcards
151Practice items
1HTML app
0Frameworks
What it does
Connects 24 technical topics with the complete LAB 01–LAB 13 sequence.
Includes a final exam center with a final-scope mock exam, configuration writing, output analysis, and a printable A4 sheet.