About Netstat commnd

Source: Internet
Author: User

This command was awesome, we can use it conveniently to check the network status.

Here some common examples:

1) netstat display the current IP port status.


2) NETSTAT-NR Display the routing tables


Parameter tables:

-A Displays all active connections and the TCP and UDP ports on which the computer is listening.
- b (Windows) Displays the binary (executable) program's name involved in creating each connection or listening port. (Windows XP, 2003 Server and newer Windows operating systems; not Microsoft windows, or older).
- b (OS X, NetBSD) Causes -I to report the total number of Bytes of traffic.
-E Displays ethernet statistics, such as the number of bytes and packets sent and received. This parameter can is combined with- s.
- F (Windows) Displays Fully qualified domain names <FQDN> for foreign addresses (only available on Windows Vista and new ER operating systems).
- F Address Family (FreeBSD) Limits display to a particular socket address family, Unix, inet, inet6
-G Displays multicast group membership information for both IPV4 and IPV6 (May is available on newer operating Systems
-I. Displays network interfaces and their statistics (not available under Windows)
-M Displays the mEmory statistics for the Networking Code (STREAMS statistics on Solaris).
-N Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt it made to D Etermine names.
- o (Windows) Displays active TCP connections and includes the process ID (PID) for each connection. You can find the application based on the PID on theProcesses tab in Windows Task Manager. This parameter can is combined with- A,-N, and - p. This parameter are available on Microsoft Windows XP, 2003 Server (and Windows $ If a hotfix is applied). [6]
- P Protocol (Windows Andbsd) Shows connections for the protocol specified by protocol. In this case, the protocol can be TCP, UDP, Tcpv6, or Udpv6. If This parameter are used with- s to display statistics by protocol, protocol can be TCP, UDP, ICMP, IP, Tcpv6, Udpv6, ICMPv6, or IPv6.
- P (Linux) Show which processes is using which sockets (similar To-b under Windows) (you must is root to does this)
- P Protocol (Solaris) Shows connections for the protocol specified by protocol. In this case, the protocol can be IP, IPv6, ICMP, ICMPv6, IGMP, UDP, TCP, or Rawip.
-R Displays the contents of the IP rOuting table. (This was equivalent to the route print command under Windows.)
-S Displays statistics by protocol. By default, statistics is shown for the TCP, UDP, ICMP, and IP protocols. If the IPV6 protocol for Windows XP is installed, statistics be shown for the TCP over IPv6, UDP over IPv6, ICMPV6, and I PV6 protocols. The- p parameter can be used to specify a set of protocols.
- T (Linux) Display only TCP connections.
- W (FreeBSD) Display wide OUTPUT-DOESN ' t truncate hostnames or IPV6 addresses
- v (Windows) When used in conjunction with- b It would display the sequence of components involved in creating the connection O R Listening port for all executables.
Interval Redisplays the selected information every Interval seconds. Press CTRL + C to stop the redisplay. If This parameter are omitted, netstat prints the selected information only once.
- H (Unix)
/? (Windows)
Displays help at the command prompt.


About Netstat commnd

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.