dhcp server ping packets

Function

The dhcp server ping packets command configures the maximum number of ping packets that a DHCP server sends.

The undo dhcp server ping packets command restores the default configuration.

By default, a DHCP server sends two ping packets, and the timeout period for each ping reply is 500 ms.

Format

dhcp server ping packets packet-number

undo dhcp server ping packets

Parameters

Parameter Description Value
packet-number

Specifies the maximum number of ping packets that can be sent by a DHCP server.

The value is an integer ranging from 0 to 10. Value 0 indicates that the ping operation is not performed.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

To prevent address conflicts due to repetitive IP address assignment, run the dhcp server ping command to configure the maximum number of ping packets that a DHCP server sends and the maximum timeout period of each ping reply. If no ping reply is received within a specified detection period, the DHCP server continues sending ping packets until the number of ping packets reaches the threshold. If still no ping reply is received, the DHCP server considers that this IP address can be assigned to a DHCP client as no device in the network segment is using this IP address. In this manner, the IP addresses sent to DHCP clients are unique.

Prerequisites

The DHCP function has been enabled using the dhcp enable command.

Example

# Configure the maximum number of ping packets that can be sent by a DHCP server to 10 and the maximum timeout period to 100 ms.
<HUAWEI> system-view
[~HUAWEI] dhcp enable
[*HUAWEI] dhcp server ping packets 10
[*HUAWEI] dhcp server ping timeout 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >