The VPN connection is considered active when the first IKE Phase 1 SA establishes. It is considered gone when:
The output of the following commands shows an example where the IKE active peer information is cleared: IKE active-peer information exists even though Phase 1 SA and Phase 2 SA are expired.
lab> show security ike active-peer Remote Address Port Peer IKE-ID XAUTH username Assigned IP 30.1.1.2 500 testtest lab> show security ipsec security-associations Total active tunnels: 0 lab> show security ike security-associations
The phenomenon is an expected behavior.
A client is connected. In this example, the client didn't click disconnect explicitly, but just disconnected from the network. If the client clicked disconnect, the Phase 2 SA information would be deleted.
lab> show system uptime | match Current
Current time: 2011-03-17 15:24:13 UTC lab> show security ike active-peer Remote Address Port Peer IKE-ID XAUTH username Assigned IP 30.1.1.2 500 testtest lab> show security ipsec security-associations Total active tunnels: 1 ID Gateway Port Algorithm SPI Life:sec/kb Mon vsys <133955592 30.1.1.2 500 ESP:3des/md5 5b78bf9f 180/ 15000 - root >133955592 30.1.1.2 500 ESP:3des/md5 4e4184a6 180/ 15000 - root lab> show security ike security-associations Index Remote Address State Initiator cookie Responder cookie Mode 4607 30.1.1.2 UP b933c309748a8549 939435b297cee140 Aggressive lab> show system license License usage: Licenses Licenses Licenses Expiry Feature name used installed needed idp-sig 0 1 0 2012-03-13 00:00:00 UTC dynamic-vpn 1 10 0 permanent ax411-wlan-ap 0 2 0 permanent
Phase 1 SA has expired:
Current time: 2011-03-17 15:26:10 UTC lab> show security ike active-peer Remote Address Port Peer IKE-ID XAUTH username Assigned IP 30.1.1.2 500 testtest lab> show security ipsec security-associations Total active tunnels: 1 ID Gateway Port Algorithm SPI Life:sec/kb Mon vsys <133955592 30.1.1.2 500 ESP:3des/md5 5b78bf9f 63/ 13500 - root >133955592 30.1.1.2 500 ESP:3des/md5 4e4184a6 63/ 13500 - root lab> show security ike security-associations
---> Phase 1 SA expired.
Phase 2 SA expired.
Current time: 2011-03-17 15:27:13 UTC lab> show security ike active-peer Remote Address Port Peer IKE-ID XAUTH username Assigned IP 30.1.1.2 500 testtest lab> show security ipsec security-associations ---> Phase 2 SA expired. Total active tunnels: 0 lab> show security ike security-associations lab> show system license License usage: Licenses Licenses Licenses Expiry Feature name used installed needed idp-sig 0 1 0 2012-03-13 00:00:00 UTC dynamic-vpn 0 10 0 permanent ax411-wlan-ap 0 2 0 permanent
After 10 minutes since the Phase 2 SA expired:
Current time: 2011-03-17 15:37:14 UTC
lab> show security ike active-peer --->
IKE Active peer information is cleared after 10 minutes since Phase 2 SA expired.
lab> show security ipsec security-associations
Total active tunnels: 0
lab> show security ike security-associations
2020-07-17: Article reviewed for accuracy; no changes required.