Minimum DHCP Relay Agent Configuration
The following example describes the minimum configuration required to configure an SRX Series device as a DHCP relay agent. The DHCP servers used in this example are 220.127.116.11 and 18.104.22.168. They are configured as part of same server group named dhcp-server. The server group is then activated by the group name in the active-server-group. The DHCP relay group is enabled on interface ge-0/0/1.0.
- Create a dhcp-relay group that includes at least one interface.user@host# set forwarding-options dhcp-relay group dhcp interface ge-0/0/1.0
- Specify the name of the server-group and add the IP address
for the DHCP servers belonging to the same group.user@host# set forwarding-options dhcp-relay server-group dhcp-server 22.214.171.124user@host# set forwarding-options dhcp-relay server-group dhcp-server 126.96.36.199
- Specify the name of the active server group.user@host# set forwarding-options dhcp-relay active-server-group dhcp-server
- Configure security policy to allow DHCP services on the
required security zone.user@host# set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services dhcp
To configure the DHCP relay agent in a routing instance, configure the dhcp-relay statements in the [edit routing-instances] hierarchy level.