The option command configures a user-defined option for an address pool.
The undo option command deletes the configuration.
By default, no user-defined option is configured for an address pool.
Parameter | Description | Value |
---|---|---|
code |
Specifies the code of a user-defined option. |
The value is an integer ranging from 2 to 254. Options 3, 6, 15, 44, 46, 50 to 55, 57 to 59, 61, 82, and 119 are excluded. |
hex hex-string |
Specifies a user-defined option as hexadecimal characters. |
The value is a hexadecimal string of even-number characters, such as hh or hhhh. The value contains only digits 0 to 9, upper-case letters A to F, and lower-case letters a to f. The value ranges from 2 to 479. The length of the hex-string field minus space cannot exceed 320. |
ip ip-address-2 |
Specifies a user-defined option as an IP address. |
The value is in dotted decimal notation. |
ip ip-address-1 |
Specifies a user-defined option as an IP address. |
The value is in dotted decimal notation. |
string ascii-string |
Specifies a user-defined option as ASCII characters. |
The value is a character string that can contain digits, letters, spaces, underscores (_), and periods (.), the value ranges from 1 to 255. |
string sub-ascii-string |
Specifies a user-defined option as ASCII characters. |
The value is a character string that can contain digits, letters, spaces, underscores (_), and periods (.), the value ranges from 1 to 64. |
cipher cipher-text |
Specifies a user-defined option as ciphertext characters. You can enter a plaintext or ciphertext option code, but the option code is displayed in ciphertext in the configuration file. |
The value is a character string that can contain digits, letters, underscores (_), and periods (.).
|
suboption sub-code |
Specifies the code of a user-defined sub-option. |
The value is an integer ranging from 1 to 254. |
Usage Scenario
The Option fields in DHCP packets are used to store control information and parameters. If an Option field is configured for the DHCP server, a DHCP client obtains the configuration in the Option field of the DHCP packet replied by the DHCP server while requesting an IP address from the address pool. Well-known options are for the DNS service (Option 6, Option 15, and Option 119) and NetBIOS service (Option 44 and Option 46). To configure user-defined options, run the option command.
Precautions