option
Syntax
option {ascii | hex | ip } no option {ascii | hex | ip }
Description
Defines custom DHCPv6 options for the current DHCPv6 server pool.
Theno
form of this command removes custom DHCPv6 options from the pool.
Command context
config-dhcpv6-server-pool
Parameters
-
-
Specifies a DHCPv6 option number. Range: 2 to 254.
-
ascii
-
Specifies a value for the selected option as an ASCII string. Range: 1 to 255 ASCII characters.
-
hex
-
Specifies a value for the selected option as a hexadecimal string. Range: 1 to 255 hexadecimal characters.
-
ip
-
指定一个IP的一个列表ddresses 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 option22for the server poolprimary-poolon VRFprimary.
switch(config)#dhcpv6-server多联机的主要switch(config-dhcpv6-server)#pool primary-poolswitch(config-dhcpv6-server-pool)#option 22 ipv6 2001::12
Deletes DHCPv6 option 22 for the server poolprimary-poolon VRFprimary.
switch(config)#dhcpv6-server多联机的主要switch(config-dhcpv6-server)#pool primary-poolswitch(config-dhcpv6-server-pool)#no option 22 ipv6 2001::12