ip-stats
manages and displays network interface statistics
TLDR
Show all interface statistics
SYNOPSIS
ip stats [command] [options]
DESCRIPTION
ip stats manages and displays network interface statistics. It provides access to both software-maintained counters and hardware offload statistics where supported.
Statistics groups include link-layer counters, hardware offload metrics, and address-family specific statistics like MPLS. Hardware statistics collection may need to be explicitly enabled.
PARAMETERS
show [dev DEVICE]
Display statisticsset dev DEVICE
Configure statistics collectiongroup GROUP
Statistics group: link, offload, afstatssubgroup SUBGROUP
Specific subgroup within a groupl3_stats on|off
Enable/disable L3 hardware statistics
CAVEATS
Hardware offload statistics require driver and hardware support. Some statistics may not be available on all interfaces. Enabling statistics collection may have a performance impact.
HISTORY
ip stats was added to iproute2 to provide unified access to various network statistics including hardware offload metrics that became available in newer kernel versions.
