Example
# Run the
display current-configuration
command to view the configurations of the DHCP
client.
[Huawei]
display current-configuration
...
#
interface Ethernet1/0/0
ip address dhcp-alloc
#
...
# Run the
display interface
command to view the IP address that is obtained by the interface.
[Huawei]
display interface ethernet 1/0/0
Ethernet1/0/0 current state : DOWN
Line protocol current state : DOWN
Description:HUAWEI, Huawei Series, Ethernet1/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is allocated by DHCP, 22.22.22.222/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc11-000a
Last physical up time : 2007-12-01 10:48:50
Last physical down time : 2007-12-01 10:52:56
Current system time: 2007-12-01 16:52:01
Port Mode: COMMON COPPER
Speed : 100, Loopback: NONE
Duplex: FULL, Negotiation: ENABLE
Mdi : AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input peak rate 1928 bits/sec,Record time: 2007-11-30 14:57:22
Output peak rate 7384 bits/sec,Record time: 2007-11-30 10:13:15
Input: 833 packets, 72696 bytes
Unicast: 59, Multicast: 757
Broadcast: 17, Jumbo: 0
Discard: 0, Total Error: 0
6.7 Configuring the DHCP Rate Limit Function
You can configure the highest rate at which DHCP packets are sent to the protocol stack in the
system view, VLAN view, or interface view. If different rates are configured in these views, the
rate configured in the interface view takes effect. If this rate does not take effect, the rate
configured in the VLAN view takes effect. If the rate configured in the VLAN view also does
not takes effect, the rate configured in the system view takes effect.
Applicable Environment
If network attackers send DHCP packets continuously, the DHCP protocol stack of the
AR150/200 is affected.
To protect the AR150/200 against the attacks by sending a large number of DHCP packets, you
can configure the highest rate at which DHCP packets are sent to the protocol stack on the
AR150/200. After the configuration is complete, the AR150/200 checks the rates at which DHCP
packets are sent to the AR150/200. Only a specific number of packets can be sent to the protocol
stack in a specified period and excess packets are discarded.
Procedure
l
Configure the highest rate at which DHCP packets are sent to the protocol stack in the
system view.
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
6 DHCP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
153