Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

DHCP Relay Design and Implementation

 

For an overview of the DHCP Relay implementation in this design, see the DHCP Relay section in Data Center Fabric Blueprint Architecture Components.

DHCP Relay was validated on centrally-routed bridging overlays only. See Centrally-Routed Bridging Overlay Design and Implementation.

Figure 1 provides a sample DHCP server and client placement in this design.

Figure 1: DHCP Server and Client Setup
DHCP Server and Client
Setup

This section covers the following DHCP Relay scenarios:

Enabling DHCP Relay: DHCP Client and Server in Same VLAN and Connected to Same Leaf Device

Figure 2 shows how DHCP traffic might traverse the overlay network when the DHCP client and server connect to access interfaces on the same leaf device and are in the same VLAN.

Figure 2: DHCP Relay—Same Leaf Device and Same VLAN
DHCP Relay—Same
Leaf Device and Same VLAN

DHCP traffic is handled like any other intra-VLAN traffic in this scenario. It could also have been passed in VNI_10000 on leaf device 10 or 11. No additional configuration of the leaf or spine devices is required to support this traffic exchange.

Enabling DHCP Relay: DHCP Client and Server in Same VLAN and Connected to Different Leaf Devices

Figure 3 shows how DHCP traffic might be forwarded when the DHCP client and server connect to access interfaces on non-connected leaf devices that have interfaces in the same VLAN.

Figure 3: DHCP Relay—Different Leaf Device and Same VLAN
DHCP Relay—Different
Leaf Device and Same VLAN

In this scenario, the DHCP traffic remains in VNI_10000 and is passed over the topology using a VXLAN tunnel. No additional configuration of the leaf or spine devices is required to support this traffic exchange.

Enabling DHCP Relay: DHCP Client and Server in Different VLANs

Figure 4 shows how DHCP traffic is forwarded when the DHCP client and server connect to access interfaces in different VLANs.

Figure 4: DHCP Relay—Different VLANs
DHCP Relay—Different
VLANs

When the DHCP client and server are in different VNI, DHCP traffic is forwarded to a spine device. The DHCP traffic is forwarded between VNIs via the IRB interfaces on the spine device and then passed to the destination DHCP client or server.

The IRB interfaces on the spine devices must be configured to support DHCP Relay.

To prepare the network to support DHCP relay when the DHCP client and server are in different VLANs:

  1. Ensure the centrally-routed bridging overlay is configured. See Centrally-Routed Bridging Overlay Design and Implementation.
  2. Enable DHCP relay in a routing instance with the forward only option. The forward only option ensures that DHCP packets are forwarded on the switch but that no DHCP server client bindings are created.

    Spine Device:

  3. Create and activate the DHCP relay server group. The DHCP relay server group include one or more DHCP servers—individually identified by IP address—and a user-defined name for the servers.

    In this reference design, one DHCP server—10.1.0.211—is assigned into a DHCP server group named DHCP_SERVER_GROUP_1.

    Spine Device:

  4. Associate the server group with the IRB interfaces on the spine devices.

    In this topology, irb.100 and irb.200 relay DHCP traffic between VNI_10000 and VNI_20000.

    Spine Devices:

  5. Confirm that the DHCP hosts received an IP address by reviewing the ARP table on the spine device.

DHCP Relay — Release History

Table 1 provides a history of all of the features in this section and their support within this reference design.

Table 1: DHCP Relay Release History

Release

Description

17.3R1-S1

All features documented in this section are supported on all spine devices within the solution running Junos OS Release 17.3R1-S1 or later.

Support for DHCP Relay between VLANs in edge-routed bridging overlays has not been validated for this reference design.

Related Documentation