IKEv1 or IKEv2: which key exchange applies to your IPsec deployment
IKEv1 (RFC 2409) and IKEv2 (RFC 4306, with the current specification in RFC 7296) are two IPsec key exchange versions that do not interoperate, although both can run over the same UDP port. The distinction that matters for post-quantum planning is that IKEv2 has the exchanges the IETF has tied to adding post-quantum methods: the IKE_INTERMEDIATE exchange in RFC 9242, the additional key exchanges in RFC 9370, and the draft that assigns ML-KEM key exchange method IDs. The sources listed on this page do not describe any post-quantum extension for IKEv1.
Network and security engineers meet this question when they read VPN configuration files, when a vendor document states which IKE version a product supports, and when a tender or security questionnaire asks which key exchange the gateway uses. Vendor-risk reviewers meet it when they need to know whether a product can take a post-quantum key exchange without a protocol change. Before accepting a vendor statement, confirm the IKE version in the running configuration, not only in the marketing material, and ask whether the vendor's IKEv2 implementation supports the RFC 9370 mechanism and the ML-KEM method IDs for the exact software version deployed.
The draft that assigns ML-KEM method IDs (draft-ietf-ipsecme-ikev2-mlkem) is still a draft on the sources listed here, so an implementation is not a standard until it is published as an RFC. Confirm the status of the draft and the vendor's stated support for it before planning around it. For the parameter sizes and the standard behind the ML-KEM names, the reader should check NIST FIPS 203 directly.
IKEv1 and IKEv2 side by side on the attributes the sources give
This table sets IKEv1 and IKEv2 against the attributes the cited RFCs and drafts give, row by row, so you can see where each version defines its exchanges and where post-quantum extensions attach. Read each row across both columns and check the citation in the cell before relying on it. The main takeaway is that IKEv2 has a defined path for additional key exchanges, while the sources listed here do not describe the same path for IKEv1.
| Attribute | IKEv1 | IKEv2 |
|---|---|---|
| Defining document and date | RFC 2409, November 1998, Standards Track (RFC 2409) | RFC 7296, October 2014, Standards Track, STD 79, obsoletes RFC 5996 (RFC 7296) |
| Status | Defined by RFC 2409, which the sources list as Standards Track (RFC 2409) | Current specification is RFC 4306's successor RFC 7296; RFC 4306 obsoleted RFC 2407, RFC 2408 and RFC 2409 (RFC 4306, RFC 7296) |
| Phase 1 exchange structure | Main Mode and Aggressive Mode (RFC 2409) | Initial exchange of four messages: IKE_SA_INIT and IKE_AUTH, which map to IKEv1 phase 1 (RFC 7296) |
| Phase 2 exchange structure | Quick Mode; perfect forward secrecy only if the optional KE payload is included (RFC 2409) | First Child SA is set up within IKE_AUTH (RFC 7296) |
| Diffie-Hellman group negotiation | In Aggressive Mode the group cannot be negotiated and attribute negotiation is more limited (RFC 2409) | Initiator must guess the group the responder picks; a wrong guess returns INVALID_KE_PAYLOAD and a retry (RFC 7296) |
| Interoperability | Does not interoperate with IKEv2, though both can run over the same UDP port (RFC 4306) | Does not interoperate with IKEv1 (RFC 4306) |
| Post-quantum extensions | Sources listed here do not describe a post-quantum extension for IKEv1 | RFC 9242 adds IKE_INTERMEDIATE; RFC 9370 allows up to seven additional key exchanges; draft-ietf-ipsecme-ikev2-mlkem-09 assigns ML-KEM method IDs (RFC 9242, RFC 9370, draft-ietf-ipsecme-ikev2-mlkem-09) |
What IKEv1 and IKEv2 are and where practitioners meet them
IKEv1 is the first version of the Internet Key Exchange protocol, specified in RFC 2409 (November 1998, Standards Track). It negotiates the security associations used by IPsec in two phases. Phase 1 establishes a protected channel between the peers and can run in Main Mode or Aggressive Mode. Phase 2 negotiates the IPsec security associations themselves in Quick Mode. Practitioners most often meet IKEv1 in older VPN gateways, in legacy configurations that have not been moved forward, and in vendor documents that still describe Phase 1 and Phase 2 settings.
- Main Mode and Aggressive Mode: Main Mode is the protected form of phase 1. Aggressive Mode completes phase 1 in fewer messages, and RFC 2409 notes that the Diffie-Hellman group cannot be negotiated in it and that attribute negotiation is more limited.
- Quick Mode: Quick Mode is the phase 2 exchange. RFC 2409 states that it gives perfect forward secrecy only if the optional KE payload is included.
- Predefined Oakley groups: RFC 2409 defines four predefined groups with IDs 1 to 4. Group 1 is a 768-bit MODP group, group 2 is a 1024-bit MODP group, and groups 3 and 4 use EC2N curves.
- Obsoleted status: RFC 4306 obsoletes RFC 2409, so new deployments are expected to use IKEv2 instead.
- Post-quantum work: The IETF documents listed here describe post-quantum additions to IKEv2 and do not describe IKEv1 additions.
Before relying on an IKEv1 configuration in a post-quantum review, confirm with the gateway vendor which phase 1 mode, group and Quick Mode options are enabled, because the group values depend on the configuration in use.
IKEv2 is the second version of the Internet Key Exchange protocol. It was first specified in RFC 4306 (December 2005, Standards Track), which obsoletes RFC 2407, RFC 2408 and RFC 2409 and states that IKEv2 does not interoperate with IKEv1 even though both can run over the same UDP port. The current specification is RFC 7296 (October 2014, Standards Track, STD 79), which obsoletes RFC 5996. Practitioners meet IKEv2 in current VPN gateways, in IPsec configurations on modern platforms and in post-quantum work on the IPsec key exchange.
- IKE_SA_INIT: The first exchange negotiates algorithms, exchanges nonces and performs the Diffie-Hellman exchange. RFC 7296 maps this exchange to IKEv1 phase 1.
- IKE_AUTH: The second exchange authenticates the parties and sets up the first Child SA. The initial exchange has four messages in total.
- Group guessing: The initiator must guess the Diffie-Hellman group (transform type 4) that the responder will pick. A wrong guess produces an INVALID_KE_PAYLOAD notification and a retry.
- Additional key exchanges: RFC 9242 adds the IKE_INTERMEDIATE exchange between IKE_SA_INIT and IKE_AUTH, and RFC 9370 allows up to seven additional key exchanges (ADDKE1 to ADDKE7, Transform Types 6 to 12).
- ML-KEM in IKEv2: draft-ietf-ipsecme-ikev2-mlkem-09 (dated 5 July 2026, in the RFC Editor queue) assigns Key Exchange Method IDs 35, 36 and 37 to ML-KEM-512, ML-KEM-768 and ML-KEM-1024.
Confirm with each vendor which RFC 7296 extensions and draft versions its IKEv2 implementation supports before assuming post-quantum key exchange methods are available.
The differences that change how systems are configured
IKEv1 and IKEv2 handle the Diffie-Hellman group, the optional key exchange payload and multiple key exchanges in different ways. Each card below is a configuration consequence that engineers should check before adding a post-quantum exchange to an IPsec deployment.
Aggressive Mode limits group choice
In IKEv1 Aggressive Mode the Diffie-Hellman group cannot be negotiated, and attribute negotiation is more limited than in Main Mode. Both peers must agree on the group in advance, so a configuration that expects a new group in this mode can fail to set up. Check which phase 1 mode each peer uses before planning any change to the key exchange. The sources listed here do not say how individual vendor implementations handle this, so confirm it against each product's documentation.
RFC 2409 textIKEv2 initiators guess the group
In IKEv2 the initiator must guess the Diffie-Hellman group the responder will select, since the exchange is set up before the responder replies. A wrong guess returns an INVALID_KE_PAYLOAD notification, and the initiator must retry with the group the responder accepts. Configurations that offer a group list in a particular order should be tested for the extra round trip this adds. Confirm the retry behavior in the implementation you run.
RFC 7296 textQuick Mode needs the optional payload
In IKEv1 Quick Mode gives perfect forward secrecy only when the optional KE payload is included. A configuration that omits this payload leaves phase 2 without PFS, even though the tunnel still comes up. Review the Quick Mode settings on each peer, since a missing setting is not always reported as an error. The sources listed here do not say how each vendor exposes this option, so check the product's own configuration reference.
RFC 2409 textIKEv1 and IKEv2 do not interoperate
RFC 4306 states that IKEv2 does not interoperate with IKEv1, even though both can run over the same UDP port. A gateway that supports only one version cannot set up a tunnel with a peer that supports only the other. Inventory the IKE version on every gateway and peer before a migration, so that no tunnel depends on a version the other side does not run. Confirm the version support of each product before scheduling a cutover.
RFC 4306 textRFC 9370 covers IKEv2 only
RFC 9370 allows up to seven additional key exchanges in IKEv2, named ADDKE1 through ADDKE7, and it does not mention IKEv1. An IKEv1 deployment therefore has no standard way, under this document, to add further key exchanges to its phase 1 negotiation. Teams that plan layered key exchange on IPsec should treat IKEv2 as the target version for this work. Confirm with each vendor whether any IKEv1 extension is available.
RFC 9370 textHow to work out which version applies to your tunnels
This sequence establishes which IKE version each tunnel runs, whether any peer still uses IKEv1 Aggressive Mode, and whether a post-quantum key exchange is requested and supported in the version deployed. It ends with a per-gateway record that a security lead or vendor-risk reviewer can check and act on.
Check the IKE version in running configuration
For each gateway, the engineer reads the vendor documentation for the software release in use, then checks the running configuration to see which IKE version each tunnel negotiates. The configuration alone can be incomplete, so the output should be compared with the documented defaults for that release. This step is complete when every tunnel has a recorded IKE version taken from the running configuration rather than from memory or an old design document.
Identify any peer still using Aggressive Mode
The engineer checks each IKEv1 tunnel for Aggressive Mode in phase 1, since RFC 2409 says the Diffie-Hellman group cannot be negotiated in that mode and attribute negotiation is more limited. Each peer that uses Aggressive Mode is listed with its gateway, its counterpart and the owner of that counterpart. This step is complete when every IKEv1 tunnel is marked as using Main Mode or Aggressive Mode, and the list of Aggressive Mode peers is confirmed with the people who control the far end.
Check contracts and requirements for IKEv2 terms
The engineer reviews customer requirements, tender responses, internal security standards and procurement documents for references to IKEv2 or to the post-quantum extensions. A requirement that names a version or extension changes which tunnels need work, so each reference is recorded with its source document and the tunnels it affects. The sources listed here do not set a deadline for any of this, so the reader should take any dates from the requirement itself. This step is complete when each requirement is linked to the tunnels it covers, or marked as not applicable.
Record which gateways run which versions
The engineer consolidates the results from the first three steps into an inventory that lists each gateway, its software release, the IKE versions it accepts and the peers it connects to. Gaps are visible when a gateway appears in one list but not another, so the inventory should be checked against network diagrams and change records. This step is complete when the inventory covers every gateway that terminates an IPsec tunnel, and each entry has an owner who has confirmed it.
Confirm ML-KEM support in the deployed version
The engineer asks the vendor in writing whether the release in use supports the ML-KEM methods defined in draft-ietf-ipsecme-ikev2-mlkem-09, which assigns Key Exchange Method IDs 35, 36 and 37 for ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The draft is in the RFC Editor queue and builds on RFC 9370, so the answer should name the exact release and say whether the methods are present, not planned. Vendor documentation may not state this, so the written answer is the record. This step is complete when the vendor reply for each deployed release is stored with the inventory and dated.
Where IKEv1 and IKEv2 show up in products, documents and reviews
Reviewers will meet IKEv1 and IKEv2 in three places: the IPsec gateways and clients an organization runs, the vendor configuration documents that describe them, and the tenders and audit requests that ask about them. The sources for this page establish the versions themselves. RFC 2409 defines IKEv1, with Main Mode and Aggressive Mode for phase 1 and Quick Mode for phase 2. RFC 4306 defines IKEv2, and RFC 7296 is the current IKEv2 specification. RFC 4306 also states that IKEv2 does not interoperate with IKEv1, even though both can run over the same UDP port. A configuration that names one version does not tell a reviewer how the other version is handled, so the version named in each document should be recorded explicitly.
The sources listed on this page do not say which VPN gateways, IPsec implementations or client products support IKEv1, IKEv2 or both, and they do not list any vendor's configuration options. Product support should therefore be confirmed with each vendor, using the exact product version in use, and the answer should be recorded alongside the vendor's configuration documentation. When a tender or audit request asks about key exchange, reviewers should look for the IKE version, the exchange used for any post-quantum addition, and the RFC or draft the product implements. Where a vendor cites RFC 9242, RFC 9370 or the ML-KEM draft in a document, the sources here confirm only what those documents say, not that the product implements them.
Two points in the sources matter for reading vendor documents. RFC 9242 adds the IKE_INTERMEDIATE exchange to IKEv2 and names quantum-computer-resistant methods with large public keys as a main example. RFC 9370 updates RFC 7296 to allow additional key exchanges and does not mention IKEv1. A document that describes post-quantum IPsec behavior and cites only IKEv2 RFCs is therefore describing IKEv2, and a vendor should be asked directly whether any IKEv1 configuration is covered. The draft draft-ietf-ipsecme-ikev2-mlkem-09 is still in the RFC Editor queue, so a vendor claim that cites it should be checked against the draft version the vendor says it implements.
How the IKEv2 initial exchange and the post-quantum extensions fit together
The diagram starts with IKE_SA_INIT, which negotiates algorithms, exchanges nonces and performs the first Diffie-Hellman exchange. RFC 9242's IKE_INTERMEDIATE runs next, before IKE_AUTH, and RFC 9370's ADDKE exchanges can add up to seven further key exchanges, one per transform type from 6 to 12. The ML-KEM method IDs (35, 36, 37) in draft-ietf-ipsecme-ikev2-mlkem-09 identify which post-quantum method runs in those slots. The diagram shows document structure only. It is not a deployment recommendation, so confirm the exact exchange order and method support against the versions your peers run.
Document structure of the IKEv2 exchanges, not a deployment recommendation.
Whether IKEv1 and IKEv2 are used together or one replaces the other
IKEv2 replaces IKEv1 rather than running alongside it as a hybrid. RFC 4306 obsoletes RFC 2409, along with RFC 2407 and RFC 2408, and states that IKEv2 does not interoperate with IKEv1, even though both can run over the same UDP port (UDP 500). Sharing a port does not mean sharing a handshake: a gateway that listens for both versions still needs each peer to agree on which one the tunnel uses. The sources listed on this page do not describe a hybrid of the two versions, so no combined mode should be assumed when planning a change.
For an operator with a gateway that terminates IKEv1 tunnels, the practical consequence is that moving a tunnel from IKEv1 to IKEv2 is a coordinated change with the peer. Both ends must be reconfigured to the same version within the same maintenance window, and the parameters that carry post-quantum material (the key exchange methods and any additional key exchanges) are defined for IKEv2 in the sources, not for IKEv1. Confirm the IKEv2 configuration and the peer's support for it before scheduling the cutover, and check the vendor documentation for the exact version and edition in use.
Post-quantum work on IPsec therefore targets IKEv2. RFC 9242 and RFC 9370 both extend RFC 7296 and do not mention IKEv1, and the ML-KEM draft (draft-ietf-ipsecme-ikev2-mlkem) builds on RFC 9370. Teams still running IKEv1 should treat the move to IKEv2 as the prerequisite step and confirm with each vendor whether IKEv1 is still supported on their platform.
Common mix-ups between IKEv1, IKEv2 and their extensions
Are RFC 2407, RFC 2408 and RFC 2409 the same as IKEv2?
No. RFC 2409 defines IKEv1, with Main Mode and Aggressive Mode for phase 1 and Quick Mode for phase 2. RFC 2407 and RFC 2408 are the earlier IPsec DOI and ISAKMP documents that IKEv1 relied on. RFC 4306, published in December 2005, specifies IKEv2 and obsoletes all three. The current IKEv2 specification is RFC 7296, which obsoletes RFC 5996. The sources state that IKEv2 does not interoperate with IKEv1, even though both can run over the same UDP port. When a vendor says it supports "IKE" or "ISAKMP" without a version, ask which RFCs its implementation follows and whether it negotiates IKEv1, IKEv2 or both.
Does RFC 9370 add extra key exchanges to IKEv1 as well?
No. RFC 9370, published in May 2023 as a Standards Track document, updates RFC 7296 and does not mention IKEv1. It lets an IKEv2 exchange carry up to seven additional key exchanges, named ADDKE1 to ADDKE7 and assigned Transform Types 6 to 12. Any IKEv1 deployment would need its own specification for multiple key exchanges, and the sources listed here do not describe one. If a vendor claims post-quantum key exchange on an IKEv1 tunnel, ask which document defines the mechanism and whether it is a published RFC or a vendor extension.
Is draft-ietf-ipsecme-ikev2-mlkem a final RFC for ML-KEM in IKEv2?
No. draft-ietf-ipsecme-ikev2-mlkem-09, dated 5 July 2026, is a Standards Track Internet-Draft that sits in the RFC Editor queue. It assigns IKEv2 Key Exchange Method IDs 35, 36 and 37 to ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and it builds on RFC 9370. A draft in the queue can still change before publication, and it does not yet carry an RFC number. Engineers should confirm the final RFC number and the method IDs in the published document before they configure a peer. Vendor material that cites the draft as a standard should be read as referring to a work in progress.
Are ML-KEM-512, ML-KEM-768 and ML-KEM-1024 interchangeable in IPsec?
No. NIST FIPS 203, published as a final standard on 13 August 2024, names three parameter sets: ML-KEM-512, ML-KEM-768 and ML-KEM-1024. They differ in key and ciphertext sizes, so they are not drop-in replacements for one another in a negotiated exchange. The IETF draft draft-ietf-tls-mlkem-11 gives sizes in bytes. ML-KEM-512 has an 800-byte encapsulation key and a 768-byte ciphertext. ML-KEM-768 has 1184 and 1088. ML-KEM-1024 has 1568 and 1568. All three produce a 32-byte shared secret. Check which set a peer and its IKEv2 method ID refer to, because mismatched choices will fail negotiation. The sources do not state which set a given IPsec product implements.
Does a hybrid TLS group in RFC 10024 tell me what IKEv2 supports?
No. RFC 10024, published in August 2026 on the Standards Track, defines hybrid key agreement groups for TLS 1.3 that combine ML-KEM with ECDHE. Its code points, such as X25519MLKEM768 at 4588, apply only to TLS. IKEv2 uses its own method IDs and its own negotiation, and the two documents do not share code points. A product that lists X25519MLKEM768 may support it in TLS while having no IKEv2 support at all. Ask vendors to state the IKEv2 method IDs they implement, not just the TLS group names.
Do vendor claims about IKEv1 or IKEv2 mean the RFCs are implemented as written?
Not necessarily. A vendor claim such as "IKEv2 with post-quantum support" describes the product, not the standard, and the claim may rest on a draft, a pre-standard implementation or a proprietary extension. The sources here do not show that any named product implements any particular draft or RFC. Ask for the exact RFC numbers and draft versions the implementation follows, the version and build tested, and whether the post-quantum method is negotiated under a published method ID. Compare the answer with the document itself, and treat anything not traceable to a published RFC or a named draft version as unverified.
Why does IKEv1 Aggressive Mode matter when comparing it with IKEv2?
Aggressive Mode is a phase 1 option in IKEv1 that carries fewer messages, and RFC 2409 states that it does not let the Diffie-Hellman group be negotiated and limits attribute negotiation. IKEv2 has no Aggressive Mode. It uses a four-message initial exchange, with IKE_SA_INIT covering algorithm negotiation and the Diffie-Hellman exchange. In IKEv2 the initiator must guess the group the responder will pick, and a wrong guess draws an INVALID_KE_PAYLOAD notification and a retry. For a team reviewing an existing IKEv1 deployment, check whether Aggressive Mode is enabled, because it limits how key exchange parameters can be negotiated.
Can I confirm IKEv2 support for post-quantum exchanges by checking the RFC list alone?
Not on its own. A reader can confirm the standards side by checking the RFCs and drafts: RFC 7296 for IKEv2 itself, RFC 9242 for the IKE_INTERMEDIATE exchange, RFC 9370 for additional key exchanges, and draft-ietf-ipsecme-ikev2-mlkem for ML-KEM method IDs, along with its current status. Support in a product is a separate question, and it has to be answered with that product's documentation and a test against a named version. RFC 9242 names quantum-computer-resistant methods with large public keys as a main example for IKE_INTERMEDIATE, which is one reason to check the intermediate exchange in any test plan.
How DeployOpen works on this
DeployOpen plans IPsec key exchange work around the IKE version your gateways run, since IKEv1 and IKEv2 do not interoperate and carry new key exchange methods differently. Engagements start from a written scope and end with documented configuration and handover for your own team.
How we scope
- We confirm which IKE version each VPN gateway, peer and tunnel runs, including any IKEv1 Aggressive Mode or Quick Mode without a KE payload.
- We record the Diffie-Hellman groups and transform sets each peer accepts, since IKEv2 initiators must guess the responder's group.
- We agree the scope, deliverables and timeline in writing before work starts, with engagements typically fixed-scope.
How we build
- We configure IKEv2 peers to use the IKE_INTERMEDIATE exchange and additional key exchanges where the platform supports them, after checking vendor support.
- We test that tunnels establish, rekey and fall back correctly when a peer rejects a proposed key exchange method.
- We check that larger key exchange payloads pass through firewalls, NAT devices and MTU limits without fragmentation failures.
How we hand over
- We document each gateway's IKE version, proposal order, key exchange groups and fallback behavior in a configuration record.
- We provide test evidence showing which tunnels negotiate which methods, so your security and network teams can review it.
- We walk your engineers through the configuration and runbook so they can operate and change the setup after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for gateways that change over time.
- We can retest tunnels after a vendor firmware update or a change to the IKE version or proposal list.
- Confirm with your gateway vendor which IKEv2 and post-quantum key exchange features your specific version supports before scoping.
Sources and further reading
- RFC 2409: The Internet Key Exchange (IKE) ↗
- RFC 7296: Internet Key Exchange Protocol Version 2 (IKEv2) ↗
- RFC 9370: Multiple Key Exchanges in the Internet Key Exchange Protocol Version 2 (IKEv2) ↗
- draft-ietf-ipsecme-ikev2-mlkem: ML-KEM key exchange methods for IKEv2 ↗
- NIST FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard ↗
- RFC 9242: Intermediate Exchange in the Internet Key Exchange Protocol Version 2 (IKEv2) ↗

