dhcp snooping rate-limit

Use dhcp snooping rate-limit to configure the maximum rate at which an interface can receive DHCP packets.

Use undo dhcp snooping rate-limit to remove the configured rate limit.

Syntax

dhcp snooping rate-limit rate

undo dhcp snooping rate-limit

Default

Incoming DHCP packets on an interface are not rate limited.

Views

Layer 2 Ethernet interface/Layer 2 aggregate interface view

S-channel interface/S-channel aggregate interface view

VSI interface/VSI aggregate interface view

Predefined user roles

network-admin

Parameters

rate: Specifies the maximum rate for an interface to receive DHCP packets, in Kbps. The value must be an integer multiple of 8 in the range of 64 to 512.

Usage guidelines

This command takes effect only when DHCP snooping is enabled.

With the rate limit feature, the interface discards DHCP packets that exceed the maximum rate.

If you configure this command on a Layer 2 Ethernet interface that is a member port of a Layer 2 aggregate interface, the Layer 2 Ethernet interface uses the DHCP packet maximum rate configured on the Layer 2 aggregate interface. If the Layer 2 Ethernet interface leaves the aggregation group, it uses its own DHCP packet maximum rate.

Examples

# Set the maximum rate at which the Layer 2 Ethernet interface Ten-GigabitEthernet 1/0/1 can receive DHCP packet to 64 Kbps.

<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] dhcp snooping rate-limit 64