DHCP Server on a Router for CCNA: Pool, Exclusions and DNS

DHCP automatically hands out IP, mask, gateway and DNS to hosts. A Cisco router can act as a DHCP server with one pool per network. It is one of the simplest and most tested IP Services configurations.

Exam domain: IP Services · Level: Beginner · Updated on October 17, 2026 · 2 min read

Topology diagram “DHCP Server on a Router for CCNA: Pool, Exclusions and DNS” with 5 devices and 4 links
Topology: DHCP Server on a Router for CCNA: Pool, Exclusions and DNS

Edit this template Download .json

Learning objectives

Devices and addressing

DeviceTypeDetails
R1 · DHCPRouterDHCP server
G0/0.10 192.168.10.1
G0/0.20 192.168.20.1
SW1SwitchSwitch
Trunk to router
PC1PC / userVLAN 10
DHCP
PC2PC / userVLAN 20
DHCP
PC3PC / userVLAN 20
DHCP

Reference configuration (Cisco IOS)

R1

ip dhcp excluded-address 192.168.10.1 192.168.10.20
ip dhcp excluded-address 192.168.20.1 192.168.20.20
ip dhcp pool VLAN10
 network 192.168.10.0 255.255.255.0
 default-router 192.168.10.1
 dns-server 8.8.8.8 1.1.1.1
 lease 7
ip dhcp pool VLAN20
 network 192.168.20.0 255.255.255.0
 default-router 192.168.20.1
 dns-server 8.8.8.8 1.1.1.1

Verification commands

CCNA exam tips

DORA process: Discover, Offer, Request, Acknowledge.

If a client gets no IP it falls back to an APIPA 169.254.x.x address.

How to use this template

Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.

To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.

JSON template for the editor

This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.

Edit this template

Frequently asked questions

What does DORA mean?

Discover, Offer, Request and Acknowledge: the four messages of the DHCP process.

What if I need DHCP in several VLANs?

Create a pool per VLAN or use DHCP relay toward a central server.

CCNA and Cisco are registered trademarks of Cisco Systems, Inc. This site is independent, not affiliated with Cisco and does not provide official exam material: the templates are study examples.

More related pages