Use it when protecting a GRE or VTI tunnel with IPsec.
IPsec Profile
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>.
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.
transform set + IKEv2 profile → IPsec profile → tunnel protection
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
crypto ipsec transform-set <name> esp-aes esp-sha-hmacPrimary Commands
Configuration and operational commands for this Topic.
crypto ipsec transform-set <name> esp-aes esp-sha-hmacReferenceDefine an IPsec transform set; prefer AES-GCM or AES with SHA-256 for new designs.
Use when: Use this command at the IPsec / Site-to-Site VPN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. IKE established does not prove that the required traffic matches an IPsec SA or decrypts successfully.
Cisco IOS / IOS XE · mixedcrypto ipsec profile <name>ReferenceCreate an IPsec profile for route-based VPNs (VTI or GRE over IPsec).
Use when: Use this command at the IPsec / Site-to-Site VPN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. IKE established does not prove that the required traffic matches an IPsec SA or decrypts successfully.
Cisco IOS / IOS XE · mixedset transform-set <name>ReferenceReference a transform set in an IPsec profile.
Use when: Use this command at the IPsec / Site-to-Site VPN boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. IKE established does not prove that the required traffic matches an IPsec SA or decrypts successfully.
Cisco IOS / IOS XE · mixedVerification & 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 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.
- 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.
show crypto ipsec profile— profile contentsshow 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
| Setting | Effect |
|---|---|
set transform-set | ESP algorithms; the guide requires tunnel mode for VTIs |
set ikev2-profile | Which 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 lifetime | Rekey interval in seconds or kilobytes |
set mixed mode | IPv4 over IPv6 or IPv6 over IPv4, per the guide |
Transform set examples
| Transform set | Notes |
|---|---|
esp-gcm 256 | AES-GCM: encryption and integrity in one algorithm |
esp-aes 256 esp-sha256-hmac | AES-CBC with a separate HMAC |
esp-aes esp-sha-hmac | The guide's example; SHA-1 is legacy |
Crypto profile versus crypto map
| IPsec profile | Crypto map | |
|---|---|---|
| Applied to | Tunnel interfaces | Physical interfaces |
| Traffic selection | Routing | Crypto ACL |
| Peer | From the tunnel destination | set 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.
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.
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
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 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%Quick lookup tables
IPsec Profile · operational reference
Compact state and interpretation boundaries for fast lookup.
| State / evidence | Interpretation |
|---|---|
| Profile | Reusable protection policy |
| Tunnel binding | Where policy is applied |
| Negotiated SA | Runtime agreement |
| Packet counters | Actual encrypted traffic |