R211x-HP Flexfabric 11900 Layer 3 - IP Services Command Reference

252
Parameters
code: Specifies a number for the self-defined option, in the range of 21 to 65535, excluding 25 through
26, 37 through 40, and 43 through 48.
hex hex-string: Specifies the content of the option, a hex string of even numbers from 2 to 256.
Usage guidelines
The DHCPv6 server fills the self-defined option with the specified hex string and sends it in a response to
the client.
If you use the option command multiple times with the same code specified, the most recent configuration
takes effect.
You can self-define options for the following purposes:
Add newly released options.
Add options for which the vendor defines the contents, for example, Option 43.
Add options for which the CLI does not provide a dedicated configuration command like dns-server.
For example, you can use the option 31 hex 00c80000000000000000000000000001 command
to define the NTP server address 200::1 for DHCP clients.
If a DHCPv6 option is specified by both the dedicated command and the option command, the DHCPv6
server preferentially assigns the content specified by the dedicated command. For example, if a DNS
server address is specified by the dns-server command and the option 23 command, the server uses the
address specified by dns-server command.
Examples
# Configure Option 23 that specifies a DNS server address 2001:f3e0::1 in DHCPv6 address pool 1.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] option 23 hex 2001f3e0000000000000000000000001
Related commands
display ipv6 dhcp pool
dns-server
domain-name
sip-server
prefix-pool
Use prefix-pool to apply a prefix pool to a DHCPv6 address pool, so the DHCPv6 server can
dynamically select a prefix from the prefix pool for a client.
Use undo prefix-pool to remove the configuration.
Syntax
prefix-pool prefix-pool-number [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]
undo prefix-pool prefix-pool-number
Default
No prefix pool is applied to an address pool.