set protocols dhcp relay interface option82-policy
The set protocols dhcp relay interface option82-policy command configures how to handle the Option 82 field when receiving a DHCP Discover, DHCP Request, DHCP Release, DHCP Decline or DHCP Inform message with Option 82 on the L3 interfaces where DHCP relay is enabled.
Command Syntax
set protocols dhcp relay interface <l3-interface-name> option82-policy <drop | keep | insert | replace>
Parameters
Parameter | Description |
interface <l3-interface-name> | Specifies an L3 interface name. The value could be the VLAN interface name, the loopback interface name, the routed interface or the sub-interface name. |
option82-policy <drop | keep | insert | replace> | Specifies the policy for Option 82. The value could be drop, keep, insert or replace.
The default value is keep. |
Usage Guidelines
Option 82 policy is used when receiving a DHCP Discover/Request/Release/Decline/Inform message from the DHCP client. When option82-policy is set to “insert” or “replace”, you can use the following commands to set the format of sub-option circuit ID and remote ID:
set protocols dhcp relay option82 circuit-id <port-index | port-name | port-description>
set protocols dhcp relay option82 remote-id <system-mac | hostname>
We can use the following table to summarize the Option 82 policy.
For details about how Option 82 is processed by the DHCP snooping and DHCP relay module, see Introduction to DHCP.
Example
- Configure the Option 82 policy.
admin@Xorplus# set protocols dhcp relay interface vlan12 option82-policy insert
Copyright © 2024 Pica8 Inc. All Rights Reserved.