Configuring an Extended DHCP Relay Server on EX Series Switches (CLI Procedure)
Copyright © 2017, Juniper Networks, Inc.
You can configure an EX Series switch to act as an extended DHCP relay agent. This
means that a locally attached host can issue a DHCP request as a broadcast message
and the switch configured for DHCP relay relays the message to a specified DHCP server.
Configure a switch to be a DHCP relay agent if you have locally attached hosts and a
remote DHCP server.
Before you begin:
Ensure that the switch can connect to the DHCP server.
To configure a switch to act as an extended DHCP relay agent server:
Create at least one DHCP server group, which is a group of 1 through 5 DHCP server
1.
IP addresses:
[edit forwarding-options dhcp-relay]
user@switch# set
server-group
Set the global active DHCP server group. The DHCP relay server relays DHCP client
2.
requests to the DHCP servers defined in the active server group:
[edit forwarding-options dhcp-relay]
user@switch# set
active-server-group
Create a DHCP relay group that includes at least one interface. DHCP relay runs on
3.
the interfaces defined in DHCP groups:
[edit forwarding-options dhcp-relay]
user@switch# set
group
(Optional) Configure overrides of default DHCP relay behaviors, at the global level.
4.
See the override options in the
[edit forwarding-options dhcp-relay]
user@switch# set overrides
(Optional) Configure DHCP relay to use the DHCP vendor class identifier option
5.
(option 60) in DHCP client packets, at the global level:
[edit forwarding-options dhcp-relay]
user@switch# set
relay-option option-number
(Optional) Configure settings for a DHCP relay group that override the settings at the
6.
global level, using these statements:
[edit forwarding-options dhcp-relay group group-name]
user@switch# set
active-server-group
user@switch# set
overrides
user@switch# set
relay-option option-number
server-group-name ip-address
server-group-name
group-name
interface
interface-name
overrides
statement.
60
server-group-name
60
Chapter 4: DHCP Relay Agent
49