The dhcp client-option command specifies the options and sub-options that will be sent as replies to the user requests.
The undo dhcp client-option command cancels the configuration.
By default, no options or sub-options are specified as replies to user requests.
This command is supported only on the NetEngine 8000 F1A.
Parameter | Description | Value |
---|---|---|
option-code |
Specifies the option code in user requests. |
Currently only the Option 60 is supported. |
dhcp-option-code |
Specifies the option content in user requests. |
The value must start and end with double quotation marks ("") and ranges from 3 to 66. The value excluding double quotation marks ranges from 1 to 64. Case-sensitive characters with the ASCII code ranging from 32 to 126 are supported, single quotation marks and TAB excluded. The sub-option value cannot be only "-" and "--". "Huawei AP" is preserved for a specific scenario and cannot be used. |
reply-option reply-code |
Specifies an option that will be sent as a reply to user requests. |
The value ranges from 2 to 254 excluding 3, 6, 15, 44, 46, 50-54, 57-60, and 82. |
suboption sub-option-id |
Specifies a sub-option to be sent as a reply. |
The value ranges from 1 to 254. |
ip ip-addr |
Specifies an IP address as a sub-option. |
The value is in dotted decimal notation. |
string string-value |
Specifies a string as a sub-option. |
The value is a string of 1 to 128 characters. Characters with the ASCII code ranging from 32 to 126 are supported, single quotation marks excluded. The sub-option value cannot be only "-" and "--". |
hex string-value |
Specifies a hexadecimal number as a sub-option. |
The value is a string of 1 to 128 case-insensitive characters of 0-9, a-f, and A-F>, and length should be even. |
Usage Scenario
This command is used to specify options that will be sent as replies to user requests.
Precautions
<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] dhcp client-option 60 "Huawei" reply-option 43 suboption 6 ip 192.168.1.1 suboption 8 string VPN-T1