[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Using Option 60 Information to Forward Client Traffic to Specific DHCP Servers

You can configure the extended DHCP relay agent to use the DHCP vendor class identifier option (option 60) in DHCP client packets to forward client traffic to specific DHCP servers. This feature is useful in network environments where DHCP clients access services provided by multiple vendors and DHCP servers. For example, a DHCP client might gain Internet access from a particular DHCP server provided by one vendor, and access IPTV service from a different DHCP server provided by another vendor. The option 60 string enables vendors to include vendor-specific information in DHCP client packets.

You can configure option 60 support globally or for a named group of interfaces. You can also configure option 60 support for the extended DHCP relay agent on a per logical system and per routing instance basis.

To configure the DHCP relay agent to use option 60 vendor-specific information to select a DHCP server to which to forward the client packets:

  1. Specify that you want to configure option 60 support.
    [edit forwarding-options dhcp-relay]
    user@host# edit relay-option-60
  2. (Optional) Configure the DHCP relay to use matching option 60 strings to process client traffic.

    See Using Matching Option 60 Strings to Process DHCP Client Traffic.

  3. (Optional) Configure the DHCP relay to use nonmatching option 60 strings to process client traffic.

    See Using Nonmatching Option 60 Strings to Process DHCP Client Traffic.

This topic includes the following sections:

Using Matching Option 60 Strings to Process DHCP Client Traffic

Configuring option 60 support helps you manage multivendor networks by enabling the extended DHCP relay agent to compare option 60 vendor-specific strings received in DHCP client packets against a list of ASCII or hexadecimal strings that you configure on the router.

You can configure exact match or partial match criteria for option 60 string-to-DHCP server mapping and specify either the ascii statement (to define a nonempty ASCII match string of 1 through 255 alphanumeric characters) or the hexadecimal statement (to define a hexadecimal match string of 1 through 255 hexadecimal characters [0 through 9, a through f, A through F]).

When you configure a partial match, the option 60 string can contain a superset of the configured ASCII or hexadecimal string, provided that the leftmost characters of the option 60 string entirely match the characters in the configured match string. For a partial match, the longest match rule applies. For example, the extended DHCP relay agent matches the string “test123” before it matches the string “test”.

If the option 60 string received in the DHCP client packet matches the configured ASCII or hexadecimal string, you can define one of the following actions for the associated DHCP client packets:

  1. To configure match criteria:
  2. To configure the action to take when the DHCP client packet matches the configured ASCII or hexadecimal string:

For configuration examples that illustrate how to use matching option 60 strings to forward or drop DHCP client traffic, see Example: Using Option 60 Strings to Forward DHCP Client Traffic and Example: Using Option 60 Strings to Drop DHCP Client Traffic.

Using Nonmatching Option 60 Strings to Process DHCP Client Traffic

If the option 60 string received in the DHCP client packet does not match the configured ASCII or hexadecimal string, you can specify the default action that the DHCP relay agent uses for the associated DHCP client packets.

In rare instances, the extended DHCP relay agent might receive a DHCP client packet with an option 60 string of zero (0) length. In this case, there is nothing in the option 60 string against which to match. As a result, such packets are treated as if they contained nonmatching option 60 strings; that is, they can be relayed to a default DHCP relay server, forwarded to a default DHCP extended local server, or dropped.

For configuration examples that illustrate how to use nonmatching option 60 strings to forward or drop DHCP client traffic, see Example: Using Option 60 Strings to Forward DHCP Client Traffic and Example: Using Option 60 Strings to Drop DHCP Client Traffic.

Displaying a Count of Discarded DHCP Packets with Option 60 Information

To display the number of discarded DHCP client packets containing option 60 vendor-specific information, use the following operational command:

For information about using this command, see the JUNOS Routing Protocols and Policies Command Reference.


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]