07-Security Command Reference

HomeSupportReference GuidesCommand ReferencesH3C Access Controllers Command References(E3703P61 R2509P61 R3709P61 R2609P61 R3509P61)-6W10207-Security Command Reference
23-Protocol Packet Rate Limit Commands
Title Size Download
23-Protocol Packet Rate Limit Commands 38.77 KB

Protocol packet rate limit commands

anti-attack enable

Use anti-attack enable to enable protocol packet rate limit.

Use undo anti-attack enable to disable protocol packet rate limit.

Default

Protocol packet rate limit is disabled.

Syntax

anti-attack enable

undo anti-attack enable

Views

System view

Default command level

2: System level

Examples

# Enable protocol packet rate limit.

<Sysname> system-view

[Sysname] anti-attack enable

anti-attack protocol enable

Use anti-attack protocol enable to enable per-protocol bandwidth limit.

Use undo anti-attack protocol enable to disable per-protocol bandwidth limit.

Syntax

anti-attack protocol { all | protocol } enable

undo anti-attack protocol { all | protocol } enable

Default

Per-protocol bandwidth limit is disabled for packets of all protocols.

Views

System view

Default command level

2: System level

Parameters

all: Specifies all protocols.

protocol: Specifies a protocol by its type, a string of 1 to 31 characters.

Examples

# Enable per-protocol bandwidth limit for ARP frames.

<Sysname> system-view

[Sysname] anti-attack protocol arp enable

anti-attack protocol threshold

Use anti-attack protocol threshold to configure the threshold for per-protocol bandwidth limit.

Use undo anti-attack protocol threshold to restore the default.

Syntax

anti-attack protocol protocol threshold limit-rate

undo anti-attack protocol protocol threshold

Default

Each protocol has a default threshold.

Views

System view

Default command level

2: System level

Parameters

protocol: Specifies a protocol by its name, a string of 1 to 31 characters.

limit-rate: Specifies the threshold for per-protocol bandwidth limit, in the range of 0 to 102400 pps. When the maximum bandwidth is exceeded, the packets are discarded.

Examples

# Configure the threshold for per-protocol bandwidth limit for ARP frames as 1000 pps.

<Sysname> system-view

[Sysname] anti-attack protocol arp threshold 1000

anti-attack protocol flow-threshold

Use anti-attack protocol flow-threshold to enable per-flow bandwidth limit and configure the threshold.

Use undo anti-attack protocol flow-threshold to disable per-flow bandwidth limit.

Syntax

anti-attack protocol protocol flow-threshold flow-limit-rate

undo anti-attack protocol protocol flow-threshold

Default

Per-flow bandwidth limit is disabled for packets of all protocols.

Views

System view

Default command level

2: System level

Parameters

protocol: Specifies a protocol by its name, a string of 1 to 31 characters.

flow-limit-rate: Specifies the per-flow bandwidth limit threshold in the range of 0 to 102400 pps. When the maximum bandwidth is exceeded, the packets are discarded.

Examples

# Configure the per-flow bandwidth limit threshold for ARP frames as 50 pps.

<Sysname> system-view

[Sysname] anti-attack protocol arp flow-threshold 50

display anti-attack

Use display anti-attack to display protocol packet rate limit information.

Syntax

display anti-attack { all | protocol [ protocol ] }

Views

Any view

Default command level

2: System level

Parameters

all: Specifies all protocols.

protocol [ protocol ]: Specifies a protocol by its type, a string of 1 to 31 characters.

Examples

# Display states of the rate limit function for all protocols.

<Sysname> display anti-attack protocol

Enable Protocols: dhcp arp                                                    

 Disable Protocols: default udp tcp dot1x igmp ntp snmp telnet icmp lwapp      

 loopback pppoe iactp acsei iec wlanex stp meshaction lwapp_data dot11_ctrl    

 iactp_eapol svp ipc http ip ipv6 ethernet radius vrrp capwap_ctrl             

 capwap_data dot11_auth dot11_assoc dot11_reassoc dot11_null                      

Table 1 Command output

Field

Description

Enable Protocols

Protocols with rate limit enabled.

Disable Protocols

Protocols with rate limit disabled.

 

# Display rate limit information for all protocols.

<Sysname>display anti-attack all                                                   

                        Anti-attack statistics                                 

--------------------------------------------------------------------------------

Protocol       Priority  Limit(pps)       Rate(pps)      Passed     Dropped    

--------------------------------------------------------------------------------

default        2         256              0              3          0          

udp            2         2048             0              0          0          

tcp            2         1024             0              0          0          

dot1x          1         1024             0              0          0          

dhcp           2         2000             0              0          0          

igmp           2         1024             0              0          0          

ntp            2         256              0              0          0          

arp            1         1024             0              1          0          

snmp           0         1024             0              0          0          

telnet         0         1024             0              0          0          

icmp           0         1024             0              4          0          

lwapp          1         2048             0              0          0          

loopback       2         40               0              0          0          

pppoe          1         1024             0              0          0          

iactp          1         2560             0              0          0          

acsei          2         128              0              0          0          

iec            0         128              0              0          0           

wlanex         2         2048             0              0          0          

stp            2         2048             0              0          0          

meshaction     2         1024             0              0          0          

lwapp_data     1         2048             0              0          0          

dot11_ctrl     1         512              0              0          0          

iactp_eapol    1         2048             0              0          0          

svp            2         40               0              0          0          

ipc            2         40               0              0          0          

http           1         1024             0              0          0          

ip             2         2560             0              0          0          

ipv6           2         128              0              0          0          

ethernet       2         128              0              0          0          

radius         1         2048             0              0          0          

vrrp           1         2048             0              0          0          

capwap_ctrl    1         2048             0              0          0          

capwap_data    1         2048             0              0          0          

dot11_auth     1         256              0              0          0          

dot11_assoc    1         256              0              0          0          

dot11_reassoc  1         256              0              0          0          

dot11_null     1         1024             0              0          0          

Table 2 Command output

Field

Description

Protocol

Protocol name.

Priority

Processing priority value of the protocol, in the range of 0 to 4. A smaller value represents a higher priority.

Limit(pps)

Rate limit value. This field displays the default value if you have not configured it.

Rate(pps)

Current rate of the protocol packets.

Passed

Number of passed packets.

Dropped

Number of dropped packets.

 

# Display rate limit information for ICMP packets.

<Sysname> display anti-attack protocol icmp                                           

                        Anti-attack statistics                                 

--------------------------------------------------------------------------------

Protocol       Priority  Limit(pps)       Rate(pps)      Passed     Dropped    

--------------------------------------------------------------------------------

icmp           0         1024             4              50         0          

                                                                               

                                                                                

--------------------------------------------------------------------------------

Flow-Source                               FlowRate(pps)  Passed     Dropped    

--------------------------------------------------------------------------------

1.1.1.10                                  2              40         0          

1.1.1.20                                  1              10         0          

                            

Table 3 Command output

Field

Description

Flow-Source

Source of the flow.

FlowRate(pps)

Current rate of the flow.

 

 

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网