Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Display the network statistics

Syntax:

netstat -r

netstat -i

Displays the contents of different system data pertained to network parameters.

-r” parameter displays system routing tables: 

Figure - “-r” parameter output

Flags for specific routes have the following meaning:

  • "U" - this routing table element is currently active
  • "H" - this route leads to a host. If this flag is not set, the route goes to a network
  • "D" - the route has been created using the "icmp redirect" protocol
  • "M" - the route has been modified using the "icmp redirect" protocol
  • "G" - the route is connected to a host. If this flag is not set, it is considered that the route destination is directly connected
  • "S" - static route, set by the operator using a "route add" command
  • "1" - pseudostatic route, set as a result of a "rip static" command
  • "L" - the route points to a directly connected host (for such a route an APR request may be performed)
  • "C" - when using this route, more specific routes may be created (e.g. using the "L" flag).

-i” parameter displays the information on each network interface in the system:

Figure - “-i” parameter output
  • No labels