Comanda Netstat

Configurare noua (How To)

Situatie

Netstat afiseaza conexiunile de rețea, tabela de routare, și un număr de statistici.

 

Solutie

Sintaxa

NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval]

-a                            Displays all connections and listening ports.

-b                            Displays the executable involved in creating each connection or
listening port. In some cases well-known executables host
multiple independent components, and in these cases the
sequence of components involved in creating the connection
or listening port is displayed. In this case the executable
name is in [] at the bottom, on top is the component it called,
and so forth until TCP/IP was reached. Note that this option
can be time-consuming and will fail unless you have sufficient
permissions.

-e                               Displays Ethernet statistics. This may be combined with the -s
option.

-f                                Displays Fully Qualified Domain Names (FQDN) for foreign
addresses.

-n                               Displays addresses and port numbers in numerical form.
-o                               Displays the owning process ID associated with each connection.
-p proto                    Shows connections for the protocol specified by proto; proto
may be any of: TCP, UDP, TCPv6, or UDPv6. If used with the -s
option to display per-protocol statistics, proto may be any of:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, or UDPv6.
-q                               Displays all connections, listening ports, and bound
nonlistening TCP ports. Bound nonlistening ports may or may not
be associated with an active connection.

-r                                 Displays the routing table.
-s                                 Displays per-protocol statistics. By default, statistics are
shown for IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP, and UDPv6;
the -p option may be used to specify a subset of the default.

-t                                  Displays the current connection offload state.
-x                                 Displays NetworkDirect connections, listeners, and shared
endpoints.

-y                                  Displays the TCP connection template for all connections.
Cannot be combined with the other options.
interval Redisplays selected statistics, pausing interval seconds
between each display. Press CTRL+C to stop redisplaying
statistics. If omitted, netstat will print the current
configuration information once.

 

C:UsersCornel>netstat -t -n

Active Connections

Proto Local Address Foreign Address State Offload State

TCP 127.0.0.1:53575 127.0.0.1:53576 ESTABLISHED InHost
TCP 127.0.0.1:53576 127.0.0.1:53575 ESTABLISHED InHost
TCP 127.0.0.1:53577 127.0.0.1:53578 ESTABLISHED InHost
TCP 127.0.0.1:53578 127.0.0.1:53577 ESTABLISHED InHost
TCP 127.0.0.1:53581 127.0.0.1:53582 ESTABLISHED InHost
TCP 127.0.0.1:53582 127.0.0.1:53581 ESTABLISHED InHost
TCP 127.0.0.1:53583 127.0.0.1:53584 ESTABLISHED InHost
TCP 127.0.0.1:53584 127.0.0.1:53583 ESTABLISHED InHost
TCP 127.0.0.1:53737 127.0.0.1:53738 ESTABLISHED InHost
TCP 127.0.0.1:53738 127.0.0.1:53737 ESTABLISHED InHost
TCP 127.0.0.1:55113 127.0.0.1:55114 ESTABLISHED InHost
TCP 127.0.0.1:55114 127.0.0.1:55113 ESTABLISHED InHost
TCP 192.168.1.4:54504 40.67.254.36:443 ESTABLISHED InHost
TCP 192.168.1.4:54528 77.234.45.70:80 ESTABLISHED InHost
TCP 192.168.1.4:54564 31.14.161.116:443 ESTABLISHED InHost
TCP 192.168.1.4:55124 86.107.176.60:443 ESTABLISHED InHost
TCP 192.168.1.4:55332 95.100.220.13:443 ESTABLISHED InHost
TCP 192.168.1.4:55335 52.34.90.23:443 TIME_WAIT InHost
TCP 192.168.1.4:55336 95.100.221.237:80 TIME_WAIT InHost
TCP 192.168.1.4:55337 104.92.98.104:80 TIME_WAIT InHost

Tip solutie

Permanent

Voteaza

(24 din 50 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?