Usage guidelines
A connection limit policy contains a set of rules for limiting the number of connections of a specific
user. A policy number uniquely identifies a connection limit policy.
After applying a connection limit policy in system view, you cannot modify, add, or remove
connection limit rules in the policy.
Examples
# Create a connection limit policy numbered 0 and enter its view.
<Sysname> system-view
[Sysname] connection-limit policy 0
[Sysname-connection-limit-policy-0]
display connection-limit policy
Use display connection-limit policy to display information about a specific or all connection limit
policies.
Syntax
display connection-limit policy { policy-number | all } [ | { begin | exclude | include }
regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
policy-number: Specifies the connection limit policy number. The value is 0.
all: Displays all connection limit policies.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display information about all connection limit policies.
<Sysname> display connection-limit policy all
There are 1 policy:
Connection-limit policy 0, refcount 0, 1 limit
limit 0 source ip 3.3.3.0 24 source-vpn vpn1 destination ip any protocol tcp
max-connections 200 per-source
Table 65 Command output
Field
Connection-limit policy
refcount 0, 1 limits
Description
Number of the connection limit policy.
Number of times that the policy is applied and number of rules in the policy.
396