Table Of Contents
IPsec Security Association Idle Timers
Contents
Prerequisites for IPsec Security Association Idle Timers
Information About IPsec Security Association Idle Timers
Lifetimes for IPsec Security Associations
IPsec Security Association Idle Timers
Benefits of IPsec Security Association Idle Timers
How to Configure IPsec Security Association Idle Timers
Configuring the IPsec SA Idle Timer Globally
Configuring the IPsec SA Idle Timer per Crypto Map
Configuration Examples for IPsec Security Association Idle Timers
Configuring the IPsec SA Idle Timer Globally Example
Configuring the IPsec SA Idle Timer per Crypto Map Example
Additional References
Related Documents
Standards
MIBs
RFCs
Technical Assistance
Command Reference
IPsec Security Association Idle Timers
When a router running the Cisco IOS software creates an IPsec security association (SA) for a peer, resources must be allocated to maintain the SA. The SA requires both memory and several managed timers. For idle peers, these resources are wasted. If enough resources are wasted by idle peers, the router could be prevented from creating new SAs with other peers. The IPsec Security Association Idle Timers feature introduces a configurable idle timer to monitor SAs for activity, allowing SAs for idle peers to be deleted. Benefits of this feature include:
•
Increased availability of resources
•
Improved scalability of Cisco IOS IPsec deployments
Feature Specifications for IPsec Security Association Idle Timers
Feature History
|
|
Release
|
Modification
|
12.2(15)T
|
This feature was introduced.
|
12.3(14)T
|
The set security-association idle-time command was added, allowing for the configuration of an IPsec idle timer for a specified crypto map.
|
Cisco IOS XE Release 2.1
|
This feature was introduced on Cisco ASR 1000 Series Routers.
|
Supported Platforms
|
Cisco 1700 series access routers, Cisco 2400 series integrated access devices, Cisco 2600 series multiservice platforms, Cisco 3600 series multiservice platforms, Cisco 3700 series multiservice access routers, Cisco 7100 series VPN routers, Cisco 7200 series routers, Cisco 7400 series routers, Cisco 7500 series routers, Cisco 801-804 ISDN routers, Cisco 805 serial router, Cisco 806 broadband router, Cisco 811, Cisco 813, Cisco 820, Cisco 827 ADSL router, Cisco 828 G.SHDSL router, Cisco 8850-RPM, Cisco 950, Cisco AS5350 universal gateway, Cisco AS5400 series universal gateways, Cisco integrated communications system 7750, Cisco MC3810 series multiservice access concentrators, Cisco ubr7200, Cisco ubr900 series cable access routers
|
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Prerequisites for IPsec Security Association Idle Timers
•
Information About IPsec Security Association Idle Timers
•
Information About IPsec Security Association Idle Timers
•
How to Configure IPsec Security Association Idle Timers
•
Configuration Examples for IPsec Security Association Idle Timers
•
Additional References
•
Command Reference
Prerequisites for IPsec Security Association Idle Timers
You must configure Internet Key Exchange (IKE) as described in Internet Key Exchange for IPsec VPNs.
Information About IPsec Security Association Idle Timers
To configure the IPsec Security Association Idle Timers feature, you must understand the following concepts:
•
Lifetimes for IPsec Security Associations
•
IPsec Security Association Idle Timers
•
Benefits of IPsec Security Association Idle Timers
Lifetimes for IPsec Security Associations
The Cisco IOS software currently allows the configuration of lifetimes for IPsec SAs. Lifetimes can be configured globally or per crypto map. There are two lifetimes: a "timed" lifetime and a "traffic-volume" lifetime. A security association expires after the first of these lifetimes is reached.
IPsec Security Association Idle Timers
The IPsec SA idle timers are different from the global lifetimes for IPsec SAs. The expiration of the global lifetime is independent of peer activity. The IPsec SA idle timer allows SAs associated with inactive peers to be deleted before the global lifetime has expired.
If the IPsec SA idle timers are not configured, only the global lifetimes for IPsec SAs are applied. SAs are maintained until the global timers expire, regardless of peer activity.
Note
If the last IPsec SA to a given peer is deleted due to idle timer expiration, the Internet Key Exchange (IKE) SA to that peer will also be deleted.
Benefits of IPsec Security Association Idle Timers
Increased Availability of Resources
Configuring the IPsec Security Association Idle Timers feature increases the availability of resources by deleting SAs associated with idle peers.
Improved Scalability of Cisco IOS IPsec Deployments
Because the IPsec Security Association Idle Timers feature prevents the wasting of resources by idle peers, more resources will be available to create new SAs as required.
How to Configure IPsec Security Association Idle Timers
•
Configuring the IPsec SA Idle Timer Globally
•
Configuring the IPsec SA Idle Timer per Crypto Map
Configuring the IPsec SA Idle Timer Globally
This task configures the IPsec SA idle timer globally. The idle timer configuration will be applied to all SAs.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
crypto ipsec security-association idle-time seconds
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
crypto ipsec security-association idle-time
seconds
Example:
Router(config)# crypto ipsec
security-association idle-time 600
|
Configures the IPsec SA idle timer.
• The seconds argument specifies the time, in seconds, that the idle timer will allow an inactive peer to maintain an SA. Valid values for the seconds argument range from 60 to 86400.
|
Configuring the IPsec SA Idle Timer per Crypto Map
This task configures the IPsec SA idle timer for a specified crypto map. The idle timer configuration will be applied to all SAs under the specified crypto map.
Note
This configuration task was available effective with Cisco IOS Release 12.3(14)T.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
crypto map map-name seq-number ipsec-isakmp
4.
set security-association idle-time seconds
DETAILED STEPS
| |
Command or Action
|
Purpose
|
Step 1
|
enable
Example:
Router> enable
|
Enables privileged EXEC mode.
• Enter your password if prompted.
|
Step 2
|
configure terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
Step 3
|
crypto map map-name seq-number ipsec-isakmp
Example:
Router(config)# crypto map test 1 ipsec-isakmp
|
Creates or modifies a crypto map entry and enters crypto map configuration mode.
|
Step 4
|
set security-association idle-time seconds
Example:
Router(config-crypto-map)# set
security-association idle-time 600
|
Specifies the maximum amount of time for which the current peer can be idle before the default peer is used.
• The seconds argument is the number of seconds for which the current peer can be idle before the default peer is used. Valid values are 60 to 86400.
|
Configuration Examples for IPsec Security Association Idle Timers
•
Configuring the IPsec SA Idle Timer Globally Example
•
Configuring the IPsec SA Idle Timer per Crypto Map Example
Configuring the IPsec SA Idle Timer Globally Example
The following example globally configures the IPsec SA idle timer to drop SAs for inactive peers after 600 seconds:
crypto ipsec security-association idle-time 600
Configuring the IPsec SA Idle Timer per Crypto Map Example
The following example configures the IPsec SA idle timer for the crypto map named test to drop SAs for inactive peers after 600 seconds:
crypto map test 1 ipsec-isakmp
set security-association idle-time 600
Note
The above configuration was not available until Cisco IOS Release 12.3(14)T.
Additional References
For additional information related to IPsec Security Association Idle Timers, see the following sections:
•
Related Documents
•
Standards
•
MIBs
•
RFCs
•
Technical Assistance
Related Documents
Standards
MIBs
MIBs
|
MIBs Link
|
None
|
To locate and download MIBs for selected platforms, Cisco IOS software releases, and feature sets, use Cisco MIB Locator found at the following URL:
http://www.cisco.com/go/mibs
|
RFCs
Technical Assistance
Description
|
Link
|
The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.
To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.
|
http://www.cisco.com/techsupport
|
Command Reference
The following commands are introduced or modified in the feature or features
•
crypto ipsec security-association idle-time
•
set security-association idle-time
For information about these commands, see the Cisco IOS Security Command Reference at
http://www.cisco.com/en/US/docs/ios/security/command/reference/sec_book.html.
For information about all Cisco IOS commands, see the Command Lookup Tool at
http://tools.cisco.com/Support/CLILookup or the Master Command List.
CCDE, CCENT, CCSI, Cisco Eos, Cisco HealthPresence, Cisco IronPort, the Cisco logo, Cisco Lumin, Cisco Nexus, Cisco Nurse Connect, Cisco Pulse, Cisco StackPower, Cisco StadiumVision, Cisco TelePresence, Cisco Unified Computing System, Cisco WebEx, DCE, Flip Channels, Flip for Good, Flip Mino, Flipshare (Design), Flip Ultra, Flip Video, Flip Video (Design), Instant Broadband, and Welcome to the Human Network are trademarks; Changing the Way We Work, Live, Play, and Learn, Cisco Capital, Cisco Capital (Design), Cisco:Financed (Stylized), Cisco Store, and Flip Gift Card are service marks; and Access Registrar, Aironet, AllTouch, AsyncOS, Bringing the Meeting To You, Catalyst, CCDA, CCDP, CCIE, CCIP, CCNA, CCNP, CCSP, CCVP, Cisco, the Cisco Certified Internetwork Expert logo, Cisco IOS, Cisco Press, Cisco Systems, Cisco Systems Capital, the Cisco Systems logo, Cisco Unity, Collaboration Without Limitation, Continuum, EtherFast, EtherSwitch, Event Center, Explorer, Fast Step, Follow Me Browsing, FormShare, GainMaker, GigaDrive, HomeLink, iLYNX, Internet Quotient, IOS, iPhone, iQuick Study, IronPort, the IronPort logo, Laser Link, LightStream, Linksys, MediaTone, MeetingPlace, MeetingPlace Chime Sound, MGX, Networkers, Networking Academy, Network Registrar, PCNow, PIX, PowerKEY, PowerPanels, PowerTV, PowerTV (Design), PowerVu, Prisma, ProConnect, ROSA, ScriptShare, SenderBase, SMARTnet, Spectrum Expert, StackWise, The Fastest Way to Increase Your Internet Quotient, TransPath, WebEx, and the WebEx logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United States and certain other countries.
All other trademarks mentioned in this document or website are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (0908R)
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2009 Cisco Systems, Inc. All rights reserved.