The following examples show several possible formats for the DHCP option information
when you specify the prefix statement for Fast Ethernet (fe) or Gigabit Ethernet (ge)
interfaces with S-VLANs.
•
If you include only the hostname in the prefix for Fast Ethernet or Gigabit Ethernet
interfaces with S-VLANs:
hostname:(fe | ge)-fpc/pic/port:svlan-id-vlan-id
•
If you include only the logical system name in the prefix for Fast Ethernet or Gigabit
Ethernet interfaces with S-VLANs:
logical-system-name:(fe | ge)-fpc/pic/port:svlan-id-vlan-id
•
If you include only the routing instance name in the prefix for Fast Ethernet or Gigabit
Ethernet interfaces with S-VLANs:
routing-instance-name:(fe | ge)-fpc/pic/port:svlan-id-vlan-id
•
If you include both the hostname and the logical system name in the prefix for Fast
Ethernet or Gigabit Ethernet interfaces with S-VLANs:
host-name/logical-system-name:(fe | ge)-fpc/pic/port:svlan-id-vlan-id
•
If you include both the logical system name and the routing instance name in the prefix
for Fast Ethernet or Gigabit Ethernet interfaces with S-VLANs:
logical-system-name;routing-instance-name:(fe | ge)-fpc/pic/port:svlan-id-vlan-id
•
If you include the hostname, logical system name, and routing instance name in the
prefix for Fast Ethernet or Gigabit Ethernet interfaces with S-VLANs:
host-name/logical-system-name;routing-instance-name:(fe |
ge)-fpc/pic/port:svlan-id-vlan-id
For Fast Ethernet or Gigabit Ethernet interfaces that use VLANs but not S-VLANs, only
the vlan-id value appears in the DHCP option format.
(DHCPv4) To configure a prefix with the option 82 information:
1. Specify that you want to configure option 82 support.
[edit forwarding-options dhcp-relay]
user@host# edit relay-option-82
2. Configure DHCP relay agent to insert the Agent Circuit ID, the Agent Remote ID, or
both.
•
To configure the Agent Circuit ID:
[edit forwarding-options dhcp-relay relay-option-82]
user@host# edit circuit-id
•
To configure the Agent Remote ID:
[edit forwarding-options dhcp-relay relay-option-82]
user@host# edit remote-id
3. Specify that the prefix be included in the option 82 information. In this example, the
prefix includes the hostname and logical system name.
387Copyright © 2017, Juniper Networks, Inc.
Chapter 11: Configuring DHCP and DHCPv6 Relay Agent