Use this when IPsec AH is configured or considered.
Authentication Header
AH (Authentication Header, IP protocol 51) gives IPsec packets integrity and origin authentication but no encryption. It breaks with NAT and is rarely used; ESP is preferred.
1. AH authenticates entire packet including outer IP header.
2. Fails through NAT.
3. No encryption.
4. Rarely needed.
5. Replace with ESP.
packet → AH ICV → verify
Context & applicabilityCommon mistakes · platform/version boundaries
- Tunnels using AH fail as soon as NAT is added on the path.
- Peers negotiating AH+ESP bundles that other vendors do not support.
- Captures show protocol 51 but no encryption — data is readable in transit.
Operational reference
Fast context before you go deeper.
show crypto ipsec sa | include ah|espVerification & 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 Finding AH Verify boundary
show crypto ipsec sa | include ah|esp
tcpdump -n 'ip proto 51'
Any protocol 51 traffic indicates AH in use; plan migration to ESP.
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.
- AH gives integrity and authentication, no encryption.
- It breaks with NAT.
- ESP is preferred.
tcpdump -ni <if> ah— AH traffic- Legacy configurations using AH — inventory
- NAT presence — breaks AH
ReferenceWhy it matters1 section · depth on demand
Why AH is rarely used
AH authenticates the outer IP header as well, so any change by NAT breaks the check. It also gives no confidentiality. ESP with an integrity algorithm (or AES-GCM) covers the same need and works through NAT-T, so new designs use ESP only.
ReferenceHow it works1 section · depth on demand
In depth
AH (Authentication Header, IP protocol 51) provides integrity and authentication of IP packets, including parts of the outer IP header, but no encryption. Because it authenticates the IP addresses, any NAT along the path breaks it.
In practice AH is rarely used: ESP with an authentication algorithm (or AEAD such as AES-GCM) provides integrity and confidentiality and works through NAT with NAT-T. AH may appear in niche cases (some IPv6 routing protocol authentication, specific compliance designs). Prefer ESP unless a requirement specifically demands AH.
ReferenceImportant terms & boundaries1 section · depth on demand
AH vs ESP
| AH | ESP | |
|---|---|---|
| IP protocol | 51 | 50 |
| Confidentiality | No | Yes |
| Integrity | Yes, incl. outer IP header | Yes, payload only |
| Works through NAT | No | Yes (NAT-T) |
Use ESP with integrity; AH has no practical advantage today.
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 → Authentication Header. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%