cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
915
Views
0
Helpful
4
Replies

Encaps and decaps in different tunnels.

patrikdellhem
Level 1
Level 1

Hi.

I've seen a strange error occur multiple times the past week, but I can't figure out why this happens.

The customer reports a VPN as down. With "sh ipsec sa peer" I see the tunnel as up and there are encaps, but no decaps. If I scroll down there's a second identical tunnel, with decaps, but no encaps. A simple "clear ipsec sa peer" fixes the issue, but I'm trying to figure out the root cause.

Does anyone have a clue of why this happens?

4 Replies 4

Marcin Latosiewicz
Cisco Employee
Cisco Employee

To be honest it could be a number of things. 

You can see multiple SAs (with same parameters) in a couple of normal scenarios - including rekay of IPsec SA. 

The problem you're describing could be triggered after a couple of rekeys (for example). 

What platform are you dealing with?

Thanks for your reply.

SAs that separate encaps and decaps can't be normal?

"What platform are you dealing with?"
- Do you mean the vendor on the other side? I'm not sure, but I'll check that out.

Once you have new IPsec SA there's no good reason not to start using the new ones, but should remote end still use old SPIs you can still decrypt using old SAs (until it's deleted).

I meant local and remote vendor/platform  ;]

 

In general I'd say someone needs to have a look at debug and outputs on Cisco IOS it would be: 

(debug crypto condition ipv[4|6] ...) 

- debug crypto isa

- debug crypto ipsec

- debug crypko kmi 

i have the same problem in my environment, with respective to model ASR 1K and 39K model routers