dhcp-snooping rate-limit

Syntax

dhcp-snooping rate-limit rate

undo dhcp-snooping rate-limit

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view

Default level

2: System level

Parameters

rate: Sets the maximum rate at which an interface receives DHCP packets, in the range of 64 to 512 Kbps.

Description

Use dhcp-snooping rate-limit to set the maximum rate at which an interface receives DHCP packets.

Use undo dhcp-snooping rate-limit to restore the default.

By default, incoming DHCP packets on an interface are not rate limited.

This command takes effect only after you enable DHCP snooping.

An interface configured with DHCP packet rate limit discards incoming DHCP packets that exceed the maximum rate.

If a Layer 2 Ethernet port belongs to an aggregation group, it uses the DHCP packet maximum rate configured on the corresponding Layer 2 aggregate interface.

Examples

# Set the maximum rate to 64 Kbps at which Layer 2 Ethernet port Ethernet 1/0/1 receives DHCP packets.

<Sysname> system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] dhcp-snooping rate-limit 64