dhcp client-option

Function

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.

Format

dhcp client-option option-code dhcp-option-code reply-option reply-code { suboption sub-option-id { ip ip-addr | string string-value | hex string-value } } &<1-16>

undo dhcp client-option option-code [ dhcp-option-code ] reply-option

undo dhcp client-option reply-option

Parameters

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.

Views

Bas IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ippool write

Usage Guidelines

Usage Scenario

This command is used to specify options that will be sent as replies to user requests.

Precautions

  • In VS mode, this command is supported only by the admin VS.
  • As defined in the standard protocols, the maximum option length is 255 bytes. Therefore, specifying an option longer than 255 bytes is not allowed.
  • A maximum of 16 options can be configured in an address pool.
  • A maximum of 16 sub-options can be configured for an option.
  • An option can be sent as a reply to only one option.
  • The specified options must comply with the standard protocols. Otherwise, users may fail to go online.
  • This command cannot be configured in a remote address pool.

Example

# Specify Option 43 as a reply to Option 60 with the content of "Huawei" and configure sub-option 6 of Option 43 as the FTP server address and sub-option 8 of Option 43 as the VPN instance name.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >