Use it to protect frames on a supported point-to-point link while keeping routing and higher-layer policy independent.
MACsec
MACsec protects Ethernet links with Layer-2 confidentiality, integrity and origin authenticity, commonly using 802.1AE with MKA key agreement.
1. MACsec (802.1AE) encrypts Ethernet hop by hop.
2. MKA negotiates keys (PSK or 802.1X).
3. Used on switch-to-switch and WAN Ethernet links.
4. Hardware support needed.
5. Adds overhead (32 bytes).
MKA key agreement → SAK → encrypted frames
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show macsec interfaceShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & 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
Inspect peer/key-agreement status, secure-channel associations and encrypted/protected packet counters at both ends. Confirm replay/integrity errors and packet-number/key changes are stable. Then verify VLAN/STP/routing/application layers independently. Increasing secured counters show protected frame processing on that link, not that every alternate path uses MACsec. Verify peer/key-agreement state, secure-channel/session state and protected versus unprotected packet counters on both ends. Then confirm ordinary Ethernet forwarding and upper-layer reachability separately. Increasing encrypted/protected counters are evidence that frames use the secure association; they do not show every traffic class or alternate link is protected. Errors, replay/integrity failures and drops need timestamped correlation with peer state and key changes rather than interpretation from a single cumulative counter.
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.
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.
Subtopics
Go one level deeper into this subject.
MACsec (IEEE 802.1AE) encrypts Ethernet frames hop by hop on a link, using AES-GCM with keys negotiated by MKA, so traffic on the wire cannot be read.
Subtopic MACsec IntegrityMACsec 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.
Subtopic Link ProtectionMACsec link protection secures a link between two devices (switch-switch or host-switch) against eavesdropping, tampering and replay; traffic is decrypted at each hop.
- 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.
show macsec summary— secured interfacesshow mka sessions— MKA sessions secured
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
MACsec
MACsec (IEEE 802.1AE) encrypts traffic hop by hop on Ethernet links. Cisco's MACsec troubleshooting technote for Catalyst 9000 describes it as Layer 2 encryption between two switches or routers on a LAN, providing integrity checks, encryption and replay protection, with up to 32 bytes of overhead per frame, so the MTU along the path may need to grow.
Key exchange (technote)
| Method | Detail |
|---|---|
| MKA with pre-shared key | Peers exchange EAPOL-MKA frames (EtherType 0x888E); key server elected by lowest priority, then highest SCI |
| MKA with 802.1X | Keys derived from EAP authentication (switch-to-host or switch-to-switch) |
| SAP (TrustSec) | Manual pairwise master key under cts manual |
Cipher suites (technote)
GCM-AES-128 and GCM-AES-256, plus extended packet numbering (XPN) variants for high-speed links.
SW1(config)# key chain MKA-KEYS macsec
SW1(config-keychain-macsec)# key 01
SW1(config-keychain-macsec-key)# cryptographic-algorithm aes-256-cmac
SW1(config-keychain-macsec-key)# key-string <64-hex-characters>
SW1(config-keychain-macsec-key)# lifetime local 00:00:00 Dec 1 2026 infinite
SW1(config)# mka policy MKA-256
SW1(config-mka-policy)# key-server priority 0
SW1(config-mka-policy)# macsec-cipher-suite gcm-aes-256
SW1(config)# interface TenGigabitEthernet1/1/1
SW1(config-if)# macsec network-link
SW1(config-if)# mka policy MKA-256
SW1(config-if)# mka pre-shared-key key-chain MKA-KEYS
SW1# show mka sessions
Interface Local-TxSCI Policy-Name Inherited Key-Server
Port-ID Peer-RxSCI MACsec-Peers Status CKN
Te1/1/1 a4bb.6d10.0101/0001 MKA-256 NO YES
1 a4bb.6d20.0101/0001 1 Secured 01
SW1# show macsec summary
Verification and problems (technote)
| Check | Command |
|---|---|
| Session state and CKN match | show mka sessions [detail] |
| Secure channel counters | show macsec interface <int> |
| Policy and errors | show mka policy, show mka statistics |
| Stuck in Init | Often a key padding mismatch between platforms |
Design notes (technote)
| Point | Detail |
|---|---|
| Port-channels | Configure MACsec on each member link |
| Double encryption | Not supported |
| PSK mode | Must Secure is the default; Should Secure isn't supported |
| NTP | Recommended for key lifetimes |
Use MACsec where links leave physically secure areas (between buildings, provider Ethernet) or where policy requires encryption in the LAN.
Documented example, not captured output.
Quick reference
MACsec (IEEE 802.1AE) encrypts Ethernet frames hop by hop between directly connected devices, protecting links against eavesdropping and tampering at line rate in hardware. Keys are agreed with MKA (MACsec Key Agreement) using a pre-shared key or 802.1X.
key chain MKA-KC macsec
key 01
cryptographic-algorithm aes-256-cmac
key-string <hex>
interface Te1/1/1
macsec network-link
mka pre-shared-key key-chain MKA-KC
Documented example, not captured output.
Verify with show macsec summary and show mka sessions. MACsec adds header overhead, so check MTU on links.
State model and technical mechanics
MACsec protects Ethernet traffic after peers establish compatible secure associations and keys. The data plane can encrypt/authenticate frames and use packet-number/replay protection, while a key-agreement mechanism such as MKA can establish and rotate the security associations. The protection scope is a link/peer relationship, not an arbitrary routed end-to-end path. Each redundant physical/logical link therefore has independent secure state that must be verified. MACsec provides Layer-2 frame confidentiality, integrity and origin protection on supported Ethernet links by securing traffic between MACsec peers. Key agreement/authentication and the data-plane secure channel are distinct concepts: peers must establish compatible connectivity associations/keys before protected frames can be exchanged. Protection is hop/link scoped rather than end-to-end across arbitrary routed networks, so each protected link has its own security state.
Limits and common misconceptions
MACsec is hop-by-hop Layer-2 protection, not an IPsec tunnel and not application-layer identity. A secure channel can be up while VLAN/routing is wrong, and traffic can be reachable while unprotected if fallback policy allows it. Separate key agreement, secure channel, protected counters and normal forwarding when interpreting health. MACsec protects a Layer-2 link; it does not replace IPsec for routed end-to-end/tunnel use cases and it does not provide application-layer identity. A link can show MACsec secure while VLAN, STP, routing or application service is broken. Conversely, traffic can flow unprotected if policy allows fallback, so reachability alone is not protection evidence. Separate key agreement, secure-channel state, protected counters, Ethernet forwarding and higher-layer service when interpreting results.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Choose a supported key-management/authentication design, cipher suite and policy for whether unprotected fallback is allowed. Account for MACsec frame overhead in MTU planning and align key lifecycle across both peers. Where 802.1X/MKA is used, keep identity/key-source policy separate from MACsec forwarding state. Verify every redundant path that may carry production traffic, not only the primary link. Enable MACsec only on links and peer combinations that support the required mode, cipher suite and key-management method. Keep MTU/frame-overhead considerations, key lifecycle and fail-open/fail-closed expectations explicit. If 802.1X/MKA or another key-management mechanism is used, document the identity/key source separately from the resulting secure channel. Redundant paths should be reviewed individually because one secure link does not imply that every alternate forwarding path has equivalent protection.
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 Security → MACsec. 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%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
MACsec evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show macsec interface | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | physical link → MKA identity/key agreement → secure channel/association → encrypt/validate/replay → Ethernet forwarding | application success |
MACsec · technical reference
Compact network access/security mechanics, policy and evidence boundaries for fast lookup.
| Layer | MACsec evidence |
|---|---|
| Key agreement | Peer/key relationship established |
| Secure channel | Protection association active |
| Counters | Frames protected/validated |
| Reachability | Separate Ethernet/IP/application evidence |