No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
dhcp server option

dhcp server option

Function

The dhcp server option command sets user-defined option for an interface address pool.

The undo dhcp server option command deletes user-defined option from an interface address pool.

By default, no user-defined option is configured in an interface address pool.

Format

dhcp server option code [ sub-option sub-code ] { ascii ascii-string | hex hex-string | cipher cipher-string | ip-address ip-address &<1-8> }

undo dhcp server option [ code [ sub-option sub-code ] ]

Parameters

Parameter

Description

Value

code

Specifies the code for a user-defined option.

The value is an integer that ranges from 1 to 254, except values 1, 3, 6, 15, 44, 46, 50, 51, 52, 53, 54, 55, 57, 58, 59, 61, 82, 120, 121 and 184.
NOTE:
  • The format of Option121 and Option184 are different from the other codes of a customized option.
  • There are well-known options and customized options. For details about well-known options, see RFC 2132.

sub-option sub-code

Specifies the code of a user-defined sub-option.

The value is an integer that ranges from 1 to 254. For details about well-known options, see RFC 2132.

ascii ascii-string

Specifies the user-defined option code as an ASCII character string.

The value is a string of 1 to 255 characters when sub-option is not specified, or a string of 1 to 253 characters when sub-option is specified.

hex hex-string

Specifies the user-defined option code as a hexadecimal string.

The value is a hexadecimal string with an even number of digits, for example, hh or hhhh. If sub-option is not specified, the even number is in the range of 2 to 254. If sub-option is specified, the even number is in the range of 2 to 252. The value can be a combination of digits (0-9) and letters (A-F and a-f).

cipher cipher-string

Specifies the user-defined option code as a ciphertext character string.

The value is a string, you can enter a character string in explicit text or cipher text.

  • The character string in explicit text is a string of 1 to 64 characters.
  • The character string in cipher text is a string of 32 to 104 characters.

No matter whether the character string is entered in explicit or cipher text, the character string is displayed in cipher text in the configuration file and in explicit text in packets.

ip-address ip-address

Specifies the user-defined option code as an IP address.

The value is in dotted decimal notation.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to DHCP servers. The Option field in a DHCP packet carries control information and parameters, including basic information such as the DNS service, NetBIOS service, and IP address lease. If a DHCP server is configured with option, when a DHCP client applies for an IP address from an interface address pool, the client can obtain configurations in the Option field of the DHCP response packet from the DHCP server without having to configure the DNS service, NetBIOS service, or IP address lease separately.

Prerequisites
  • The address of an interface address pool has been configured using the ip address command.

  • The DHCP server function has been enabled on the interface using the dhcp select interface command.

Precautions

  • When the password is contained in option, the ascii or hex type is insecure. Set the option type to cipher. A secure password should contain at least two types of the following: lowercase letters, uppercase letters, number, and special characters. In addition, the password must consist of six or more than six characters.
  • The dhcp server option command configures basic functions, such as the NetBIOS service and IP address lease. The system also provides commands to configure these functions separately. These commands take precedence over the dhcp server option command.
  • To set user-defined option for a global address pool, run the option command.

Example

# Set Option64 to 0x11 (a hexadecimal number) for the interface address pool on VLANIF100.
<Huawei> system-view
[Huawei] dhcp enable
[Huawei] interface vlanif 100
[Huawei-Vlanif100] ip address 10.10.10.10 24 
[Huawei-Vlanif100] dhcp select interface
[Huawei-Vlanif100] dhcp server option 64 hex 11
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 202369

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next