This article describes how to configure an SRX device as a Relay Agent using the JDHCP daemon.
Starting with Junos 12.x, a significant enhancement has been implemented in the DHCP process, introducing a new daemon known as JDHCP. While it remains feasible to employ the legacy relay-agent configuration, a crucial consideration arises when configuring an SRX device to function as both a DHCP server and a DHCP relay-agent.
It is imperative to note that only one process—either DHCP or JDHCP—can operate at any given time. Hence, careful attention must be directed towards ensuring that the configuration aligns with the desired functionality.
Topology:
DHCP client--------------------ge-0/0/0.0(SRX-RELAY-AGENT)ge-0/0/1.0----------------------DHCP Server
set forwarding-options dhcp-relay server-group DHCP-SERVER 1.1.1.1 ----(DHCP server IP-address)
set forwarding-options dhcp-relay active-server-group DHCP-SERVER
set forwarding-options dhcp-relay group relay interface ge-0/0/0.0
set security zones security-zone <zone-name> interfaces ge-0/0/0.0 host-inbound-traffic system-services dhcp
Above is the bare minimum configuration required in SRX to act as an relay-agent. However, it's essential to note that within the dhcp-relay hierarchy, you have a spectrum of additional options available to use as per your requirement.
2024-02-29 : Article Created
2025-12-28 : Added host-inbound service command to allow dhcp services on interface