relay-option-82
Syntax
relay-option-82 {
circuit-id {
include-irb-and-l2;
keep-incoming-circuit-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-vlan-id;
}
remote-id {
include-irb-and-l2;
keep-incoming-remote-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-vlan-id;
}
server-id-override;
vendor-specific{
host-name;
location;
}
}
Syntax (QFX Series)
relay-option-82 {
circuit-id {
include-irb-and-l2;
keep-incoming-circuit-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-vlan-id;
}
remote-id {
include-irb-and-l2;
keep-incoming-remote-id ;
no-vlan-interface-name;
prefix prefix;
use-interface-description (logical | device);
use-vlan-id;
}
server-id-override;
link-selection;
vendor-specific{
host-name;
location;
}
}
Hierarchy Level
[edit forwarding-options dhcp-relay], [edit forwarding-options dhcp-relay group group-name], [edit logical-systems logical-system-name forwarding-options dhcp-relay], [edit logical-systems logical-system-name forwarding-options dhcp-relay group group-name], [edit logical-systems logical-system-name routing-instances routing-instance-name forwarding-options dhcp-relay], [edit logical-systems logical-system-name routing-instances routing-instance-name forwarding-options dhcp-relay group group-name], [edit routing-instances routing-instance-name forwarding-options dhcp-relay], [edit routing-instances routing-instance-name forwarding-options dhcp-relay group group-name]
Description
Enable or disable the insertion of the DHCP relay agent information option (option 82) in DHCP packets destined for a DHCP server.
To enable insertion of option 82 information in
DHCP packets, you must specify at least one of the circuit-id or remote-id statements.
You can use the relay-option-82 statement
and its subordinate statements at the [edit forwarding-options
dhcp-relay] hierarchy level to control insertion of option 82
information globally, or at the [edit forwarding-options dhcp-relay group group-name] hierarchy level to control insertion
of option 82 information for a named group of interfaces.
To restore the default behavior (option 82 information is not
inserted into DHCP packets), use the delete relay-option-82 statement.
Starting in Junos OS Release 21.2R1, on QFX Series devices, we’ve introduced
link-selection statement at the edit forwarding-options
dhcp-relay relay-option-82 hierarchy level, which allows DHCP relay to
add suboption 5 to option 82. Suboption 5 allows DHCP proxy clients and relay agents
to request an IP address for a specific subnet from a specific IP address range and
scope. Earlier to this release, the DHCP relay drops packets during the renewal DHCP
process as the DHCP Server uses the leaf's address as a destination to acknowledge
DHCP renewal message.
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 8.3.
link-selection option added in Junos OS Release 21.2R1.