set protocols dhcp6 snooping vlan option-policy


The set protocols dhcp6 snooping vlan option-policy command configures how to handle the Option field when receiving a DHCPv6 message on VLANs where DHCPv6 snooping is enabled.


Command Syntax

set protocols dhcp6 snooping vlan <vlan-id> option-policy <drop | keep | insert | replace>


Parameters

Parameter

Description

vlan <vlan-id>

Specifies a VLAN. The value is an integer that ranges from 1 to 4094.

option-policy <drop | keep | insert | replace>

Specifies the policy for Option. The value could be drop, keep, insert or replace.

  • drop: drop the packet if have Option 18 or Option 37 field. If the received DHCPv6 packets without Option 18 or Option 37 values, the packets will be forwarded.
  • keepOption 18 and Option 37 in the packet remain unchanged and forwarded.
  • insert: the existing Option 18 or Option 37 remain unchanged; else, insert Option 18 or Option 37 with the value the administrator configured if not exist, then forwarding the packet to the DHCP server.
  • replace: The existing Option 18 and Option 37 will be replaced with the value administrator configured, then forwarded; Else, if not exist, the system inserts Option 18 or Option 37 with the value the administrator configured .

The default value is keep.


Usage Guidelines

Option policy is used when receiving a DHCPv6 message from the DHCPv6 client. When option policy is set to “insert” or “replace”, you can use the following commands to set the format of interface ID and remote ID sub-options:

set protocols dhcp6 snooping option18 interface-id <port-index | port-name | port-description>

set protocols dhcp6 snooping option37 remote-id <remote-id>


Example

  • Configure the Option policy.
admin@Xorplus# set protocols dhcp6 snooping vlan 12 option-policy insert
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.