How many packets come through interface, how many errors, MTU size
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 12 Jan 2016 02:39:43 +0200
changeset 1864 8bd740ff27a2
parent 1863 1532554ca0b4
child 1865 4d074e9986bd
How many packets come through interface, how many errors, MTU size
stat.rst
--- a/stat.rst	Tue Jan 12 00:09:16 2016 +0200
+++ b/stat.rst	Tue Jan 12 02:39:43 2016 +0200
@@ -268,6 +268,19 @@
   $ sudo apt-get install netdiag
   $ sudo trafshow
 
+How many packets come through interface, how many errors, MTU size::
+
+  $ netstat -i
+
+Detailed information about interface::
+
+  $ netstat -ie
+
+Routing table::
+
+  $ ip route show
+  $ netstat -r
+
 Network status.
 ===============
 ::
@@ -324,12 +337,16 @@
 
 Linux.
 ------
-::
+
+``[46]`` - IPV4 or IPV6, ``protocol`` - tcp, udp::
 
   $ lsof -i[46][protocol][@{hostname|hostaddr}][:{service|port}]
-  $ netstat -p -l | grep $PORT
+
+::
 
-where ``[46]`` - IPV4 or IPV6, ``protocol`` - tcp, udp.
+  $ netstat -p -l | grep $PORT
+  $ netstat -p -l -t | grep $PORT
+  $ netstat -p -l -u | grep $PORT
 
 ::