Netstat - Linux

  • The netstat command displays information on the network configuration and activity of a Linux system, including network connections, routing tables, interface statistics, and multicast memberships.
netstat -i Displays a table with statistics of the currently configured network interfaces.
netstat -rn Displays the kernel routing table. The -n option forces netstat to print the IP addresses. Without this option, netstat attempts to display the host names.
netstat -an

netstat -tan

netstat -uan
Display the active network connections. The -a option displays all active network connections, the -ta option displays only information on TCP connections, and the -tu option displays only information on UDP traffic. Omitting the -n option prints host names, instead of IP addresses.
netstat -s Displays summary statistics for each protocol that is currently running on the host.