Understanding DHCP Relay Agents (IP Helper)
A DHCP relay agent forwards broadcast DHCP messages from a client to a unicast address of a remote DHCP server using the `ip helper-address` command.
The Problem with Broadcasts
DHCP clients use broadcast messages (Discover) to find a server. Routers drop broadcasts by default, meaning a client cannot reach a DHCP server on a different subnet.
The DHCP Relay Solution
A DHCP Relay Agent intercepts the broadcast DHCP Discover message and converts it into a unicast message, forwarding it directly to the specified DHCP server.
Configuring IP Helper
On the router interface connected to the clients, use the command `ip helper-address [dhcp_server_ip]` to enable the relay functionality.
❓ Frequently Asked Questions
Does ip helper-address only forward DHCP?
No, by default it forwards 8 different UDP broadcast protocols, including TFTP, DNS, and NTP.
Where is the ip helper-address applied?
It is applied on the router or Layer 3 switch interface that serves as the default gateway for the DHCP clients.
Can I have multiple helper addresses?
Yes, you can configure multiple `ip helper-address` commands to provide redundancy.