Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

DHCP Relay

Juniper Cloud-Native Router can relay DHCP messages between cascaded Next-Generation Distributed Units (NGDUs) and an external DHCP server.

Juniper Cloud-Native Router can be configured as a Stateless DHCP Relay agent for an L2-L3 deployment. It can relay DHCP messages between cascaded Next-Generation Distributed Units (NGDUs) and an external DHCP server. It supports simple packet forwarding non-snooping DHCPv4 and DHCPv6 relay feature between the DHCP client and DHCP server. It does not maintain leases or client state. When configured as a DHCPv4 relay agent, Cloud-Native Router is bypassed for subsequent lease renewals, once the client has obtained its address and configuration from the DHCP server. You can configure the same behavior for DHCPv6 implementation as well. In the forward-only implementation, the relay agent does not participate in the state exchange between the client and server. Hence, events such as reboot, Graceful Routing Engine switchover (GRES), or failover can quickly self-correct as the clients retry interrupted transactions.

Configuration

The following table lists the knobs and overrides that are supported for DHCPv4 and DHCPv6 relay options on Cloud-Native Router:

Table 1: DHCPv4 and DHCPv6 Support

Protocol

Supported Knobs

Supported Overrides

DHCPv4

forward-only; 
relay-option-82 
always-write-option-82  (circuit-id | remote-id);
relay-source;
trust-option-82;
user-defined-option-82 string 

DHCPv6

forward-only; 
relay-agent-interface-id 
relay-agent-remote-id 
No DHPCv6 overrides supported

The configuration syntax for DHCPv4 relay agent is provided below. You can configure DHCPv4 relay agent under the [edit] and [edit routing-instances] hierarchy. Please review DHCP Relay CLI for command description and options.

Note:

If a packet arrives with an option-82 record and trust-option-82 is not configured the packet will be dropped.

If a packet arrives with an option-82 record while relay-option-82 is configured, the original incoming option-82 value is preserved with no changes.

The configuration syntax for DHCPv6 relay agent is provided below. You can configure DHCPv4 relay agent under the [edit] and [edit routing-instances] hierarchy. Please review DHCPv6 Relay CLI for command description and options.

You can configure DHCP tracing using the traceoptions configuration as shown in the snippet below:

Verification

You can verify the DHCP statistics via the cRPD shell.

Use show dhcp statistics to view DHCP service statistics.

Use show dhcp relay statistics to display DHCP relay statistics.

Use show dhcpv6 relay statistics to view DHCPv6 relay statistics.

You can clear the DHCP statistics using the commands provided below: