Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

MACsec

Direct answer

MACsec protects Ethernet links with Layer-2 confidentiality, integrity and origin authenticity, commonly using 802.1AE with MKA key agreement.

When to use this

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

First 30 seconds

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).

Operational verification

MKA key agreement → SAK → encrypted frames

Evidence · next step

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.

Continue only after interpreting the current observation.
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 interface
Scope / prerequisiteUse it to protect frames on a supported point-to-point link while keeping routing and higher-layer policy independent.
Show · 1
What next?3 suggested next steps
Child topics (this level)3
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

2 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

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 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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

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 summary — secured interfaces
  • show 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)

MethodDetail
MKA with pre-shared keyPeers exchange EAPOL-MKA frames (EtherType 0x888E); key server elected by lowest priority, then highest SCI
MKA with 802.1XKeys 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)

CheckCommand
Session state and CKN matchshow mka sessions [detail]
Secure channel countersshow macsec interface <int>
Policy and errorsshow mka policy, show mka statistics
Stuck in InitOften a key padding mismatch between platforms

Design notes (technote)

PointDetail
Port-channelsConfigure MACsec on each member link
Double encryptionNot supported
PSK modeMust Secure is the default; Should Secure isn't supported
NTPRecommended 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.

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) 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.

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

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
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. 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%
Terminology layer

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.

Aliases that resolve here
802.1AEmedia access control securityMKA link encryption
Embedded reference data

Quick lookup tables

MACsec evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show macsec interfaceremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?physical link → MKA identity/key agreement → secure channel/association → encrypt/validate/replay → Ethernet forwardingapplication success

MACsec · technical reference

Compact network access/security mechanics, policy and evidence boundaries for fast lookup.

LayerMACsec evidence
Key agreementPeer/key relationship established
Secure channelProtection association active
CountersFrames protected/validated
ReachabilitySeparate Ethernet/IP/application evidence
Confirmation

Confirm action

Continue?