11-15-2016 06:26 AM - edited 02-21-2020 09:03 PM
Hi,
I have a question regarding a piece of documentation :
"When the tunnel is configured to operate in IPSec mode, the keepalive parameter must be disabled. By default, keepalive is disabled."
I understand the keepalive command under the tunnel interface should only be used when using GRE encapsulation.
I know we can use DPD with IKEv1 or IKEv2, but I was just being curious and wonder why cannot we use keepalive with IPsec?
Thanks!
Thomas
11-15-2016 06:53 AM
Hi Thomas,
It is mainly because there are two ways to configure a GRE over IPSec tunnel, either using crypto maps or tunnel protection, right? There are some differences between them.
Crypto Map GRE over IPSec:
Tunnel Protection GRE over IPSec:
As you can imagine, sometimes a router will receive a encrypted keepalive when he is just expecting a clear text keepalive, or the router is expecting a encrypted packet but he is receiving a clear text keepalive. Which will make the tunnel to change state to up/down.
11-16-2016 01:00 AM
Hi mdussana,
Thanks for your reply. I do understand that part, however what I am missing here is why I can use the keepalive feature with GRE but not with IPsec only.
As you correctly said, we can configure GRE/IPsec tunnel either with crypto map or with a tunnel protection. But we can do the same without GRE. If I chose to use "tunnel mode ipsec ipv4", then it is not going to use GRE encapsulation anymore, or I can use a crypto map without tunnel interface.
So as the documentation clearly stated we can use the keepalive feature with GRE but not with IPsec, I am still wondering why.
Thomas
05-12-2022 01:52 AM
hi lemontree
dussana wrote clearly to my understanding
with GRE there is no encryption happening so keepalives always come/go unencrypted and are also expected to arrive unencrypted so that makes them reliable and ok to use then.
with IPSEC it can come encrypted when it was expected unencrypted and vice versa.
..my case i ve set keepalives on ipsec interface and so far i dont see any confusion - interface stays up. so you best try yourself.
05-14-2022 09:42 AM
this doc. explain the issue of keep alive with IPSec.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide