option(Bas IP address pool view)

Function

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.

Format

option code { ip { ip-address } &<1-2> | string string-value | hex { hex-string } &<1-160> }

undo option [ code [ ip ip-address ] ]

Parameters

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.

Views

Bas IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ippool write

Usage Guidelines

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.

Example

# Configure the DHCPv4 server option code 128 to stand for the IP address 10.1.1.1 of the Proxy server of the DHCPv4 client.
<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
# Configure the DHCPv4 server option code 129 to stand for the string huawei.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >