
l
IP address of each interface
l
Restricted rate of sending packets to the CPU
Procedure
Step 1
Configure the IP addresses and routes of each interface to guarantee internetworking (omitted).
Step 2
Enable defense against abnormal packet attacks on Router A.
<RouterA>
system-view
[RouterA]
anti-attack abnormal enable
Step 3
# Enable defense against packet fragment attacks on Router A and restrict the rate for sending
fragments packet to 15000 bit/s.
[RouterA]
anti-attack fragment enable
#
[RouterA]
anti-attack fragment car cir 15000
Step 4
# Enable defense against SYN flood attacks on Router A and restrict the rate for sending TCP
SYN packets to 15000 bit/s.
[RouterA]
anti-attack tcp-syn enable
[RouterA]
anti-attack tcp-syn car cir 15000
# Enable defense against UDP flood attacks on Router A to discard the UDP packets sent on
specified ports.
[RouterA]
anti-attack udp-flood enable
# Enable defense against ICMP flood attacks on Router A and restrict the rate for sending ICMP
flood packets to 15000 bit/s.
[RouterA]
anti-attack icmp-flood enable
[RouterA]
anti-attack icmp-flood car cir 15000
Step 5
Verify the configuration.
After the configuration is complete, run the
display anti-attack statistics
[
abnormal
|
fragment
|
tcp-syn
|
udp-flood
|
icmp-flood
] command to check the statistics of packet attack
defense.
<RouterA>
display anti-attck statistics
Packets Statistic Information:
-------------------------------------------------------------------------------
AntiAtkType TotalPacketNum DropPacketNum PassPacketNum
(H) (L) (H) (L) (H) (L)
-------------------------------------------------------------------------------
URPF 0 0 0 0 0 0
Abnormal 0 0 0 0 0 0
Fragment 0 0 0 0 0 0
Tcp-syn 0 30 0 0 0 30
Udp-flood 0 0 0 0 0 0
Icmp-flood 0 40 0 0 0 40
-------------------------------------------------------------------------------
----End
Configuration Files
l
Configuration file of Router A
#
sysname RouterA
#
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
14 Configuration of Attack Defense and Application Layer
Association
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
293