wait-request-time(IP address pool view)

Function

The wait-request-time command sets the timeout period for a router to wait for a Request message from a client in response to an Offer message sent to the client.

The undo wait-request-time command cancels the setting.

If the access wait-request-time dhcpv4 time-value command has been run in the system view, the default timeout period for a router to wait for a Request message from a client in response to an Offer message sent to the client is specified by time-value.

If the access wait-request-time dhcpv4 time-value has not been run in the system view, the default timeout period for a router to wait for a Request message from a client in response to an Offer message sent to the client is 25s.

This command is supported only on the NetEngine 8000 F1A.

Format

wait-request-time time-value

undo wait-request-time [ time-value ]

Parameters

Parameter Description Value
time-value

Specifies the timeout period for a router to wait for a Request message from a client.

The value is an integer ranging from 5 to 60, in seconds.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ippool write

Usage Guidelines

Usage Scenario

In user access scenarios, a client sends a Discover message to request an IP address. By default, the timeout period for a router to wait for a Request message from a client in response to an Offer message sent to the client is the default value. After the timeout period elapses, the router releases the assigned IPv4 address. To prevent multiple malicious clients from exhausting IPv4 addresses in an address pool by sending DHCPv4 Discover messages, run the wait-request-time command to adjust the timeout period for the router to wait for a Request message from a client in response to an Offer message sent to the client.

You are advised to set time-value to a value smaller than the default value.

Precautions

In VS mode, this command is supported only by the admin VS.

The wait-request-time command is run in the IP address pool view whereas the access wait-request-time dhcpv4 command is run in the system view. When the two commands are both run, the wait-request-time command takes effect.

Example

# Set the timeout period for a router to wait for a Request message from a client in response to an Offer message sent to the client to 10s in the address pool 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] wait-request-time 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >