How to Configure a DHCP Relay
This chapter provides information about configuring the Dynamic Host Configuration Protocol (DHCP) relay for a Juniper Mist™ Edge appliance.
DHCP Relay Overview
In a Juniper Mist™ network, the DHCP client-server protocol provides IP hosts with IP addresses and other related configuration information automatically. A DHCP relay (agent) is a host that sends DHCP packets between clients and servers that are not on the same physical subnet.
When a wireless client associates with a tunneled wireless LAN (WLAN) on Juniper Mist access points (APs), all the data packets from the wireless client are tunneled to the Juniper Mist Edge appliance. The tunneling occurs through the downstream ports. Thereafter, the Juniper Mist Edge appliance bridges all the data packets, including the DHCP packets. The appliance bridges the packets from the tunneled VLAN to the upstream infrastructure,
The DHCP relay function on Juniper Mist Edge supports IPv4 traffic only
The following image illustrates the client traffic flow between a Juniper Mist Edge appliance and a DHCP server:

Configure a DHCP Relay on a Juniper Mist Edge
Before you can configure a DHCP relay, the tunnel between the Juniper Mist access point (AP) and Juniper Mist Edge must be up and running. See Deploy Juniper Mist Edge at the Organization Level.
You also need the following information:
-
IP address of the DHCP server
-
VLAN ID and IP address
-
Route(IP address) to reach the DHCP server
To configure a DHCP relay on a Juniper Mist Edge appliance:
Configure a DHCP Relay Using the API
In addition to configuring a Dynamic Host Configuration Protocol (DHCP) relay through the Juniper Mist portal, you can configure the DHCP relay on your Juniper Mist Edge appliance using the API.
This is the API endpoint: /api/v1/orgs/{{org id}}/mxedges/{{MistEdge id}}
.
The following output shows the API payload:
