Linux Fundamentals - How to display statistics for each protocol in Linux using netstat
by
Jeremy Canfield |
Updated: September 19 2023
| Linux Fundamentals articles
The netstat -s option can be used to display statistics for each protocol.
[root@server1 ~]# netstat -s
IcmpMsg:
InType3: 3
OutType3: 3
Tcp:
43 active connections openings
2 passive connection opening
. . .
Udp:
17184 packets received
3 packets to unknown port received.
. . .
The netstat -i option can be used to display statistics for each interface.
[root@server1 ~]# netstat -i
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 369196 0 50 0 191386 0 0 0 BMRU
lo 65536 0 0 0 0 8 0 0 0 LRU
Did you find this article helpful?
If so, consider buying me a coffee over at