This article describes how to configure an SRX device as a Relay Agent, using the JDHCP feature (supported by JunosV App Engine 12.x or later releases).
Starting with JunosV App Engine 12.x, the DHCP process has been modified and the new process is JDHCP. Even though both processes run on the SRX, it is recommended to use JDHCP and not DHCP.
dhcp-clients -----------ge-0/0/1.0 -SRX--ge-0/0/0.0 ---------------------DHCP Server
Relay interface is ge-0/0/1.0 DHCP server facing interface is ge-0/0/0.0
Both interfaces are in dhcp-relay custom virtual router.
set routing-instances dhcp-relay instance-type virtual-router set routing-instances dhcp-relay interface ge-0/0/0.0 set routing-instances dhcp-relay interface ge-0/0/1.0
set routing-instances dhcp-relay forwarding-options dhcp-relay server-group wifi-server 192.168.1.254
set routing-instances dhcp-relay forwarding-options dhcp-relay active-server-group wifi-server
set routing-instances dhcp-relay forwarding-options dhcp-relay group relay-in-vr interface ge-0/0/1.0
root@vsrx-1# run show dhcp relay statistics routing-instance dhcp-relay Packets dropped: Total 0 Messages received: BOOTREQUEST 67 DHCPDECLINE 0 DHCPDISCOVER 38 DHCPINFORM 0 DHCPRELEASE 0 DHCPREQUEST 29 Messages sent: BOOTREPLY 3 DHCPOFFER 1 DHCPACK 1 DHCPNAK 1 DHCPFORCERENEW 0
root@vsrx-1# run show dhcp relay binding routing-instance dhcp-relay IP address Session Id Hardware address Expires State Interface 10.10.10.2 8 00:0c:29:e9:6d:00 85624 BOUND ge-0/0/1.0
Note : Dhcp-Relay feature in chassis cluster is supported from Junos OS 12.1X46D10.
http://pathfinder.juniper.net/feature-explorer/select-software.html?swName=Junos+OS&typ=1#family=&pid=21900220&platform=SRX220&rel=12.1X46-D10&sid=415&stat=0.8709709481336176&swName=Junos+OS http://pathfinder.juniper.net/feature-explorer/select-software.html?swName=Junos+OS&typ=1#family=&pid=21900220&platform=SRX5800&rel=12.1X46-D10&sid=415&stat=0.8709709481336176&swName=Junos+OS