721
Related command: dhcp server ip-pool and dhcp server forbidden-ip.
Example # Specify 192.168.8.0/24 as the address range for dynamic allocation in DHCP
address pool 0.
<Sysname> system-view
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] network 192.168.8.0 mask 255.255.255.0
option
Syntax option code { ascii ascii-string | hex hex-string&<1-16> | ip-address
ip-address&<1-8>}
undo option code
View DHCP address pool view
Parameter code: Self-defined option number, in the range of 2 to 254.
ascii ascii-string: Specifies an ASCII string with 1 to 63 characters.
hex hex-string&<1-16>: Specifies hex digit strings. &<1-16> indicates you can
specify up to 16 hex digit strings, separated by spaces. Each string contains 2, 4, 6
or 8 hex digits.
ip-address ip-address&<1-8>: Specifies IP addresses. &<1-8> indicates you can
specify up to eight IP addresses, separated by spaces.
Description Use the option command to configure a self-defined DHCP option in a DHCP
address pool.
Use the undo option command to remove a self-defined DHCP option from a
DHCP address pool.
The option command is not configured by default.
If you use the option command repeatedly, the latest configuration will overwrite
the previous one.
Related command: dhcp server ip-pool.
Example # Configure the hex digits 0x11 and 0x22 for the self-defined DHCP option 100 in
DHCP address pool 0.
<Sysname> system-view
[Sysname] dhcp server ip-pool 0
[Sysname-dhcp-pool-0] option 100 hex 11 22