Rocky 9.x Look at network interface statistics

From Notes_Wiki

Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Network Configuration > Look at network interface statistics

Look at per interface statistics

Per-interface statistics can be seen at:

/sys/class/net/<interface-name>/statistics

Refer:


Reset interface statistics

Note that this will lead to network disconnection. Do it only when physically connected via keyboard mouse, using some other interface for remote or connected to VM via hypervisor, etc.

To reset interface counters use following steps:

  1. List the network drivers loaded on system:
    sudo lshw -class network
  2. Then for the interface whose statistics need to be reset note value of driver= under configuration:
  3. Finally use modprobe -r to remove the loaded module
  4. Then use modprobe to reload the removed module
  5. Now validate that statistics for that interface are again set to zero


Refer:


Home > Rocky Linux or CentOS > Rocky Linux 9.x > System Administration > Network Configuration > Look at network interface statistics