Two consoles, one tunnel, no traffic. The headend says phase 1 is up. The branch says phase 1 is up. Neither says phase 2. The ticket says "phase 1 phase 2 mismatch" — a label vague enough to guarantee the next hour gets spent reading the wrong log file. Phase 1/phase 2 mismatch is not one bug. It is four independent failure surfaces with four different tells, and the fastest way to burn an afternoon is to troubleshoot them as if they were the same thing.
"Phase 1 up" is one device's opinion, not a fact
An IKE SA is two-party state with two independent reporters. show crypto isakmp sa, show vpn ike gateway, and ipsec statusall describe the same negotiation from opposite ends, and they disagree more often than anyone expects: a half-open negotiation looks "up" on the side that initiated and shows nothing at all on the side that never replied. Collect both endpoints before you touch a proposal. In a 200-tunnel estate, the tickets closed simply by reading the responder's log instead of the initiator's are the cheapest MTTR win on the board.
Then check the version. An IKEv1/IKEv2 mismatch almost never presents as a proposal rejection — it presents as silence, because the responder never decodes the packet far enough to reject it. "No response at all" and "rejected my proposal" are different universes, and the notify codes in each are different too.
Four failure surfaces, four different tells
- Phase 1 proposal mismatch — encryption, hash, or DH group. Tell: no IKE SA on either side, or
NO_PROPOSAL_CHOSENduring IKESAINIT. - Phase 1 identity or auth mismatch — pre-shared key, certificate chain, or local/remote ID type (IP address vs FQDN vs distinguished name). Tell:
AUTHENTICATION_FAILED, or an IKE SA that never leaves the initial state. - Phase 2 proposal mismatch — ESP encryption, ESP integrity, or PFS group. Tell: IKE SA up on both ends, child SA never created,
NO_PROPOSAL_CHOSENinside the CHILD_SA exchange. - Phase 2 traffic selector mismatch — proxy IDs, ACLs, local/remote subnets. Tell:
TS_UNACCEPTABLE, or a child SA that exists with zero encaps and zero decaps.
Surface 1 failing tells you the two sides disagree about the wrapper. Surface 4 failing tells you they disagree about the contents. Editing one to fix the other is the single most common wasted hour in this discipline.
Read the notify payload, not the summary line
IKEv2 hands you an explicit reason code. Most implementations log it at debug level and bury it in a summary line that says something unhelpful like "phase 2 negotiation failed." Turn on the right debug and read the actual notify:
| IKEv2 notify | Layer | First thing to check |
|---|---|---|
NO_PROPOSAL_CHOSEN | Phase 1 or phase 2 proposal | PFS group first, then cipher and integrity lists |
INVALID_KE_PAYLOAD | Phase 1 DH group | The responder's preferred group — a retry may follow |
AUTHENTICATION_FAILED | Phase 1 identity | PSK, cert trust chain, local/remote ID type |
TS_UNACCEPTABLE | Phase 2 selectors | Proxy IDs and subnet pairs on both ends |
CHILD_SA_NOT_FOUND | Phase 2 state | A dangling child SA after a rekey — clear and renegotiate |
The INVALID_KE_PAYLOAD row is the one that fools people. Many IKEv2 stacks answer a wrong DH group by naming the group they want and letting the initiator retry, so a phase 1 DH mismatch can silently succeed while the two configs still disagree. That is a latent fault: it sits quietly until a firmware upgrade changes the retry behavior, and a tunnel that "worked for years" dies on a Tuesday with no config change to blame.
Phase 1 up means two devices agreed on how to whisper; it tells you nothing about whether they agree on what to carry.
The traffic selector trap behind most phase 2 failures
This is where the majority of "phase 1 up, phase 2 down" tickets actually live. The classic shape: one endpoint is policy-based with a /24-to-/24 ACL, and the other is route-based — a VTI or tunnel interface offering 0.0.0.0/0 as both selectors. The broad side proposes everything, the narrow side can't accept it, and you get TS_UNACCEPTABLE while both admins insist phase 1 is fine, which it is.
The fix is to constrain the selectors on the route-based side, or widen the policy side to match — but only after you have confirmed which interpretation each platform uses for a proxy ID of zero. Some treat 0.0.0.0/0 as "any," some as a literal selector, and the difference is invisible in the config until traffic fails.
The second-order trap is overlapping subnets. Two sites both using 192.168.1.0/24 will negotiate a perfectly healthy child SA and then blackhole traffic, because the SA comes up and the route is wrong. An SA that is up with encaps counters incrementing and decaps counters flat is a routing problem, not a crypto problem. Stop reading crypto logs at that point and run a traceroute.
Mismatches that present as flapping, not failure
Not every mismatch fails. Lifetime and rekey asymmetries fail intermittently, and intermittent failures get misdiagnosed as link quality for weeks. A phase 2 lifetime of 3,600 seconds on one side against 28,800 seconds on the other, or a PFS group set on one side and absent on the other, produces a tunnel that comes up cleanly, works, and then drops on a schedule. Phase 1 lifetime mismatch is usually benign — most responders accept the shorter value — which is exactly why nobody suspects lifetime by the time the ticket is written.
Count flaps before you count drops. A tunnel that rekeys every hour and drops once every 7,200 seconds is telling you the rekey is one-sided, not that the circuit is flapping. Watch the #pkts no sa counter on the receiving side: if it climbs while encaps counters are healthy, inbound ESP is arriving for a selector that doesn't exist on that device. That counter is the tell for a selector mismatch that is almost right.
Where this is heading
Everything above is deterministic: a notify code goes in, a cause comes out, and the only genuinely hard part is collecting both endpoints' views at the same moment. That is a data-collection problem wearing a troubleshooting costume. The decision tree should not live in a runbook that a human executes at 2 a.m.; it should be attached to the tunnel object itself, evaluated as a config diff before the tunnel ever comes up — proposals, PFS, selectors, lifetimes, rekey settings, compared across both peers at commit time — and re-evaluated automatically every time a child SA fails or flaps. The end state is not faster human debugging. It is that "phase 1 phase 2 mismatch" stops appearing as a ticket title, because the system reports which of the four surfaces actually broke and what the two configs disagreed about.

