Versie: 2026 | Voor Cisco Packet Tracer 8.1+ | Focus: Aan-zetten, configureren, verificatie, troubleshooting van DHCP
ELI5: DHCP is als een automatische parkeerhulp die IPs uitdeelt zodat devices niet botsen. Dit guide dekt alles voor Cisco IOS.
ELI5: Bouw netwerk met router als DHCP-server voor clients.
ELI5: Zet de dienst aan (vaak default aan).
enable
conf t
service dhcp
end
ELI5: Maak een 'zwembad' van IPs met opties.
conf t
ip dhcp excluded-address 192.168.1.1 192.168.1.10 // Uitsluiten voor static
ip dhcp pool LAN_POOL
network 192.168.1.0 255.255.255.0
default-gateway 192.168.1.1
dns-server 8.8.8.8, 8.8.4.4
domain-name examen.local
lease 0 0 1 // 1 dag
exit
end
ELI5: Doorsturen van verzoeken naar externe server.
interface GigabitEthernet0/0.10 // Subinterface voor VLAN 10
ip dhcp-helper 192.168.100.10 // DHCP server IP
exit
ELI5: Reserveer IP voor specifiek device via MAC.
ip dhcp pool PRINTER_RESERVE
host 192.168.1.50 255.255.255.0
client-identifier 01aa.bbcc.ddee.ff // MAC met 01 prefix
exit
| Commando | Wat check je? | Voorbeeld Output |
|---|---|---|
| show ip dhcp binding | Gelease IPs | 192.168.1.20 Infinite Automatic |
| show ip dhcp pool | Pool details | Leased addresses: 5 |
| show ip dhcp statistics | Activiteit | DHCPDISCOVER: 10 |
| show running-config | section dhcp | Config | ip dhcp pool LAN_POOL |
ELI5: Debug om problemen te zien, zoals geen verzoeken.
debug ip dhcp server packet // Aan
debug all // Uit
clear ip dhcp binding all // Clear leases
clear ip dhcp conflict * // Clear conflicts
ip dhcp pool ADV_POOL
option 150 ip 192.168.1.100 // Voor TFTP, e.g. VoIP
exit
ip dhcp snooping // Enable snooping globally
ip dhcp snooping vlan 10 // Voor VLAN
interface Fa0/1
ip dhcp snooping trust // Voor trusted port (naar server)
exit