Fixing DHCP and DNS Issues for the CCNA Exam
DHCP issues often involve exhausted pools or missing IP helper addresses on router interfaces, while DNS issues manifest as the inability to resolve domain names to IPs despite having network connectivity.
DHCP Relay and IP Helper Addresses
When a DHCP client and server are on different VLANs/subnets, the client's broadcast DHCPDISCOVER message won't reach the server. The router interface acting as the default gateway must have the `ip helper-address [server-ip]` command configured to convert broadcasts to unicasts. Missing this command is the #1 cause of DHCP failures in segmented networks.
Verifying DHCP Pool Exhaustion
If clients cannot obtain IPs on a local router configured as a DHCP server, the pool might be full or excluded addresses may be misconfigured. Use `show ip dhcp binding` to see active leases, and `show ip dhcp pool` to verify the total number of available versus leased addresses.
Diagnosing DNS Resolution
If a user can ping `8.8.8.8` but cannot ping `google.com`, it is a DNS issue. On a Cisco router, ensure domain lookups are enabled (`ip domain-lookup`) and a name server is specified (`ip name-server x.x.x.x`). Use `ping` to domain names directly from the CLI to test the router's DNS resolution capabilities.
❓ Frequently Asked Questions
What command configures a DHCP relay agent?
The interface-level command 'ip helper-address [IP_ADDRESS]' configures a router to relay DHCP messages.
How do you view currently leased DHCP IP addresses on a router?
Use the command 'show ip dhcp binding'.
How do you stop a router from attempting to resolve mistyped commands via DNS?
Use the global configuration command 'no ip domain-lookup'.