Use it when deciding which links get MACsec, or when a MACsec link stays down.
Link Protection
MACsec link protection secures a link between two devices (switch-switch or host-switch) against eavesdropping, tampering and replay; traffic is decrypted at each hop.
1. MACsec protects links between devices (switch-to-switch, data centre interconnect).
2. Use must-secure policy for strict protection.
3. should-secure allows fallback.
4. Plan for key rollover.
5. Monitor sessions.
link → MKA → must-secure → encrypted
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 & 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 2 Common mistakes Narrow the fault
- Policy
should-secureleft in place, so links fall back to clear text. - No plan for links where the peer does not support MACsec.
- 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 mka sessions— securedshow macsec summary— protected interfaces
ReferenceWhat it is1 section · depth on demand
Where to use it
- Links leaving secured buildings (campus fiber between buildings, metro Ethernet).
- Host-to-switch with 802.1X (MKA keys derived from EAP).
- Data-centre interconnects (WAN MACsec).
MACsec protects one hop; every device in the path decrypts and re-encrypts. It needs hardware support on both ends and adds 24–32 bytes per frame (raise MTU on the link).
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 & boundaries3 sections · depth on demand
Quick reference
MACsec protects each link hop by hop: frames are encrypted and authenticated on the wire and decrypted in the next device, so it defends against taps and rogue devices on cables between switches, switch-to-host links and data centre interconnects (WAN MACsec).
key chain MKA-KC macsec
key 01
cryptographic-algorithm aes-256-cmac
key-string 0 <64-hex-char CAK>
mka policy MKA-256
macsec-cipher-suite gcm-aes-256
interface Te1/1/1
macsec network-link
mka policy MKA-256
mka pre-shared-key key-chain MKA-KC
MACsec needs hardware support on both ends and reduces usable MTU slightly (SecTAG + ICV ≈ 32 bytes).
In depth
Link protection: encrypting switch-to-switch links with MKA and a pre-shared key
MACsec on uplinks protects traffic on fibre runs between buildings, in shared risers, or through patch rooms that others can access. The Catalyst 9300 guide describes MKA (MACsec Key Agreement) running over EAPOL to derive session keys from a pre-shared key or certificates. MKA sessions time out after 6 seconds without an MKPDU from the peer.
PSK configuration (both switches)
C9300(config)# key chain UPLINK-KC macsec
C9300(config-keychain-macsec)# key 1000
C9300(config-keychain-macsec-key)# cryptographic-algorithm aes-128-cmac
C9300(config-keychain-macsec-key)# key-string <32-hex-chars>
C9300(config-keychain-macsec-key)# lifetime local 00:00:00 Jan 1 2026 infinite
C9300(config)# mka policy UPLINK-MKA
C9300(config-mka-policy)# key-server priority 10
C9300(config-mka-policy)# macsec-cipher-suite gcm-aes-128
C9300(config)# interface Te1/1/1
C9300(config-if)# macsec network-link
C9300(config-if)# mka policy UPLINK-MKA
C9300(config-if)# mka pre-shared-key key-chain UPLINK-KC
C9300# show mka sessions
Total MKA Sessions....... 1
Secured Sessions... 1
Pending Sessions... 0
Interface Local-TxSCI Policy-Name Inherited Key-Server
Port-ID Peer-RxSCI MACsec-Peers Status CKN
Te1/1/1 a0f8.4912.3401/0025 UPLINK-MKA NO YES
37 c4b2.39aa.7701/0025 1 Secured 1000
Policy modes (documented)
| Mode | Behaviour |
|---|---|
| Must-secure (default for switch-to-switch MKA since 16.8.1a) | Only EAPOL is unencrypted; other unencrypted traffic is dropped |
| Should-secure | Encrypts if the peer supports MACsec, otherwise sends clear text (PSK only on switch-to-switch) |
Troubleshooting
| Symptom | Check |
|---|---|
| Link up, no traffic, MKA pending | Key name (CKN) or key-string mismatch; both ends need the same key |
| Session flaps every few seconds | MKPDUs lost (6-second timeout); CPU, CoPP or an intermediate device that drops EAPOL |
| Works with GCM-AES-128, not 256 | Platform or transceiver support; check the compatibility matrix |
| Traffic passes, not encrypted | Should-secure fell back to clear text; use must-secure |
Plan key rollover: add the new key to the key chain with an overlapping lifetime on both switches before the old one expires.
Documented example, not captured output.
Host-to-switch MACsec
With 802.1X (EAP-TLS) the MKA keys are derived from the EAP session, so laptops encrypt the link to the access switch. Switch config adds macsec and mka default-policy on the access port, with ISE returning linksec-policy=must-secure. Windows needs a supplicant that supports MACsec (Cisco Secure Client NAM).
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 → Link Protection. 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%