Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IPsec Profile

Direct answer

An IPsec profile (crypto ipsec profile <name>) groups the transform set and IKEv2 profile and is applied to a tunnel interface with tunnel protection ipsec profile <name>.

When to use this

Use it when protecting a GRE or VTI tunnel with IPsec.

First 30 seconds

1. An IPsec profile binds transform sets and IKEv2 profile for tunnel protection.

2. Used with VTI/DMVPN.

3. Must match peers.

4. Set PFS deliberately.

5. Apply with tunnel protection ipsec profile.

Operational verification

transform set + IKEv2 profile → IPsec profile → tunnel protection

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
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.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandcrypto ipsec transform-set <name> esp-aes esp-sha-hmac
Scope / prerequisiteUse it when protecting a GRE or VTI tunnel with IPsec.
Reference · 3
What next?3 suggested next steps
Catalog command links3
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

1 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 and output interpretation Verify boundary

Verify the tunnel/interface references the expected IPsec profile, then inspect IKE and IPsec SAs plus packet counters for traffic using that interface. The presence of a profile in configuration shows intended association, not that negotiation succeeded. Compare negotiated algorithms and peer identity with the profile policy and ensure actual routes resolve through the protected interface.

Command lookup Jump straight to Cisco syntax
Key points
  • IKE SA and IPsec child SA are separate evidence boundaries
  • Proxy identities/selectors must agree at both peers
  • ESP commonly carries protected data; NAT traversal can encapsulate it in UDP 4500
  • Encaps and decaps counters must be interpreted with generated interesting traffic and the return path.
Key checks
  • show crypto ipsec profile — profile contents
  • show running-config | section crypto ipsec profile — config
ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to protect routed traffic across an untrusted underlay with policy-based crypto maps or route-based tunnel interfaces.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

The IPsec profile: binding IPsec settings to a tunnel interface

On Cisco IOS XE, an IPsec profile (crypto ipsec profile <name>) collects the IPsec parameters for tunnel interfaces: the transform set and, with IKEv2, the IKEv2 profile. Cisco's VTI guide applies it with tunnel protection ipsec profile <name> on a static VTI, a dynamic VTI template, or a GRE tunnel.

R1(config)# crypto ipsec transform-set TS-GCM esp-gcm 256
R1(cfg-crypto-trans)# mode tunnel
R1(config)# crypto ipsec profile VTI-PROF
R1(ipsec-profile)# set transform-set TS-GCM
R1(ipsec-profile)# set ikev2-profile SITE-B
R1(ipsec-profile)# set pfs group20
R1(ipsec-profile)# set security-association lifetime seconds 3600
R1(config)# interface Tunnel100
R1(config-if)# tunnel protection ipsec profile VTI-PROF
R1# show crypto ipsec profile VTI-PROF
IPSEC profile VTI-PROF
        IKEv2 Profile: SITE-B
        Security association lifetime: 4608000 kilobytes/3600 seconds
        Responder-Only (Y/N): N
        PFS (Y/N): Y
        DH group:  group20
        Mixed-mode : Disabled
        Transform sets={
                TS-GCM:  { esp-gcm 256  } ,
        }

Profile settings

SettingEffect
set transform-setESP algorithms; the guide requires tunnel mode for VTIs
set ikev2-profileWhich IKEv2 profile (peer identity, authentication) to use
set pfs group<n>A fresh Diffie-Hellman exchange when Child SAs are rekeyed (RFC 7296 CREATE_CHILD_SA can include one)
set security-association lifetimeRekey interval in seconds or kilobytes
set mixed modeIPv4 over IPv6 or IPv6 over IPv4, per the guide

Transform set examples

Transform setNotes
esp-gcm 256AES-GCM: encryption and integrity in one algorithm
esp-aes 256 esp-sha256-hmacAES-CBC with a separate HMAC
esp-aes esp-sha-hmacThe guide's example; SHA-1 is legacy

Crypto profile versus crypto map

IPsec profileCrypto map
Applied toTunnel interfacesPhysical interfaces
Traffic selectionRoutingCrypto ACL
PeerFrom the tunnel destinationset peer in the map

Use profiles for new designs; crypto maps remain for policy-based tunnels to devices that require them.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

An IPsec profile bundles the settings that protect a tunnel interface: which transform set (encryption and integrity algorithms) to use, which IKEv2 profile authenticates the peer, and options such as Perfect Forward Secrecy and SA lifetimes. Applying the profile to a tunnel with tunnel protection turns a plain tunnel interface into an encrypted VTI or a protected GRE tunnel.

crypto ipsec transform-set TS-GCM esp-gcm 256
 mode tunnel
crypto ipsec profile VPN-PROF
 set transform-set TS-GCM
 set ikev2-profile IKEV2-PROF
 set pfs group20
 set security-association lifetime seconds 3600
interface Tunnel100
 tunnel protection ipsec profile VPN-PROF
show crypto ipsec profile VPN-PROF
show crypto ipsec sa interface Tunnel100

Use mode transport for GRE over IPsec (GRE already provides the outer header) and mode tunnel for native VTIs. Both peers must agree on transform set and PFS group; a mismatch shows up as IKE succeeding but no IPsec SA being created.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

State model and protocol mechanics

An IPsec profile packages reusable protection parameters for route-based or tunnel-interface designs. It references the transform/proposal and related security behavior applied to a tunnel, allowing the routing interface to remain the logical forwarding object while IPsec supplies confidentiality/integrity underneath.

Limits and common misconceptions

An IPsec profile is not itself a tunnel and it does not create routing. A valid profile can exist with no active SA when no peer is reachable or no matching traffic is present. Changing a shared profile can affect multiple tunnels, so impact must be understood before edits. Keep reusable crypto policy, peer/session state and per-tunnel forwarding evidence separate.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Bind the profile only to the intended tunnel/VTI and keep its cryptographic policy aligned with the remote peer. Treat the profile as one part of the design: IKE authentication, peer reachability, tunnel source/destination and routing still require independent correctness. Reuse can improve consistency, but a shared profile should not hide peer-specific identity or policy differences that matter operationally.

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 docProtocol standard + deployed implementation RFC 4301

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → IPsec → IPsec Profile. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301.html · confidence 94%
Embedded reference data

Quick lookup tables

IPsec Profile · operational reference

Compact state and interpretation boundaries for fast lookup.

State / evidenceInterpretation
ProfileReusable protection policy
Tunnel bindingWhere policy is applied
Negotiated SARuntime agreement
Packet countersActual encrypted traffic
Confirmation

Confirm action

Continue?