Skip to content
FALCON CORETECHNOLOGIES

// Lesson 33 of 49 · IP services

DHCP

The DORA exchange, configuring a DHCP server on IOS, DHCP relay with ip helper-address, and client-side checks.
2 min read#dhcp#ip-helper

DHCP gives hosts their IP address, mask, default gateway, DNS servers and lease time automatically.

DORA

  1. Discover — the client broadcasts: "is there a DHCP server?" (UDP 68 → 67).
  2. Offer — a server offers an address.
  3. Request — the client broadcasts that it accepts that offer (so other servers withdraw theirs).
  4. Acknowledge — the server confirms; the lease starts.

The client tries to renew at 50% of the lease time directly with the server.

IOS router as a DHCP server

R1(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.20
R1(config)# ip dhcp pool STAFF
R1(dhcp-config)# network 192.168.10.0 255.255.255.0
R1(dhcp-config)# default-router 192.168.10.1
R1(dhcp-config)# dns-server 192.168.1.10 192.168.1.11
R1(dhcp-config)# domain-name corp.example
R1(dhcp-config)# lease 7
  • Exclude the addresses you assign statically (gateways, servers, printers) — exclusions are global, outside the pool.
  • One pool per subnet/VLAN.

DHCP relay

DHCP Discover is a broadcast, and routers do not forward broadcasts. When the server is in another subnet, configure a relay agent on the gateway interface of the clients' VLAN:

R1(config)# interface GigabitEthernet0/0.20
R1(config-subif)# ip helper-address 192.168.1.5

The router converts the broadcast to a unicast towards the server and adds the interface address (giaddr) so the server knows which pool to use.

Router as a DHCP client

Useful on internet-facing interfaces:

R1(config-if)# ip address dhcp

Verify

R1# show ip dhcp binding
R1# show ip dhcp pool
R1# show ip dhcp conflict
R1# show ip dhcp server statistics

On clients: ipconfig /all, ipconfig /release, ipconfig /renew.

Troubleshooting

Symptom Likely cause
Client gets 169.254.x.x No server reached: missing ip helper-address, wrong VLAN, server down, pool exhausted
Client gets an address from the wrong subnet Port in the wrong VLAN, or wrong pool network
Duplicate address warnings Static address inside the pool — add an exclusion

Key points

  • DORA: Discover, Offer, Request, Acknowledge (UDP 67/68).
  • Exclude static addresses; one pool per subnet.
  • ip helper-address on the client-facing interface when the server is remote.
  • 169.254.x.x on a client = DHCP failed.

Sign in to save your lesson progress across devices. You can read every published lesson without an account.