DHCP & NAT
Run DHCP for multiple subnets, and configure and troubleshoot NAT, PAT and port forwarding.
4 objectives 6 steps about 125 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Explain the DHCP exchange (discover, offer, request, acknowledge), leases and options, and configure a DHCP server and relay for several VLANs.
- Explain source NAT, PAT and destination NAT (port forwarding) with connection tracking, and configure them with nftables.
- Diagnose DHCP and NAT problems: rogue servers, exhausted pools, missing relays, broken port forwards and hairpinning.
- Explain NAT's side effects - CGNAT, NAT traversal and logging requirements - and why IPv6 networks normally avoid NAT.
Lesson plan
6 steps, about 125 min · 0 of 5 lessons available so far
- DHCP end to end: the four-message exchange, leases, options and relays Concept · 20 min · coming later
- Lab: a Kea DHCP server serving two VLANs through a relay Lab · 30 min · coming later
- NAT families: SNAT, PAT, DNAT and the conntrack table Concept · 20 min · coming later
- Lab: masquerade and port forwarding with nftables, verified with captures Lab · 25 min · coming later
- NAT side effects: CGNAT, traversal, logging and the IPv6 alternative Concept · 15 min · coming later
- Check: DHCP and NAT troubleshooting scenarios Knowledge check · 8 questions
Practise it
Add a Linux edge router to the VLAN lab that serves DHCP to both VLANs through a relay, masquerades outbound traffic and forwards TCP 8443 to an internal web server; show with conntrack -L and captures on both sides of the router how addresses and ports are rewritten.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.