怎么清空 ifconfig 的 RX 和 TX 的流量数值?

查看统计

1、ifconfig eth0

2、cat /proc/net/dev

清除统计

1、重启

2、

ifconfig eth0 down
ifconfig eth0 up

3、

ethtool -i eth0   查看网卡驱动信息

root@localhost:/etc# ethtool -i eth0   
driver: xxx
version: 4.14.83

modprobe -r  xxx   重启驱动

modprobe xxx

4、

ethtool -i eth0 

rmmod eth0

insmod eth0

5、

ifconfig eth0 down
rmmod eth0
insmod eth0

6、todo

参考

Linux网卡包计数器清零(卸载/重加载驱动)

Resetting ifconfig counters

原文地址:https://www.cnblogs.com/code1992/p/13748771.html