Pcornel
Browse topics
Options
Recent
Favorites
Command · Linux / iproute2

Inspect Linux IPsec/XFRM security associations

ip xfrm state

Inspect Linux IPsec/XFRM security associations. Focus fields: source/destination, SPI, protocol, mode, algorithms, key lifetimes and byte/packet counters.

Execution context

Linux / iproute2

Use when

Use when isolating security--ipsec-ipsec-troubleshooting at the matching failure boundary.

Then verify

inspect xfrm policy/IKE daemon state and packet path for the same selectors

Privilege Use an account/context authorized for the observation and keep scope bounded.State impact Read-onlyProduction Unknown

Operational impact: Read-only observation; runtime cost still depends on platform and result size.
Command detailsSafety model · family · platform · verification · bundle
PrivilegeUse an account/context authorized for the observation and keep scope bounded.
Execution contextLinux / iproute2
State impactRead-only
Safe during productionUnknown
Categoryipsec
Evidence levelmixed
Primary DomainSecurity
Historical technical verificationNeeds verification dateCurrent command content requires review after a Git edit.
FamilyIpsec
PlatformLinux / iproute2
PrerequisiteLinux / iproute2
Output fields

Field glossary

Important fields projected from persisted Command guidance.

source/destination, SPI, protocol, mode, algorithms, key lifetimes and byte/packet counters

Important persisted output field; use surrounding guidance for interpretation.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

DomainsSecurity

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

Directly exposes source/destination, SPI, protocol, mode, algorithms, key lifetimes and byte/packet counters for the selected object and execution context.

Does not prove

Does not by itself prove root cause, adjacent dependency health or end-to-end workload recovery.

Next check

inspect xfrm policy/IKE daemon state and packet path for the same selectors

Depth when you need it

Command guidance

Execution context

Linux / iproute2

Use when

Use when isolating security--ipsec-ipsec-troubleshooting at the matching failure boundary.

Important fields

source/destination, SPI, protocol, mode, algorithms, key lifetimes and byte/packet counters

Common problems

Common mistakes: wrong host/device/object, wrong namespace or time window, or treating one layer as end-to-end proof.

Operational impact

Read-only observation; runtime cost still depends on platform and result size.

Runtime cautions

Record object identity, scope and timestamp so output can be correlated with the original failure.

Technical context

No illustrative output is seeded. Add captured or source-backed output only through the provenance-aware workflow.

Confirmation

Confirm action

Continue?