The bandwidth connection-limit command sets connection limits in a traffic profile.
The undo bandwidth connection-limit command deletes the configured connection limits.
bandwidth connection-limit { whole | per-ip | per-user } { upstream | downstream | both } connection-number
undo bandwidth connection-limit { whole | per-ip | per-user } { upstream | downstream | both }
| Parameter | Description | Value |
|---|---|---|
| whole | Indicates the overall maximum number of connections in a traffic profile. | The value is an integer.
|
| per-ip | Indicates the maximum number of connections for each IP address. | The value is an integer.
|
| per-user | Indicates the maximum number of connections for each user. | The value is an integer.
|
| upstream | Indicates the maximum number of upstream connections. | - |
| downstream | Indicates the maximum number of downstream connections. | - |
| both | Indicates the total number of upstream and downstream connections. | - |
The maximum number of concurrent connections for each IP address or user cannot exceed the overall maximum number of connections.
# Set the overall maximum number of upstream connections to 20000 in traffic profile traffic_profile.
<sysname> system-view [sysname] traffic-policy [sysname-policy-traffic] profile traffic_profile [sysname-policy-traffic-profile-traffic_profile] bandwidth connection-limit whole upstream 20000