Packet Path Troubleshoot
PREVIEW — for evaluation, not the live site

Troubleshoot › Error Decoder › %CRYPTO-4-RECVD_PKT_INV_SPI

Decoder

What does %CRYPTO-4-RECVD_PKT_INV_SPI mean?

IPsec VPN received a packet it cannot place

%CRYPTO-4-RECVD_PKT_INV_SPI: decaps: rec'd IPSEC packet has invalid spi for destaddr=203.0.113.5, prot=50, spi=0x3F2A1B9C, srcaddr=198.51.100.9
In plain English: A VPN tunnel received an encrypted packet stamped with a security ID (SPI) that this router no longer knows.

Platform: Cisco IOS / IOS XE routers. ASA and other vendors word this differently; the stale-session logic is the same.

What it means

A VPN tunnel received an encrypted packet stamped with a security ID (SPI) that this router no longer knows. Usually it means the two ends of the tunnel disagree about the current session: one side restarted the tunnel and built a fresh one, while the other side is still sending on the old one. The packets get dropped, and users see a tunnel that looks 'up' but passes no traffic — often right after a brief outage.

Likely causes, in order

Check, in order

  1. show crypto isakmp saWhether the management session to that peer is alive and current.
  2. show crypto ipsec sa | include spiCompare the SPIs this side expects with the one named in the log message. A mismatch is the smoking gun.
  3. show logging | include CRYPTOHow often it happens — every few minutes means a standing mismatch, not a one-off restart.

The fix

Did this fix it for you? One tap — anonymous, nothing to type, and nothing you send is ever published.

Sources

More error messages

Decoder

%SPANTREE-2-LOOPGUARD_BLOCK

Loop Guard blocked a port: possible one-way trouble

Decoder

%SPANTREE-2-BLOCK_BPDUGUARD

BPDU Guard shut the port: something switch-like appeared on an access port

Decoder

%ETHCNTR-3-LOOP_BACK_DETECTED

Loop-back detected: the switch heard its own voice come back