The sa soft-duration buffer command sets the soft timeout buffer time or traffic volume for an IPSec SA in an IPSec policy.
The undo sa soft-duration buffer command cancels the configuration.
By default, the soft timeout buffer time or traffic volume is not configured for an IPSec SA in an IPSec policy.
sa soft-duration { time-based buffer seconds | traffic-based buffer kilobytes }
undo sa soft-duration { time-based buffer | traffic-based buffer }
| Parameter | Description | Value |
|---|---|---|
| time-based buffer seconds | Specifies the time-based soft timeout buffer for an IPSec SA. | The value is an integer that ranges from 10 to 36000, in seconds. |
| traffic-based buffer kilobytes | Specifies the traffic-based soft timeout buffer for an IPSec SA. | 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 soft timeout buffer time of an IPSec SA to 600s in IPSec policy example.
<sysname> system-view [sysname] ipsec policy example 1 isakmp [sysname-ipsec-policy-isakmp-example-1] sa soft-duration time-based buffer 600
# Set the soft timeout buffer traffic of an IPSec SA to 10000 KB in IPSec policy example.
<sysname> system-view [sysname] ipsec policy example 1 isakmp [sysname-ipsec-policy-isakmp-example-1] sa soft-duration traffic-based buffer 10000