0:00–0:10
Recap
0:10–1:50
Lab 3B
1:50–2:00
Debrief
0:00 – 0:10Recap · 10 min

Verify DHCP is working and introduce the error lab

0:10 – 1:50Lab 3B · 100 min

Lab 3B — Error diagnosis, DORA tcpdump capture, MAC-based reservation

Part 1 — Deliberate configuration errors (35 min)

Part 2 — DORA capture with tcpdump (25 min)

Part 3 — MAC-based reservation (30 min)

Part 4 — Restore S2 static IP (10 min)

Lab 3B complete when: All three deliberate errors documented with exact error messages. DORA exchange captured with tcpdump and all four packet types identified. MAC reservation for S2 configured and verified to assign 192.168.50.2. S2 restored to static IP. Lease database entry for S2 recorded.
1:50 – 2:00Debrief · 10 min

Learning outcomes — by end of Day 2, students can…

Diagnose dhcpd.conf errorsRead the journal output from isc-dhcp-server, identify the error type and line number, and correct it
Capture and identify DORA packetsUse tcpdump on UDP 67/68, identify each DORA step in the output, and explain why Discover and Request use broadcast
Create a MAC-based reservationWrite a host block in dhcpd.conf with hardware ethernet and fixed-address, and verify the client receives the reserved IP
Read the DHCP lease databaseInterpret the fields in a dhcpd.leases entry including binding state, MAC, IP, and expiry times

Common issues and fixes

IssueLikely causeFix
S2 doesn't get the reserved IP after adding host blockMAC address entered incorrectly (wrong format or typo), or lease not renewed after config changeVerify MAC exactly with ip link show eth0 on S2. Force release/renew: sudo dhclient -r eth0 && sudo dhclient eth0. Check dhcpd.log for the reservation matching
tcpdump shows no DHCP packetsWrong interface — DHCP traffic is on eth1 (LAN1), not eth0 (External)Confirm with: sudo tcpdump -i eth1 -n port 67 or port 68. S2's DHCP traffic never reaches eth0
← Day 1 Lab 3B Handout Day 3 →