The ipsec sa global-soft-duration buffer command sets the global soft timeout buffer time or traffic volume for an IPSec SA.
The undo ipsec sa global-soft-duration buffer command deletes the global soft timeout buffer time or traffic volume of an IPSec SA.
By default, the global soft timeout buffer time or traffic volume is not configured for an IPSec SA.
ipsec sa global-soft-duration { time-based buffer seconds | traffic-based buffer kilobytes }
undo ipsec sa global-soft-duration { time-based | traffic-based } buffer
| Parameter | Description | Value |
|---|---|---|
| time-based buffer seconds | Specifies the global time-based soft timeout buffer for an IPSec SA. | The value is an integer that ranges from 10s to 36000s. |
| traffic-based buffer kilobytes | Specifies the global traffic-based soft timeout buffer. | The value is an integer that ranges from 7200 to 4187103 KB. |
Usage Scenario
Before the IPSec SA hard lifetime expires, a new IPSec SA is negotiated to replace the original IPSec SA. The time from the establishment of the original IPSec SA till the negotiation of the new IPSec SA is the soft lifetime.
Soft Lifetime Type |
Description |
|---|---|
Time-based soft lifetime (soft timeout period) |
|
Traffic-based soft lifetime (soft timeout traffic) |
|
The soft timeout buffer time or traffic of an IPSec SA can be configured globally or in an IPSec policy. The soft timeout buffer time or traffic configured globally is valid for all IPSec policies, and the soft timeout buffer time or traffic configured in an IPSec policy is valid for only the IPSec policy.
Precautions
If the soft timeout buffer time or traffic of an IPSec SA is configured globally and in an IPSec policy, the soft timeout buffer time or traffic configured in the IPSec policy is valid.
# Set the global soft timeout buffer time for the IPSec SA to 600s on the FW, which serves as one end of the IPSec VPN tunnel.
<sysname> system-view [sysname] ipsec sa global-soft-duration time-based buffer 600
# Set the global soft timeout for the IPSec SA to 10000 KB on the FW that serves as one end of the IPSec VPN tunnel.
<sysname> system-view [sysname] ipsec sa global-soft-duration traffic-based buffer 10000