Lucifa Lucifa - 1 year ago 70
Linux Question

How to get the statistics info for one interface through linux command?

we know that some linux command can get tcp statistics info ,such as "netstat -s --tcp" ,"ss -s -t" , but how to get statistics for one specific interface ?

Answer Source

You can use tcpstat :

tcpstat - report network interface statistics

tcpstat -i <interface>