DHCP — server, relay, and client
DHCP gives every host an IP, mask, gateway, and DNS without anyone touching the keyboard. This chapter walks through the DORA exchange, configures a router as a DHCP server, and explains the ip helper-address relay.
DHCP gives every host an IP, mask, gateway, and DNS without anyone touching the keyboard. This chapter walks through the DORA exchange, configures a router as a DHCP server, and explains the ip helper-address relay.
All four are sent inside UDP. The client's source IP is 0.0.0.0 until the lease is granted; broadcast destination 255.255.255.255 is used for Discover and Request.
R1(config)# ip dhcp excluded-address 10.0.10.1 10.0.10.10
R1(config)# ip dhcp pool LAN10
R1(dhcp-config)# network 10.0.10.0 /24
R1(dhcp-config)# default-router 10.0.10.1
R1(dhcp-config)# dns-server 8.8.8.8 1.1.1.1
R1(dhcp-config)# lease 7
R1(dhcp-config)# end
R1# show ip dhcp pool
R1# show ip dhcp binding2 more sections in this chapter, plus a 2-question quiz and a hands-on lab.
You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: Network Foundations end-to-end and saves your labs — start there, no card required.
NetForge-AI is an independent educational platform and is not affiliated with, endorsed by, or sponsored by any networking vendor or certification body. All product names, protocols, and standards referenced are the property of their respective owners and are used for descriptive, educational purposes only.
Free account · no card required · compare plans any time