option
Syntax
option <OPTION-NUM> {ascii <ASCII-STR> | hex <HEX-STR> | ip <IPV6-ADDR-LIST>}
no option <OPTION-NUM> {ascii <ASCII-STR> | hex <HEX-STR> | ip <IPV6-ADDR-LIST>}
Description
Defines custom DHCPv6 options for the current DHCPv6 server pool.
The
no
form of this command removes custom DHCPv6 options from the pool.
Command context
config-dhcpv6-server-pool
Parameters
<OPTION-NUM>
Specifies a DHCPv6 option number. Range: 2 to 254.
ascii <ASCII-STR>
Specifies a value for the selected option as an ASCII string. Range: 1 to 255 ASCII characters.
hex <HEX-STR>
Specifies a value for the selected option as a hexadecimal string. Range: 1 to 255 hexadecimal characters.
ip <IPV6-ADDR-LIST>
Specifies a list of IP addresses for the option in IPv6 format (
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
), wherex
is a hexadecimal number from 0 to F.
Authority
Administrators or local user group members with execution rights for this command.
Example
Defines DHCPv6 option 22 for the server pool primary-pool on VRF primary.
switch(config)# dhcpv6-server vrf primary switch(config-dhcpv6-server)# pool primary-pool switch(config-dhcpv6-server-pool)# option 22 ipv6 2001::12
Deletes DHCPv6 option 22 for the server pool primary-pool on VRF primary.
switch(config)# dhcpv6-server vrf primary switch(config-dhcpv6-server)# pool primary-pool switch(config-dhcpv6-server-pool)# no option 22 ipv6 2001::12