2
NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] -a Displays all connections and listening ports. -e Displays Ethernet statistics. This may be combined with the -s option. -n Displays addresses and port numbers in numerical form. -p proto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP , UDP , or IP . -r Displays the routing table. -s Displays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default. inter val 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. Examples Tip: Keep in mind that if you have network applications open, such as the Internet browser you're using to view this page, additional items will be listed when you run "netstat" and the "netstat -a" command. So you may see items from Computer Hope in your list. If you want a true listing of background Internet connections, close all programs and run the command. Finally, it is also normal to see one or more 0.0.0.0 and 127.0.0.1 addresses. netstat Displays all local network information. Below is an example of what may be displayed. Prot o Local Address Foreign Address State TCP hope:4409 www.computerhope.com:teln et ESTABLISHED TCP hope:3708 multicity.com:80 CLOSE_WAIT

mreza komande

Embed Size (px)

Citation preview

NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]

-aDisplays all connections and listening ports.

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

-nDisplays addresses and port numbers in numerical form.

-pproto Shows connections for the protocol specified by proto; proto may be TCP or UDP. If used with the -s option to display per-protocol statistics, proto may be TCP, UDP, or IP.

-rDisplays the routing table.

-sDisplays per-protocol statistics. By default, statistics are shown for TCP, UDP and IP; the -p option may be used to specify a subset of the default.

intervalRedisplays 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.

Examples

Tip: Keep in mind that if you have network applications open, such as the Internet browser you're using to view this page, additional items will be listed when you run "netstat" and the "netstat -a" command. So you may see items from Computer Hope in your list. If you want a true listing of background Internet connections, close all programs and run the command. Finally, it is also normal to see one or more 0.0.0.0 and 127.0.0.1 addresses.

netstat

Displays all local network information. Below is an example of what may be displayed.

ProtoLocal AddressForeign AddressState

TCPhope:4409www.computerhope.com:telnetESTABLISHED

TCPhope:3708multicity.com:80CLOSE_WAIT

TCPhope:4750www.google.com:80CLOSE_WAIT

netstat -an

Displays all connections on the computers in numerical format, only displaying the local and foreign IP addresses.

netstat 5