DHCP et DNS CCNA expliqués : qu’est-ce qui fait fonctionner les réseaux silencieusement ?
DHCP et DNS CCNA expliqués simplement : deux protocoles qui travaillent discrètement derrière chaque connexion.
Chaque fois qu’un appareil se connecte à un réseau et navigue sur un site web, deux héros invisibles œuvrent en coulisses :
- DHCP (Dynamic Host Configuration Protocol) – attribue automatiquement des adresses IP
- DNS (Système de noms de domaine) – traduit les noms de domaine en adresses IP
Tous deux sont essentiels pour le réseau et largement testés dans l’examen CCNA.
Qu’est-ce que le DHCP ?
Le DHCP attribue automatiquement des adresses IP, des masques de sous‑réseau, des passerelles par défaut, et des adresses de serveurs DNS aux appareils d’un réseau.
Sans DHCP :
Vous devez configurer manuellement chaque appareil.
Avec DHCP :
Les adresses IP sont attribuées automatiquement — aucune configuration manuelle requise.
Comment fonctionne le DHCP – le processus DORA
| Étape | Description |
|---|---|
| Découverte | Le client diffuse une requête pour trouver le serveur DHCP |
| Offre | Le serveur répond avec une IP disponible |
| Demande | Le client demande à accepter l’IP proposée |
| Accusé de réception | Le serveur confirme et loue l’IP |
👉 Ce processus est connu sous le nom de DORA (Discover, Offer, Request, Acknowledge).
Configuration DHCP sur les routeurs Cisco
Router(config)# ip dhcp pool LAN-POOL
Router(dhcp-config)# network 192.168.10.0 255.255.255.0
Router(dhcp-config)# default-router 192.168.10.1
Router(dhcp-config)# dns-server 8.8.8.8
Router(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.10
➡️ This sets up a pool of IP addresses and reserves .1 to .10 for static/manual assignments.
DHCP Relay: When the Server Isn’t on the Local Subnet
DHCP’s Discover message is a broadcast, and broadcasts do not cross a router by default – so a client on a subnet with no local DHCP server would never reach one sitting elsewhere on the network. The fix is a DHCP relay (also called an IP helper), configured on the router interface closest to the client:
Router(config)# interface gigabitEthernet 0/1
Router(config-if)# ip helper-address 192.168.1.5
This converts the client’s broadcast into a unicast packet aimed directly at the DHCP server’s address, and relays the server’s reply back the same way. This is exactly how most real enterprise networks work – one or two central DHCP servers, with every other subnet’s router relaying requests to them rather than running a DHCP server on every single subnet.
DHCP Troubleshooting Commands
When a client is not getting an address, these three commands narrow down the cause quickly:
Router# show ip dhcp binding
Router# show ip dhcp conflict
Router# debug ip dhcp server events
show ip dhcp binding confirms whether the router has actually leased an address to the client’s MAC – no binding means the Discover never reached the pool, which usually points back to a missing ip helper-address on the client’s subnet. show ip dhcp conflict shows addresses the server detected as already in use, often caused by a static IP accidentally set inside the DHCP pool’s range.
What is DNS?
DNS (Domain Name System) translates human-friendly domain names like google.com into machine-friendly IP addresses like 142.250.190.78.
Without DNS, users would need to remember numeric IP addresses to visit websites.
Testing DNS Resolution Directly
Before assuming a “website won’t load” problem is DNS, confirm it directly rather than guessing – a browser error message does not tell you which layer actually failed:
C:\> nslookup google.com
$ dig google.com
nslookup (Windows and also available on Linux/macOS) and dig (Linux/macOS, more detailed output) both query a DNS server directly and show exactly what it returned. If the lookup succeeds here but the website still does not load in a browser, the problem is not DNS – it is routing, a firewall, or the web server itself. This distinction, confirmed with one command instead of assumed, is exactly the kind of troubleshooting discipline the CCNA exam expects and that saves real time in the field.
How DNS Works – Step-by-Step
- You type
facebook.comin your browser. - The DNS resolver checks if it already knows the IP.
- If not, it queries a root server → top-level domain server → authoritative server.
- It returns the IP to your browser → website loads!
DNS Terms to Know (for CCNA)
| Term | Description |
|---|---|
| A Record | Maps domain to IPv4 address |
| AAAA Record | Maps domain to IPv6 address |
| CNAME | Alias for another domain |
| MX Record | Directs email to the mail server |
DHCP vs Static IP – When to Use What?
| DHCP (Dynamic) | Static IP |
|---|---|
| Automatically assigned | Manually configured |
| Great for clients | Best for servers, printers |
| Easy to manage | Harder in large networks |
| IP may change | IP remains the same |
🧪 CCNA Packet Tracer Lab – DHCP in Action
Lab Scenario:
You have a router, a switch, and multiple PCs. PCs should receive IPs automatically.
- Configure DHCP pool on router
- Connect PCs and enable DHCP
- Verify IPs are assigned correctly using
ipconfig
Optional: Assign a static IP to a printer or server and exclude that range.
📡 Real-World DNS Example
Let’s say you own yourbrand.com.
To point it to a hosting server:
- A Record → your website’s IP
- CNAME → alias like
blog.yourbrand.comto redirect to a CMS - MX Record → email hosting provider
DNS is the backbone of all web and mail-based services.
✅ Essential Network Devices for CCNA
🌐 Guide de configuration Cisco DHCP
🌐 Comment fonctionne le DNS – Documentation Cloudflare
🙋♂️ FAQ – DHCP et DNS
Qu'est-ce que le DHCP dans le CCNA ?
DHCP signifie Dynamic Host Configuration Protocol. Il assigne automatiquement la configuration IP aux périphériques réseau, couverts dans les examens et les laboratoires CCNA.
À quoi sert le DNS dans un réseau ?
Le DNS résout les noms de domaine en adresses IP, permettant aux utilisateurs d'accéder aux sites Web en utilisant des noms plutôt que des chiffres.
Puis-je utiliser DHCP et DNS ensemble ?
Oui. Le DHCP assigne l'IP et inclut l'adresse du serveur DNS dans le bail, permettant aux appareils de résoudre les noms de domaine immédiatement.
Le DHCP est-il meilleur qu'une IP statique ?
Pour les clients, oui. Pour les appareils tels que les imprimantes, les serveurs et les routeurs, les IP statiques sont préférables.
Si vous préférez que quelqu'un vous guide pas à pas, ou si vous avez besoin d'un laboratoire Packet Tracer spécifique réalisé et expliqué plutôt que de le résoudre seul, consultez le Cours CCNA & Packet Tracer page expliquant comment cela fonctionne.

