Use this when IKEv1 Phase 1 fails or needs configuring.
IKE Phase 1
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.
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.
peers → proposal match → DH → authentication → IKE SA
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show crypto isakmp saVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- Phase 1 authenticates peers and builds the IKE SA.
- Main mode is preferred over aggressive mode.
- Authentication uses PSK or certificates.
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
| Messages | Purpose |
|---|---|
| 1–2 | Propose and agree on encryption, hash, DH group, authentication, lifetime |
| 3–4 | DH key exchange and nonces |
| 5–6 | Encrypted 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
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.
| Parameter | Recommended |
|---|---|
| Encryption | AES-256 (or AES-128) |
| Hash/PRF | SHA-256 or stronger |
| DH group | 19, 20 or 21 (ECP); 14 minimum |
| Authentication | Certificates (or long random PSK) |
| Mode | Main mode (aggressive mode exposes identity and PSK hash) |
| Lifetime | 86400 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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%