Troubleshooting notes · VPN and tunnels

IPsec VTI tunnel down: IKEv2 NO_PROPOSAL_CHOSEN and AUTHENTICATION_FAILED

An IKEv2 site-to-site VTI never comes up. How to read the IKEv2 debug, from a proposal mismatch to a pre-shared key mismatch, and why an up tunnel can still leave traffic unencrypted. Real output from Cisco IOS XE 17.18.

The symptom

The branch's new IPsec VTI never comes up: the tunnel is up/down and there's no IKEv2 SA. The debug on the HQ router shows why:

R3# show interfaces tunnel 0 | include line protocol
Tunnel0 is up, line protocol is down
R3# show crypto ikev2 sa
R3#

R1# debug crypto ikev2
IKEv2:(SESSION ID = 1,SA ID = 1):parsing NOTIFY payload NOTIFY(NO_PROPOSAL_CHOSEN)
IKEv2-ERROR:(SESSION ID = 1,SA ID = 1):: Received no proposal chosen notify
IKEv2:(SESSION ID = 1,SA ID = 1):Failed SA init exchange
IKEv2-ERROR:(SESSION ID = 1,SA ID = 1):Initial exchange failed: Initial exchange failed

Step 1: NO_PROPOSAL_CHOSEN

The two peers have no common IKEv2 proposal. Here the branch proposes Diffie-Hellman group 19 and HQ only accepts group 14. IKE fails in the first exchange (IKE_SA_INIT), before the peers even authenticate. Fix the side that's out of line with the design:

R3(config)# crypto ikev2 proposal PROP-BRANCH
R3(config-ikev2-proposal)# no group 19
R3(config-ikev2-proposal)# group 14

Step 2: AUTHENTICATION_FAILED

With the proposals matching, IKE gets one step further and fails in the second exchange (IKE_AUTH):

R1# debug crypto ikev2
IKEv2 IKE_AUTH Exchange REQUEST
IKEv2 IKE_AUTH Exchange RESPONSE
IKEv2:(SESSION ID = 1,SA ID = 2):parsing NOTIFY payload NOTIFY(AUTHENTICATION_FAILED)
IKEv2:(SESSION ID = 1,SA ID = 2):Process auth response notify
IKEv2-ERROR:(SESSION ID = 1,SA ID = 2):: Auth exchange failed

That's a pre-shared key mismatch. Set the same key on both peers:

R3(config)# crypto ikev2 keyring KR-HQ
R3(config-ikev2-keyring)# peer HQ
R3(config-ikev2-keyring-peer)# pre-shared-key Vti-Lab-Key-1

Reading the debug in this order tells you where you are: a failure in IKE_SA_INIT means proposals, a failure in IKE_AUTH means authentication.

Step 3: the tunnel is up, but is traffic using it?

An IPsec tunnel only protects traffic that's routed into it. Here the branch's static route to the HQ LAN still pointed at the internet router, so traffic went out in the clear, hop by hop across the internet:

R3# show ip route 10.1.1.0 | include Known|via|Routing
Routing entry for 10.1.1.0/24
  Known via "static", distance 1, metric 0
R3# traceroute 10.1.1.1 source 10.3.3.3 numeric
  1 203.0.113.5 4 msec 0 msec 0 msec
  2 203.0.113.1 1 msec *  2 msec
R3(config)# no ip route 10.1.1.0 255.255.255.0 203.0.113.5
R3(config)# ip route 10.1.1.0 255.255.255.0 Tunnel0

Check it

R3# show crypto ikev2 sa
 IPv4 Crypto IKEv2  SA
Tunnel-id Local                 Remote                fvrf/ivrf            Status
2         203.0.113.6/500       203.0.113.1/500       none/none            READY
      Encr: AES-CBC, keysize: 256, PRF: SHA256, Hash: SHA256, DH Grp:14, Auth sign: PSK, Auth verify: PSK

R3# show interfaces tunnel 0 | include line protocol
Tunnel0 is up, line protocol is up

R3# show ip route 10.1.1.0 | include via|Known
  Known via "static", distance 1, metric 0 (connected)
  * directly connected, via Tunnel0

R3# ping 10.1.1.1 source 10.3.3.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/29 ms

R3# show crypto ipsec sa | include pkts encaps|pkts decaps
    #pkts encaps: 5, #pkts encrypt: 5, #pkts digest: 5
    #pkts decaps: 5, #pkts decrypt: 5, #pkts verify: 5

R3# traceroute 10.1.1.1 source 10.3.3.3 numeric
  1 172.16.0.1 3 msec *  3 msec

The IKEv2 SA is READY with DH group 14, the route points into Tunnel0, the encrypt and decrypt counters rise, and the trace is a single hop through the tunnel. Test from LAN to LAN with a source address: a plain ping from the router uses the tunnel's own address.

Practise this fault

This fault is in ENCOR Lab 05 of ENCOR Core Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.

Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.