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