Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring an Extended DHCP Relay Server on EX Series Switches (CLI Procedure)

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:

  1. Create at least one DHCP server group, which is a group of 1 through 5 DHCP server IP addresses:
    [edit forwarding-options dhcp-relay]user@switch# set server-group server-group-name ip-address
  2. Set the global active DHCP server group. The DHCP relay server relays DHCP client requests to the DHCP servers defined in the active server group:
    [edit forwarding-options dhcp-relay]user@switch# set active-server-group server-group-name
  3. Create a DHCP relay group that includes at least one interface. DHCP relay runs on the interfaces defined in DHCP groups:
    [edit forwarding-options dhcp-relay]user@switch# set group group-name interface interface-name
  4. (Optional) Configure overrides of default DHCP relay behaviors, at the global level. See the override options in the overrides statement.
    [edit forwarding-options dhcp-relay]user@switch# set overrides
  5. (Optional) Configure DHCP relay to use the DHCP vendor class identifier option (option 60) in DHCP client packets, at the global level:
    [edit forwarding-options dhcp-relay]user@switch# set relay-option option-number 60
  6. (Optional) Configure settings for a DHCP relay group that override the settings at the global level, using these statements:
    [edit forwarding-options dhcp-relay group group-name]user@switch# set active-server-group server-group-nameuser@switch# set overridesuser@switch# set relay-option option-number 60
  7. (Optional) Configure settings for a DHCP relay group interface that override the settings at the global and group levels, using these statements:
    [edit forwarding-options dhcp-relay group group-name interface interface-name]user@switch# excludeuser@switch# set overridesuser@switch# set traceuser@switch# set upto upto-interface-name

Published: 2014-04-23