< Home

dhcp server alarm ip-used percentage

Function

The dhcp server alarm ip-used percentage command configures the percentage of the alarms indicating that the addresses in an interface address pool are used up, and the percentage of the clear alarms.

The undo dhcp server alarm ip-used percentage command restores the default percentages of the alarms and clear alarms.

By default, the percentage of the alarms indicating that the addresses in an interface address pool are used up is 100%, and the percentage of the clear alarms is 50%.

Format

dhcp server alarm ip-used percentage alarm-resume-percentage alarm-percentage

undo dhcp server alarm ip-used percentage

Parameters

Parameter

Description

Value

alarm-resume-percentage

Specifies the percentage of the clear alarms.

The value is an integer that ranges from 1 to 100. The default value is 50.

NOTE:

The percentage of the clear alarms cannot exceed that of the alarms.

alarm-percentage

Specifies the percentage of the alarms indicating that the addresses in an address pool are used up.

The value is an integer that ranges from 1 to 100. The default value is 100.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the addresses in an interface address pool are used up, alarms are sent to notify the administrator.

Prerequisites

  1. The DHCP function has been enabled using the dhcp enable command in the system view.
  2. IP addresses in the interface address pool have been configured using the ip address command.

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

Precautions

The percentage of the clear alarms cannot exceed that of the alarms.

Example

# Configure the percentage of the alarms indicating that the addresses in an interface address pool are used up, and the percentage of the clear alarms in the interface address pool of the 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 alarm ip-used percentage 80 90
# Configure the percentage of the alarms indicating that the addresses in an interface address pool are used up, and the percentage of the clear alarms in the interface address pool of the GE0/0/1.
<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo portswitch
[HUAWEI-GigabitEthernet0/0/1] ip address 10.10.10.10 24 
[HUAWEI-GigabitEthernet0/0/1] dhcp select interface
[HUAWEI-GigabitEthernet0/0/1] dhcp server alarm ip-used percentage 80 90
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >