Troubleshooting notes · IP services
DHCP relay not working: ip helper-address on the wrong interface
Clients behind a router never get an address from the central DHCP server. Why ip helper-address belongs on the client-facing interface, and how the server picks the pool.
The symptom
Clients on a LAN behind a router never get an IP address from the central DHCP server. The router has an ip helper-address, but on the wrong interface:
interface Ethernet0/0
ip helper-address 10.0.12.1
Why it happens
DHCP starts with a broadcast (DHCPDISCOVER), and routers don't forward broadcasts. ip helper-address turns the broadcast into a unicast to the server, but only on the interface where the broadcast arrives: the interface facing the clients. Configured on the server-facing interface, it never sees a single DHCPDISCOVER.
The fix
Move the helper to the LAN interface:
R2(config)# interface Ethernet0/0
R2(config-if)# no ip helper-address 10.0.12.1
R2(config-if)# interface Ethernet0/1
R2(config-if)# ip helper-address 10.0.12.1
The relay puts its own LAN address (here 10.10.10.1) in the giaddr field. The server uses it to pick the pool whose network contains that address, and it sends the reply back to it, so the server also needs a route to the client LAN.
Check it
show ip interface brief on the client should show an address learned by DHCP, and show ip dhcp binding on the server should list it.
Practise this fault
This fault is in ENARSI Lab 39 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.