cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
700
Views
5
Helpful
9
Replies

verify IPSec VPN use/uptime on routers?

Is there a way to verify VPN use and uptime?  I believe that the below command will only show output for the duration of the security association, which could be for an unknown time period.  Do you know a way to verify when counters were last cleared for the below command?

sh crypto ipsec sa peer x.x.x.x

I'm trying to determine if a VPN can be turned off and need output from the VPN headends (routers in this case) as proof of VPN inactivity.

 

FYI this is a policy based VPN.  

Cisco IOS XE Software, Version 03.16.10.S

ASR 10002

9 Replies 9

@hocus-pokus-alakazoo if it's a policy based VPN it requires regular traffic to maintain the VPN, so if there are IPSec SAs then the VPN is in use.

 

yes, this is a policy based vpn

Show crypto isakmp sa detail 

Show crypto ipsec sa detail 

Show crypto session sa detail 

Check the lifetime for phaseI and PhaseII from above three command 

MHM

this is a policy based VPN and there has been no traffic on it for a while.  I want to know how long there's been no traffic so as to tear down the SA.

@hocus-pokus-alakazoo With a policy based VPN there needs to be interesting traffic to establish and maintain the VPN. If there is no activity the lifetime timers will expire, the SA will not be renewed and the tunnel will be torn down automatically. If the tunnel goes down (due to lack of interesing traffic) only when interesting traffic is sent/received will the tunnel be re-established. SA lifetimes are 24 hours maximum, so if there are IPSec SA then the tunnel has been used recently.

The tunnel phaseI and phaseII 

PhaseI lifetime is 24 hours' after that vpn will delete if

there is no traffic and we use keepalive on demand 

If we use keepalive periodic then phaseI auto re-nego after 24 hrs

Now For phaseII' if you see encrypt and decrypt SPI then there is active traffic between two peer' if you dont see SPI then there is no traffic.

MHM

so it sounds like there is no way to tell how long the SA has been dead beyond 24 hours....we can't conclude that a VPN has been inactive for say "30 days"?

@hocus-pokus-alakazoo with a policy based VPN there will be no IPSec SA if the timers have expired due to lack of interesting traffic.