怎么清空 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM