Netstat flags

-a -e -n -s (statistics) -rn (routing table)

H:>netstat -rn

Route Table
===========================================================================
Interface List
0x1 ……………………… MS TCP Loopback interface
0x2 …00 13 72 7e e0 8d …… Broadcom NetXtreme Gigabit Ethernet #3 – Eacfilt
0x3 …44 45 53 54 42 00 …… Nortel IPSECSHM Adapter – Eacfilt Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
0.0.0.0          0.0.0.0  131.170.112.254  131.170.112.73       20
127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
131.170.112.0    255.255.255.0   131.170.112.73  131.170.112.73       20
131.170.112.73  255.255.255.255        127.0.0.1       127.0.0.1       20
131.170.255.255  255.255.255.255   131.170.112.73  131.170.112.73       20
224.0.0.0        240.0.0.0   131.170.112.73  131.170.112.73       20
255.255.255.255  255.255.255.255   131.170.112.73               3       1
255.255.255.255  255.255.255.255   131.170.112.73  131.170.112.73       1
Default Gateway:   131.170.112.254
===========================================================================
Persistent Routes:
None

H:>netstat -a

Active Connections

Proto  Local Address          Foreign Address        State
TCP    b05108003-14:82        b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:epmap     b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:microsoft-ds  b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:1761      b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:2030      b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:1033      b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:netbios-ssn  b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:427       b05108003-14.set.rmit.edu.au:0  LISTENING
TCP    b05108003-14:1029      SET-GN-WITTIG.set.rmit.edu.au:524  ESTABLISHED
TCP    b05108003-14:1031      SET-GN-WITTIG.set.rmit.edu.au:524  ESTABLISHED
TCP    b05108003-14:1098      SET-GN-HERTZ.set.rmit.edu.au:524  ESTABLISHED
TCP    b05108003-14:1103      SET-GN-HERTZ.set.rmit.edu.au:524  ESTABLISHED
TCP    b05108003-14:1107      set-gn-marconi-usrc2.set.rmit.edu.au:524  ESTABL
TCP    b05108003-14:1108      set-gn-marconi-sharec1.set.rmit.edu.au:524  ESTA
TCP    b05108003-14:1123      SET-WN-PROXY14.set.rmit.edu.au:524  ESTABLISHED
TCP    b05108003-14:1233      wasted.pacific.net.au:ftp  CLOSE_WAIT
TCP    b05108003-14:3017      b05108003-14.set.rmit.edu.au:0  LISTENING
UDP    b05108003-14:82        *:*
UDP    b05108003-14:83        *:*
UDP    b05108003-14:snmp      *:*
UDP    b05108003-14:microsoft-ds  *:*
UDP    b05108003-14:1026      *:*
UDP    b05108003-14:1027      *:*
UDP    b05108003-14:1034      *:*
UDP    b05108003-14:ms-sql-m  *:*
UDP    b05108003-14:1761      *:*
UDP    b05108003-14:3024      *:*
UDP    b05108003-14:ntp       *:*
UDP    b05108003-14:1134      *:*
UDP    b05108003-14:1240      *:*
UDP    b05108003-14:ntp       *:*
UDP    b05108003-14:netbios-ns  *:*
UDP    b05108003-14:netbios-dgm  *:*
UDP    b05108003-14:427       *:*
UDP    b05108003-14:1025      *:*

H:>netstat -e
Interface Statistics

Received            Sent

Bytes                     142159154        84633058
Unicast packets              185498          148531
Non-unicast packets           11683              71
Discards                          0               0
Errors                            0               0
Unknown protocols             12946

H:>netstat -s

IPv4 Statistics

Packets Received                   = 188221
Received Header Errors             = 0
Received Address Errors            = 8
Datagrams Forwarded                = 0
Unknown Protocols Received         = 0
Received Packets Discarded         = 47
Received Packets Delivered         = 188166
Output Requests                    = 148664
Routing Discards                   = 0
Discarded Output Packets           = 0
Output Packet No Route             = 0
Reassembly Required                = 0
Reassembly Successful              = 0
Reassembly Failures                = 0
Datagrams Successfully Fragmented  = 0
Datagrams Failing Fragmentation    = 0
Fragments Created                  = 0

ICMPv4 Statistics

Received    Sent
Messages                  46          97
Errors                    0           0
Destination Unreachable   0           10
Time Exceeded             0           0
Parameter Problems        0           0
Source Quenches           0           0
Redirects                 0           0
Echos                     8           79
Echo Replies              34          8
Timestamps                0           0
Timestamp Replies         0           0
Address Masks             0           0
Address Mask Replies      0           0

TCP Statistics for IPv4

Active Opens                        = 220
Passive Opens                       = 0
Failed Connection Attempts          = 0
Reset Connections                   = 51
Current Connections                 = 10
Segments Received                   = 177836
Segments Sent                       = 138744
Segments Retransmitted              = 2

UDP Statistics for IPv4

Datagrams Received    = 10125
No Ports              = 321
Receive Errors        = 31
Datagrams Sent        = 9820

H:>netstat -n

Active Connections

Proto  Local Address          Foreign Address        State
TCP    131.170.112.73:1029    131.170.136.3:524      ESTABLISHED
TCP    131.170.112.73:1031    131.170.136.3:524      ESTABLISHED
TCP    131.170.112.73:1098    131.170.136.5:524      ESTABLISHED
TCP    131.170.112.73:1103    131.170.136.5:524      ESTABLISHED
TCP    131.170.112.73:1107    131.170.136.32:524     ESTABLISHED
TCP    131.170.112.73:1108    131.170.136.33:524     ESTABLISHED
TCP    131.170.112.73:1123    131.170.136.6:524      ESTABLISHED
TCP    131.170.112.73:1233    61.8.0.55:21           CLOSE_WAIT

Leave a Reply