Our Feeds

Saturday, 3 November 2012

Ajith KP

Finding Network topology using "Netstat" Commands

NETSTAT is the command which is used to find out network topology details.


  • netstat -a              --> List of all ports
  • netstat -t               --> List of TCP ports
  • netstat -u              --> List of UDP ports
  • netstat -l               --> List of listening ports
  • netstat -s               --> Statistics of all ports
  • netstat -p              --> All PID/Program name
  • netstat -i               --> Network interface
  • netstat -r               --> Kernel routing
  • netstat -x              --> All Unix ports
  • netstat --verbose   --> Non supportive address families

Multiple netstat commands

  • netstat -lt              --> Listening TCP ports
  • netstat -lu             --> Listening UDP ports
  • netstat -lx             --> Listening Unix ports
  • netstat -st             --> Statistics of TCP ports
  • netstat -su            --> Statistics of UDP ports