Greetings, This should work, you just need to configure an IRB interface to encapsulate those discovers and send them to the server you desire, as a recommendation please eliminate the pool on the SRX acting as DHCP server for the VLAN you are trying to use the helper/relay function.
Assuming that you already have the VLAN you want to be configured and the IRB associated with the VLAN you will just need to add the relay configuration and the security policies and the host inbound traffic to let the DHCP packets go back and forth.
In this configuration we can see that we have two servers acting, one for Data-Vlan and another one for Voice-Vlan:
188.8.131.52; ---------> remote dhcp server
184.108.40.206; ---------> (optional) 2nd dhcp server
interface ge-0/0/0.0; ---------> Iinterface working as the gateway on the Data VLAN
interface irb.10; ---------> Interface working as a gateway on Voice VLAN
If you had this command: set forwarding-options active-server-group <name> will allow only a single group of servers to work. Most of the time this is used, not always you have several DHCP servers
Remember that you cannot have a binding to two servers, the dhcp-relay agent will not let you do that unless you configure the following command: set forwarding-options dhcp-relay overrides delete-binding-on-renegotiation
If this solves your problem, please mark this post as "Accepted Solution" so we can help others too \:)/
Lil Dexx JNCIE-ENT#863, 3X JNCIP-[SP-ENT-DC], 4X JNCIA [cloud-DevOps-Junos-Design], Champions Ingenius, SSYB
As I mentioned earlier, you can't configure more than one DHCP role on a single interface. i.e. Interface irb.5 can only act as either JDHCP server or JDHCP relay agent or JDHCP client.
The reason for the error is you have irb.5 configured both as JDHCP relay and JDHCP server because I believe you didn't get the IP address of irb.5 dynamically so I excluded the JDHCP client. Please correct me if I'm wrong on the last part.
So, under "set system services dhcp-local-server group" check whether you have irb.5 configured. If so, please delete that line and check whether the commit is happening. Please note that this line is important for JDHCP server to function and deleting this line will break your DHCP server.
If none of the above doesn't apply for your case, please provide me with the output of the following commands:
user@host> show interfaces terse | match inet | no-more
user@host> show configuration system services | display set | no-more
(If you are having routing-instance, please run the below commands under routing-instance)
user@host> show configuration access address-assignment | display set | no-more
user@host> show configuration dhcp-relay | display set | no-more
Thanks, π00bm@$t€®. Please, Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!