Configure a DHCP relay interface

You can enable the Layer 3 DHCP relay agent on a routing interface and let the interface relay DHCP messages between DHCP clients and DHCP servers that are located in a different IP subnet.

To configure a DHCP relay interface:

  1. Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
    The System Information page displays.
  2. Select System > Services > DHCP Relay.

    The DHCP Relay page display.

  3. Scroll down to the lower DHCP relay section at the bottom of the page.

    If no routing interfaces are configured on the switch, the DHCP Relay configuration table does not display on the page.

  4. Select whether to display physical interfaces, VLANs, or both by clicking one of the following links above the table heading:
    • 1 or Unit ID for a stacked switch:

      • 1: If no switch stack is configured, the physical interfaces for the switch are displayed.
      • Unit ID for a stacked switch: If a switch stack is configured, the physical interfaces for the switch with the selected stack unit ID are displayed.
    • VLANS: Only VLANs are displayed.

    • All: Both physical interfaces and VLANs are displayed, or for a switch stack, both physical interfaces and VLANs on all switches are displayed.

  5. Select one or more interfaces by taking one of the following actions:
    • To configure a single interface, select the check box associated with the interface, or type the interface number in the Go To Interface field and click the Go button.

    • To configure multiple interfaces with the same settings, select the check box associated with each interface.

    • To configure all interfaces with the same settings, select the check box in the heading row.

  6. Select one of the following Server Override Mode radio buttons:
    • Disable: Suboption 5 and suboption 11 are not added to Option 82 of the incoming DHCP packet.

      Suboption 5 specifies the IP subnet from which the DHCP server must assign IP addresses.

      Suboption 11 specifies that the server ID can be replaced with a new ID.

    • Enable: Suboption 5 and suboption 11 are added to Option 82 of an incoming DHCP packet.

  7. From the Source Interface menu, select an interface or VLAN.

    This is the interface or VLAN that is connected to the DHCP servers that are located in a different IP subnet.

  8. Click the Apply button.

    Your settings are saved.

  9. To save the settings to the running configuration, click the Save icon.