Linux command
ip-stats 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Example
ip stats
Example
ip stats show dev [eth0]
Example
ip stats show group link
Example
ip stats show group offload
Example
ip stats show dev [eth0] group offload
Example
ip stats show dev [eth0] group offload subgroup [l3_stats|cpu_hit|hw_stats_info]
Enable
ip stats set dev [eth0] l3_stats on
说明
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.
参数
- show dev _DEVICE_
- Display statistics
- set dev _DEVICE_
- Configure statistics collection
- group _GROUP_
- Statistics group: link, offload, afstats
- subgroup _SUBGROUP_
- Specific subgroup within a group
- l3_stats _on|off_
- Enable/disable L3 hardware statistics
FAQ
What is the ip-stats command used for?
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.
How do I run a basic ip-stats example?
Run `ip stats` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show dev _DEVICE_ do in ip-stats?
Display statistics