Skip to Content
Linux® Routing
book

Linux® Routing

by Joe Brockmeier, Dee-Ann LeBlanc, Ron McCarty
October 2001
Intermediate to advanced
350 pages
8h 42m
English
Sams
Content preview from Linux® Routing

netstat

netstat, short for network statistics, is a command for displaying network information on the local node. The most common use of netstat is to display the route table:

[root@lefty /root]# netstat -r 
Kernel IP routing table 
Destination     Gateway       Genmask         Flags MSS Window irtt Iface 
lefty           *             255.255.255.255 UH      0 0         0 eth0 
192.168.1.0     *             255.255.255.0   U       0 0         0 eth0 
127.0.0.0       *             255.0.0.0       U       0 0         0 lo 
default         192.168.1.1   0.0.0.0         UG      0 0         0 eth0 

There is much more to netstat than simply printing the routing table. In fact, most of netstat’s output shows network connections on the local node.

-a

The -a, or “all” parameter tells netstat to print all open sockets on the local node. This includes any connections initiated from the local node or daemons ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Make: Technology on Your Time Volume 10

Make: Technology on Your Time Volume 10

Mark Frauenfelder
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 1578702674Purchase book