DHCP
DHCP (Dynamic Host Configuration Protocol) automatically hands out IP addresses, subnet masks, default gateways and DNS servers to hosts, saving manual configuration.
The process is DORA:
- Discover - client broadcasts DHCPDISCOVER (destination 255.255.255.255)
- Offer - server replies DHCPOFFER with a proposed lease
- Request - client broadcasts DHCPREQUEST asking to accept that offer
- Acknowledge - server confirms with DHCPACK
If a client roams back onto a subnet where it already has a valid lease, it can skip straight to Request/Acknowledge (a shortened exchange).
When the DHCP server sits on a different subnet from the client, a router does not forward broadcasts by default, so you configure the ip helper-address command on the client-side interface. This turns the broadcast into a unicast and forwards it to the DHCP server, also relaying DNS, TFTP and other UDP broadcast services.
On IOS routers you can build a small DHCP server with ip dhcp pool NAME, then network, default-router and dns-server sub-commands. Use ip dhcp excluded-address to stop the pool handing out addresses reserved for statics like gateways and servers - do this before defining the pool or the router will hand those addresses out first.
Common mistake: forgetting the excluded-address statement, causing an IP conflict with the gateway.
NAT
NAT (Network Address Translation) maps private IP addresses (RFC 1918: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to a public address so multiple internal hosts can share limited public IPs and reach the internet.
- Static NAT - one-to-one, permanent mapping, good for servers that need a fixed public address
- Dynamic NAT - pool of public addresses matched to a pool of private addresses, first-come first-served
- PAT (NAT overload) - many private addresses share one public address, differentiated by source port number; this is what most home and small business routers use
Key terms: inside local (private address as seen inside), inside global (public address as seen outside). Interfaces must be marked ip nat inside or ip nat outside or translation will not happen.
Common mistake: configuring the NAT pool/ACL correctly but forgetting the inside/outside interface commands.
NTP
NTP (Network Time Protocol) synchronises device clocks across a network, which matters for accurate logging, certificate validation and troubleshooting timelines.
NTP uses a stratum hierarchy: stratum 0 devices are reference clocks (atomic/GPS), stratum 1 servers are directly connected to them, and each hop away adds one to the stratum number, up to a maximum of stratum 15 (stratum 16 means unsynchronised).
Devices can operate in client mode (ntp server IP) or peer mode (ntp peer IP) for mutual synchronisation between equals. Check sync state with show ntp status and show ntp associations - look for the sys.peer indicated by an asterisk.
Common mistake: assuming NTP works instantly - convergence can take several minutes as the client gradually steps or slews its clock.
What does DORA stand for in the DHCP process?
Discover, Offer, Request, Acknowledge
tap to reveal
What command relays DHCP broadcasts across a router to a remote DHCP server?
ip helper-address, configured on the client-side interface
tap to reveal
Why must ip dhcp excluded-address be set before creating the DHCP pool?
So the router does not lease out reserved addresses (like the default gateway) to clients
tap to reveal
Name the three RFC 1918 private address ranges.
10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
tap to reveal
What is PAT and what does it use to distinguish hosts?
NAT overload; it uses unique source port numbers to let many private hosts share one public IP
tap to reveal
What is the difference between static and dynamic NAT?
Static NAT is a fixed one-to-one mapping; dynamic NAT assigns addresses from a pool on a first-come first-served basis
tap to reveal
What two interface commands are required for NAT to actually translate traffic?
ip nat inside and ip nat outside
tap to reveal
Define inside local and inside global addresses.
Inside local is the private address as seen inside the network; inside global is the translated public address as seen outside
tap to reveal
What is an NTP stratum 0 device?
A reference clock source such as an atomic clock or GPS receiver
tap to reveal
What does NTP stratum 16 mean?
The device is unsynchronised
tap to reveal
What is the difference between ntp server and ntp peer commands?
ntp server configures client mode (one-way sync from a server); ntp peer configures mutual peer synchronisation between equals
tap to reveal
How do you check which NTP source a router is currently synchronised to?
show ntp associations - the sys.peer is marked with an asterisk
tap to reveal
What is the maximum useful NTP stratum number before a device is considered unsynchronised?
15 (stratum 16 means unsynchronised)
tap to reveal