dhcp snooping max-user-number (Bridge domain view)

Function

The dhcp snooping max-user-number command configures the maximum number of users in a BD.

The undo dhcp snooping max-user-number command cancels the configuration.

By default, a maximum of 32768 DHCP clients are permitted to access to a BD.

Format

dhcp snooping max-user-number max-user-number

undo dhcp snooping max-user-number

Parameters

Parameter Description Value
max-user-number

Specifies the maximum number of users.

The value is an integer ranging from 1 to 4096.

Views

Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

To prevent attackers from exhausting IP addresses in the IP address pool, run the dhcp snooping max-user-number command.

Prerequisites

DHCP snooping has been enabled globally using the dhcp snooping enable command.

Configuration Impact

When the number of binding entries reaches the maximum number, no users can obtain IP addresses.

Precautions

The user can change the current maximum number of DHCP snooping users by configuring a new value. Only the latest setting takes effect.

Example

# Set the maximum number of DHCP snooping users to 200 in BD 10.
<HUAWEI> system-view
[~HUAWEI] dhcp snooping enable
[*HUAWEI] bridge-domain 10
[*HUAWEI-bd10] dhcp snooping enable
[*HUAWEI-bd10] dhcp snooping max-user-number 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >