The option command configures the information represented by the option code.
The undo option command removes the option code. If you do not use any parameter, all option codes are removed.
By default, the information represented by the option code is disabled.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
code |
Specifies the value of the self-defined options. |
The value is an integer that ranges from 2 to 254, include 2 and 254, exclude 3, 6, 15, 44, 46, 50-54, 57- 59, 82,119. |
ip ip-address |
Specifies the IP address in the dotted decimal format. |
The value is in dotted decimal notation. |
string string-value |
Specifies the string that is represented by the value of the option code. |
The length of the string ranges from 1 to 255 characters. |
hex hex-string |
Specifies the hexadecimal character string that is represented by the value of the option code. |
The value is a case-insensitive hexadecimal number ranging from 2 to 320.The length of the hexadecimal string is an even number of characters.You can input the characters without any spaces or in groups of two with a space in-between each group For example, 80070000010A2C00FE and 80 07 00 00 01 0A 2C 00 FE are both acceptable. |
Usage Scenario
DHCPv4 provides the framework for transmitting configuration parameters on a TCP/IP network. Therefore, you can transmit the configuration parameters and control information by using the option codes between the DHCPv4 client and the server.
After an option code is configured, the device replies the configured option code to a client only when the client applies for the option code. The value of a common option code, such as DNS and lease, is determinate. The common option codes include 3, 6, 15, 44, 46, 50 to 54 and 57 to 59, 82, 119. When the value is reset, the system prompts that resetting the value is disallowed. This command is inapplicable for remote servers.Precautions
In VS mode, this command is supported only by the admin VS.
<HUAWEI> system-view [~HUAWEI] ip pool huawei bas local Info: It's successful to create an IP address pool [*HUAWEI-ip-pool-huawei] commit [~HUAWEI-ip-pool-huawei] option 128 ip 10.1.1.1
<HUAWEI> system-view [~HUAWEI] ip pool huawei bas local Info: It's successful to create an IP address pool [*HUAWEI-ip-pool-huawei] commit [~HUAWEI-ip-pool-huawei] option 129 string huawei