Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

IKE

Direct answer

Internet Key Exchange authenticates IPsec peers, negotiates cryptographic parameters, establishes IKE and child security associations, derives keys and manages liveness, rekey and deletion; current deployments should distinguish IKEv2 from deprecated IKEv1.

When to use this

Use it when configuring, checking or troubleshooting IKE in VPN.

First 30 seconds

1. IKE negotiates keys and SAs (UDP 500/4500).

2. IKEv2 preferred.

3. Authentication: certificates or PSK.

4. Proposals must match.

5. Logs show NO_PROPOSAL_CHOSEN, AUTH_FAILED etc.

Operational verification

IKE_SA_INIT → IKE_AUTH → child SA

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

An IKE SA shows authenticated key-management state under selected parameters, but it does not show application traffic is selected or delivered.

Suspicious evidence: version mismatch, identity mismatch, no proposal, PSK lookup error, certificate trust, clock, NAT-T, fragmentation, liveness timeout or child selector rejection.

Platform / version applicability
Network security
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformNetwork security
Scope / prerequisiteUse it when configuring, checking or troubleshooting IKE in VPN.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

underlay/ports → version/proposal/key exchange → peer authentication → IKE SA → child-SA selectors/keys → liveness/rekey/delete

Step 2 Branching troubleshooting Narrow the fault

Concrete boundaries: peer transport → IKE negotiation/auth → child SA/selectors → route/policy → encrypt/decrypt counters → remote route/policy → protected workload → return.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • IKE ≠ ESP data transport.
  • Proposal selected ≠ peer identity accepted or child SA installed.
  • Tunnel or SA up ≠ protected application traffic succeeds.
  • Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
Key checks
  • show crypto ikev2 sa detailed — IKE SA details
  • swanctl --list-conns — configured connections
  • journalctl -u strongswan --since -1h — IKE logs
ReferenceWhy it matters1 section · depth on demand

How it works in operation

VPN establishment separates peer reachability, IKE proposal/authentication, child-SA/traffic-selector negotiation, route/policy selection and encrypted data-plane counters. IKE established does not show the expected child SA exists, selectors match the original traffic or the remote network has a return route.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

An IKE SA shows authenticated key-management state under selected parameters, but it does not show application traffic is selected or delivered.

In depth

IKE (Internet Key Exchange) is the control protocol of IPsec: it authenticates peers, negotiates cryptographic algorithms and generates the keys used by ESP. Without a working IKE negotiation no IPsec traffic flows.

VersionNotes
IKEv1Legacy; main/aggressive mode + quick mode
IKEv2Current standard; simpler, NAT-T and DPD built in, EAP support

Troubleshooting IKE:

show crypto ikev2 sa detailed
show crypto ikev2 stats
debug crypto ikev2           ! lab or short use only
swanctl --log                 # strongSwan

Typical failures: no proposal chosen (algorithm mismatch), authentication failed (PSK or certificate), identity mismatch, or UDP 500/4500 blocked.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docNetwork security current

Authoritative/upstream documentation reviewed for bounded claims in VPN → IKE. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
Internet Key ExchangeIPsec key managementIKE protocol
Embedded reference data

Quick lookup tables

VPN → IKE proof map

Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → IKE.

BoundaryEstablishDoes not establish
Scope and intentExact subjects, destinations, application, direction, trust zone and expected decisionDoes not prove effective path, identity, cryptography or enforcement
Effective control stateResolved rule/policy, session/SA, identity/posture, translation and selected pathObject/config presence does not prove a match or packet outcome
Runtime evidenceCorrelated client, authenticator/firewall/VPN, AAA and destination observations for one flow/timeA single log or success does not prove every packet, peer, path or failover state
ClosureOriginal allowed/denied operation behaves as intended and regression/failure tests passAdministrative commit or tunnel-up state alone is not closure
Confirmation

Confirm action

Continue?