Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

MACsec Integrity

Direct answer

MACsec integrity protection adds an integrity check value to every frame so the receiver can detect any frame that was modified or injected on the link.

When to use this

Use it to understand how MACsec detects tampered or replayed frames.

First 30 seconds

1. MACsec integrity (ICV) detects tampering.

2. Invalid frames dropped.

3. Replay protection.

4. Monitor ICV errors.

5. Errors may indicate key or hardware issues.

Operational verification

frame → ICV check → accept/drop

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Key commandshow macsec summary
Scope / prerequisiteUse it to understand how MACsec detects tampered or replayed frames.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

3 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 Checks Verify boundary
show macsec summary
show macsec interface Te1/1/1
show mka sessions detail
show macsec statistics interface Te1/1/1

Rising InPktsNotValid or InPktsLate counters show integrity or replay failures; compare packet numbers and clocks on both sides.

Step 2 Verification & troubleshooting Narrow the fault

1. Verify link and peer identity/key policy.

2. Inspect MKA session and live peers.

3. Inspect secure channel/association state.

4. Compare encrypted, validated and dropped counters.

5. Test rekey, failover, MTU and application traffic.

Step 3 Common mistakes Narrow the fault
  • Assuming MACsec encrypts end to end — it protects one link only.
  • Confidentiality offset settings not matching.
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Each hop/link is protected separately; MACsec is not end-to-end across ordinary transit devices
  • MKA establishes secure channels and associations
  • Cipher suite, policy, key/identity and replay settings must agree
  • Overhead affects effective frame size and platform capacity.
Key checks
  • show macsec statistics interface <interface> — ICV failures, validated frames
ReferenceWhat it is1 section · depth on demand

What it protects

Each frame gets a SecTAG with a packet number and a 16-byte ICV (integrity check value). Frames with a wrong ICV or replayed packet numbers are dropped and counted (show macsec statistics interface <if>). Integrity protection can be used without encryption (confidentiality offset or integrity-only mode) when only tampering, not confidentiality, matters.

ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to protect frames on a supported point-to-point link while keeping routing and higher-layer policy independent.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

MACsec integrity: every frame carries a cryptographic check value

MACsec (IEEE 802.1AE) protects frames between two directly connected MACsec devices. The Catalyst 9300 guide states that each frame carries an integrity check value (ICV), and frames with a mismatched ICV are dropped. Encryption is optional on top of integrity. The confidentiality offset (0, 30 or 50 bytes) decides how much of the frame stays unencrypted but integrity-protected.

Replay protection

The guide describes a replay window that defaults to 0, which enforces strict frame ordering. With Extended Packet Numbering (XPN) the window can be up to 2³⁰ − 1. A larger window tolerates reordering (for example on links through providers), but accepts older frames.

C9300(config)# key chain MKA-KEYS macsec
C9300(config-keychain-macsec)# key 01
C9300(config-keychain-macsec-key)# cryptographic-algorithm aes-256-cmac
C9300(config-keychain-macsec-key)# key-string 7 <64-hex-chars>
C9300(config)# mka policy MKA-256
C9300(config-mka-policy)# macsec-cipher-suite gcm-aes-256
C9300(config-mka-policy)# confidentiality-offset 0
C9300(config)# interface Te1/1/1
C9300(config-if)# macsec network-link
C9300(config-if)# mka policy MKA-256
C9300(config-if)# mka pre-shared-key key-chain MKA-KEYS
C9300(config-if)# macsec replay-protection window-size 0
C9300# show macsec interface Te1/1/1
C9300# show macsec statistics interface Te1/1/1

Counters that reveal integrity problems

Counter (in show macsec statistics)Meaning
Validated / OK framesFrames that passed the ICV check
Bad tag / Invalid / Not validICV failure: corruption, key mismatch, or tampering
Late / DelayedReplay protection dropped out-of-window frames
Unknown SCI / No SANo matching secure channel or association

Ciphers (documented)

GCM-AES-128 is the default, and GCM-AES-256 is also supported. The XPN variants (GCM-AES-XPN-128/256) need a Network Advantage licence and work only on switch-to-switch ports.

MACsec protects each link hop by hop. Frames are decrypted and re-encrypted in every MACsec switch. It doesn't replace end-to-end encryption such as TLS or IPsec.

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

MACsec (IEEE 802.1AE) adds an integrity check value (ICV, GCM-AES) to every frame between two directly connected devices, so injected or modified frames are detected and dropped — even when encryption is not used (integrity-only mode).

show macsec summary
show macsec interface Te1/1/1
show mka sessions interface Te1/1/1 detail

Keys are negotiated by MKA (MACsec Key Agreement, 802.1X-2010) from a pre-shared CAK or via 802.1X/EAP.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Security → MACsec → Integrity. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?