Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Using DHCP Option Information to Selectively Process DHCP Client Traffic

The following procedure describes the steps you use to configure DHCP relay agent to selectively process client traffic—selective processing uses DHCP or DHCPv6 option information to identify, filter, and process client traffic. To configure DHCPv6 support you use the procedure at the [edit forwarding-options dhcp-relay dhcpv6] hierarchy level.

To configure DHCP relay agent to use option information to selectively process DHCP client traffic:

  1. Specify that you want to configure DHCP relay agent support.
    [edit forwarding-options]user@host# edit dhcp-relay
  2. Specify that you want to use the DHCP option feature to selectively process incoming DHCP traffic.
    [edit forwarding-options dhcp-relay]user@host# edit relay-option
  3. Specify the DHCP or DHCPv6 option number DHCP relay uses to identify and process the client traffic. You can specify options 60 and 77 for DHCP relay agent, and options 15 and 16 for DHCPv6 relay agent.
    [edit forwarding-options dhcp-relay relay-option]user@host# set option-number option-number

    For example, to identify traffic that has DHCP option 60 information:

    [edit forwarding-options dhcp-relay relay-option]user@host# set option-number 60
  4. (Optional) Configure the default action that DHCP relay uses when the incoming client traffic does not satisfy any configured match or partial match criteria.

    For example, to configure DHCP relay to drop traffic by default:

    [edit forwarding-options dhcp-relay relay-option]user@host# set default-action drop
  5. (Optional) Configure an exact match condition that filters the client traffic and specifies the associated action for DHCP relay agent to take.

    For example, to select traffic that has an option 60 (configured in the previous step) ASCII string of video25, and then forward that traffic to a named local server group:

    [edit forwarding-options dhcp-relay relay-option]user@host# set equals ascii video25 local-server-group servergroup-east-video
  6. (Optional) Configure a partial match condition that filters the client traffic and specifies the associated action.

    For example, to select traffic that has an option 60 hexadecimal string that starts with 766964656F (left to right), and then forward that traffic without creating a new session:

    [edit forwarding-options dhcp-relay relay-option]user@host# edit starts-with hexadecimal 766964656F forward-only

Published: 2013-02-11