Supported Platforms
Configuring a DHCP Relay Agent
Minimum DHCP Relay Agent Configuration
The following sample output shows the minimum configuration you must use to configure an SRX Series device as a DHCP relay agent. In this output, the active server group is named server-1 and its IP address is 1.1.1.1. The DHCP relay agent configuration is applied to a group named bob. Within this group, the DHCP relay agent is enabled on interface ge-1/0/1.0.
![]() | Note: To configure the DHCP relay agent in a routing instance, configure the dhcp-relay statements in the [edit routing-instances] hierarchy level . |
Verifying and Managing DHCP Relay Configuration
Purpose
View or clear address bindings or statistics for DHCP relay agent clients.
Action
- To display the address bindings for DHCP relay agent clients:user@host> show dhcp relay binding
- To display DHCP relay agent statistics:user@host> show dhcp relay statistics
- To clear the binding state of DHCP relay agent clients:user@host> clear dhcp relay binding
- To clear all DHCP relay agent statistics:user@host> clear dhcp relay statistics
To clear or view information about client bindings and statistics in a routing instance, run the following commands:
- show dhcp relay binding routing instance <routing-instance name>
- show dhcp relay statistics routing instance <routing-instance name>
- clear dhcp relay binding routing instance <routing-instance name>
- clear dhcp relay statistics routing instance <routing-instance name>
![]() | Note: On all SRX Series devices, DHCP relay is unable to update the binding status based on DHCP_RENEW and DHCP_RELEASE messages. |