Course contentsShow
← Security
Lesson 480 of 3,05211. Network Security - VPNs and TunnelingFree lesson

Internet Key Exchange (IKE) Phase 2

IKE Phase 2: negotiating IPsec SAs, traffic selectors, and establishing data encryption parameters.

Internet Key Exchange (IKE) Phase 2

What you'll learn: How IKE Phase 2 negotiates the actual encryption parameters that protect your VPN data traffic.


While IKE Phase 1 established a secure control channel between VPN endpoints, Phase 2 is where the real work happens — negotiating the IPsec Security Associations (SAs) that will encrypt and authenticate your actual data.

Why Phase 2 Matters

Think of Phase 1 as two diplomats establishing a secure phone line. Phase 2 is when they use that phone line to negotiate the specific terms of a treaty — in this case, exactly how your network traffic will be protected.

What Phase 2 Negotiates

IPsec Security Associations (SAs): Phase 2 creates separate SAs for each direction of traffic. These define:

  • Encryption algorithms (AES, 3DES)
  • Authentication algorithms (HMAC-SHA256, etc.)
  • Lifetime of the keys

Traffic Selectors: These specify exactly what traffic should be encrypted:

  • Source IP addresses/subnets
  • Destination IP addresses/subnets
  • Protocol types (TCP, UDP, ICMP)
  • Port numbers

For example, a traffic selector might say: "Encrypt all traffic from subnet 10.1.0.0/24 going to subnet 192.168.50.0/24."

Data Encryption Parameters: Unlike Phase 1 (which used IKE), Phase 2 establishes ESP or AH protocols to actually protect the data flowing through the tunnel.

The Process

Phase 2 uses the secure channel from Phase 1 to exchange proposals. Both sides must agree on compatible parameters, or the negotiation fails. Once agreed, fresh keys are generated specifically for encrypting data traffic — these keys are completely separate from the Phase 1 keys.

Key Takeaway: IKE Phase 2 negotiates the IPsec SAs that actually encrypt your data, defining exactly what traffic gets protected and how, using the secure control channel established in Phase 1.