•
To include the prefix with the Agent Circuit ID:
[edit forwarding-options dhcp-relay relay-option-82 circuit-id]
user@host# set prefix host-name logical-system-name
•
To include the prefix with the Agent Remote ID:
[edit forwarding-options dhcp-relay relay-option-82 remote-id]
user@host# set prefix host-name logical-system-name
(DHCPv6) To use a prefix with the DHCPv6 option 18 or option 37 information:
1. Specify that you want to configure DHCPv6 relay agent support.
[edit forwarding-options dhcp-relay]
user@host# edit dhcpv6
2. Configure DHCPv6 relay agent to insert option 18 (Relay Agent Interface-ID), option
37 (Relay Agent Remote-ID), or both.
•
To configure option 18:
[edit forwarding-options dhcp-relay dhcpv6]
user@host# edit relay-agent-interface-id
•
To configure option 37:
[edit forwarding-options dhcp-relay dhcpv6]
user@host# edit relay-agent-remote-id
3. Specify that the prefix is included in the option information. In this example, the prefix
includes the hostname and logical system name
•
To include the prefix with option 18:
[edit forwarding-options dhcp-relay dhcpv6 relay-agent-interface-id]
user@host# set prefix host-name logical-system-name
•
To include the prefix with option 37:
[edit forwarding-options dhcp-relay dhcpv6 relay-agent-remote-id]
user@host# set prefix host-name logical-system-name
Including a Textual Description in DHCP Options
By default, when DHCP relay agent inserts option information in the packets sent to a
DHCP server, the options include the interface identifier. However, you can configure the
DHCP relay agent to include the textual description that is configured for the interface
instead of the interface identifier. You can use the textual description for either the logical
interface or the device interface.
You can include the textual interface description in the following DHCP options:
•
DHCPv4 option 82 Agent Circuit ID (suboption 1)
•
DHCPv4 option 82 Agent Remote ID (suboption 2)
•
DHCPv6 option 18 Relay Agent Interface-ID
•
DHCPv6 option 37 Relay Agent Remote-ID
65Copyright © 2017, Juniper Networks, Inc.
Chapter 4: DHCP Relay Agent