我记得我可以通过 来查看RX
和。
例如:TX
ifconfig
root@debian:~# ifconfig enp0s31f6
enp0s31f6: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.106 netmask 255.255.255.255 broadcast 192.168.1.106
ether 54:e1:ad:62:7f:b6 txqueuelen 1000 (Ethernet)
RX packets 87 bytes 11064 (10.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 103 bytes 12049 (11.7 KiB)
TX errors 0 dropped 525 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xec200000-ec220000
我该如何通过 来实现iproute
?