Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

IKE Phase 1

Direct answer

IKE Phase 1 (IKEv1) authenticates the peers with pre-shared keys or certificates and builds a secure IKE SA using Diffie-Hellman, which protects the Phase 2 negotiation. It runs in main or aggressive mode.

When to use this

Use this when IKEv1 Phase 1 fails or needs configuring.

First 30 seconds

1. IKE phase 1 (IKE_SA) authenticates peers and creates a secure channel.

2. Proposal: encryption, PRF/integrity, DH group.

3. Authentication: PSK/certs/EAP.

4. Lifetime typically 24 h.

5. Mismatch → NO_PROPOSAL_CHOSEN.

Operational verification

peers → proposal match → DH → authentication → IKE SA

Context & applicabilityCommon mistakes · platform/version boundaries
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
Key commandshow crypto isakmp sa
Scope / prerequisiteUse this when IKEv1 Phase 1 fails or needs configuring.
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 Checks (Cisco IOS) Verify boundary
show crypto isakmp sa          ! QM_IDLE = phase 1 up
show crypto isakmp sa detail
debug crypto isakmp            ! lab or brief use only

MM_NO_STATE means no reply from the peer (routing, UDP 500 blocked); MM_KEY_EXCH stuck usually means a pre-shared key mismatch.

Step 2 Common mistakes Narrow the fault
  • Proposal mismatch.
  • Aggressive mode with PSK.
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
  • Phase 1 authenticates peers and builds the IKE SA.
  • Main mode is preferred over aggressive mode.
  • Authentication uses PSK or certificates.
Key checks
  • show crypto ikev2 sa / show crypto isakmp sa — IKE SA
  • Phase 1 proposal: encryption, integrity/PRF, DH group, auth — settings
  • swanctl --log — negotiation
ReferenceWhy it matters1 section · depth on demand

Main mode exchanges

MessagesPurpose
1–2Propose and agree on encryption, hash, DH group, authentication, lifetime
3–4DH key exchange and nonces
5–6Encrypted identity and authentication (PSK or certificate)

Failure at 1–2 = proposal mismatch; at 5–6 = wrong PSK or certificate problem. show crypto isakmp sa shows QM_IDLE when Phase 1 is up.

ReferenceImportant terms & boundaries2 sections · depth on demand

What must match in phase 1

ParameterExample
EncryptionAES-256
Hash / PRFSHA-256
DH group19 or 20
AuthenticationPre-shared key or certificates
Lifetime86,400 s (initiator's must be acceptable to responder)
Peer identityIP, FQDN or certificate DN

In depth

IKE Phase 1 (IKEv1) establishes an authenticated, encrypted channel between the two VPN peers — the IKE SA — which is then used to negotiate the actual data-protection SAs in phase 2. The peers agree on encryption, hash, authentication method, Diffie-Hellman group and lifetime, then authenticate each other with pre-shared keys or certificates.

ParameterRecommended
EncryptionAES-256 (or AES-128)
Hash/PRFSHA-256 or stronger
DH group19, 20 or 21 (ECP); 14 minimum
AuthenticationCertificates (or long random PSK)
ModeMain mode (aggressive mode exposes identity and PSK hash)
Lifetime86400 s typical

Phase 1 failures show up as no IKE SA (show crypto isakmp sa in MM_NO_STATE): usually proposal or PSK mismatch, or UDP 500/4500 blocked. IKEv2 replaces the two-phase model and is preferred for new deployments.

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 IPsec → IKE Phase 1. Documentation verification only; this is not observed lab or production Evidence.

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

Confirm action

Continue?