3-3
Description
Use the dhcp rate-limit command to configure the maximum rate of DHCP traffic for the port. When the
number of DHCP packets received on the port per second exceeds the specified threshold, the switch
will discard the exceeding DHCP packets.
Use the undo dhcp rate-limit command to restore the default.
By default, after the DHCP traffic limit is enabled, the maximum rate of DHCP traffic is 15 pps.
Note that:
You need to enable the function to limit DHCP traffic (refer to the dhcp rate-limit enable command) for
a port before executing either of these two commands for the port.
Examples
# Configure the DHCP traffic threshold to 100 pps for port Ethernet 1/0/11.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/11
[Sysname-Ethernet1/0/11] dhcp rate-limit enable
[Sysname-Ethernet1/0/11] dhcp rate-limit 100
dhcp rate-limit enable
Syntax
dhcp rate-limit enable
undo dhcp rate-limit enable
View
Ethernet port view
Parameters
None
Description
Use the dhcp rate-limit enable command to enable the function to limit DHCP traffic for an Ethernet
port. You can use this command to limit the DHCP traffic passing through an Ethernet port. When the
number of DHCP packets received on the port per second exceeds the specified threshold (the default
value is 15 pps), the switch will discard the exceeding DHCP packets.
Use the undo dhcp rate-limit enable command to disable the function. You can use this command to
relieve the DHCP traffic limit configured on an Ethernet port.
By default, the function to limit DHCP traffic is disabled on an Ethernet port. That is, DHCP traffic
passing through an Ethernet port is not limited.
Examples
# Enable the function to limit DHCP traffic for Ethernet 1/0/11 port.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/11