|
发表于 2019-11-15 08:00:08
|
显示全部楼层
# vnstat -d
eth0 / daily
day rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
2019年11月14日 253 KiB | 2.29 MiB | 2.54 MiB | 0.24 kbit/s
2019年11月15日 0 KiB | 0 KiB | 0 KiB | 0.00 kbit/s
------------------------+-------------+-------------+---------------
estimated -- | -- | -- |
# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
RX packets 2173332 bytes 2987759922 (2.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1707566 bytes 3258613090 (3.0 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
RX packets 536905 bytes 183478852 (174.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16765 bytes 2708490 (2.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1540629 bytes 2684279737 (2.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1540629 bytes 2684279737 (2.4 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnstat 显示的不准啊 |
|