Use ipsec limit max-tunnel to set the maximum number of IPsec tunnels that can be established.
Use undo ipsec limit max-tunnel to restore the default.
Syntax
ipsec limit max-tunnel tunnel-limit
undo ipsec limit max-tunnel
Default
There is no limit to the maximum number of IPsec tunnels.
Views
System view
Predefined user roles
network-admin
Parameters
tunnel-limit: Specifies the maximum number of IPsec tunnels, in the range of 1 to 4294967295.
Usage guidelines
Set the limit according to the memory usage. If the memory is sufficient, set a large value for better concurrency performance. If the memory is insufficient, set a small value to save memory resources.
Examples
# Set the maximum number of IPsec tunnels that can be established to 5000.
<Sysname> system-view[Sysname] ipsec limit max-tunnel 5000
Related commands
ike limit