First, netstat parameter explanation:
Netstat is used to display statistical data related to IP, TCP, UDP, and ICMP protocols, and to verify network connectivity for each port on the machine. The Linux terminal uses the NETSTAT–HELP command to view its detailed parameter descriptions:
root@sky:/#netstat--help
USAGE:NETSTAT[-VWEENNCCF] [<af>]-R netstat {-v|--version|-h|--help}
netstat [-vwnncaeol] [<socket> ...]
netstat {[-vweennac]-I | [-cwnne]-M | -S}
-R,--route display routing table
-I,--interfaces display interface table
-G,--groups display multicast groupmemberships
-S,--statistics display networking statistics (LIKESNMP)
-M,--masquerade display masqueraded connections
-V,--verbose be verbose
-W,--wide don ' t truncate IP addresses
-N,--numeric don ' t resolve names
--numeric-hosts don ' t resolve host names
--numeric-ports don ' t resolve port names
--numeric-users don ' t resolve user names
-N,--symbolic resolve hardware names
-E,--extend display other/more information
-P,--programs display Pid/program name for sockets
-C,--continuous continuous listing
-L,--listening display listening server sockets
-A,--all,--listening displayall sockets (default:connected)
-O,--timers display timers
-F,--FIB display forwarding informationbase (default)
-C,--cache display routing cache instead offib
<SOCKET>={-T|--TCP} {-u|--udp}{-w|--raw} {-x|--unix}--ax25--ipx--netrom
<af>=use ' -6|-4 ' or '-A <af> ' or '--<af> '; Default:inet
List of possible address families (Whichsupport routing):
inet (DARPA Internet) Inet6 (IPV6) ax25 (amprax.25)
Netrom (AMPR Net/rom) IPX (Novell IPX) DDP (Appletalk DDP)
X25 (CCITT X.25)
root@sky:/#
The Chinese description is as follows:
-R,--route displayrouting table
Show routing information
-I,--interfaces displayinterface table
Display all network Device interface information
-G,--groups display multicast group memberships
Show Multicast member relationships
-S,--statistics display networking statistics (like SNMP)
Network statistics, similar to SNMP (very useful)
-M,--masquerade displaymasqueraded connections
Show Camouflage Connection
-V,--verbose be verbose
More information (no-an easy to use)
-W,--wide don ' t truncate IP addresses
The IP address is not truncated.
-N,--numeric don ' tresolve names
Do not resolve names
--numeric-hosts don ' t resolve host names
Do not resolve host names
--numeric-ports don ' t resolve port names
Do not resolve port names
--numeric-users don ' t resolve user names
Do not resolve user name
-N,--symbolic resolve hardware names
Resolve device name, default to open
-E,--extend display other/moreinformation
Display extended information (increased user, I node display)
-P,--programs display Pid/program name for sockets
Shows which processes/programs are using the network
-C,--continuous continuous listing
Continuous brush screen display (as a result of constantly brushing to brush to get better with watch)
-L,--listening display listening server sockets
Viewing port conditions for service listening
-A,--all,--listening display all sockets (default:connected)
View socket port conditions, including various network states, including the-l
-O,--timers display timers
To see the timer for the socket, use the example below.
-F,--FIB display forwarding information Base (default)
Displays leading (routing) information, which is used by default.
-C,--cache display routing cache instead of FIB
Displays the leading (routing) information in the cache, rather than getting it in real time to FIB
<SOCKET>={-T|--TCP}{-U|--UDP} {-S|--SCTP} {-w|--raw} {-x|--unix}--ax25--ipx–netrom
TCP, UDP, SCTP, raw socket
<af>=use '-a<af> ' or '--<af> '; Default:inet
Ethernet, default
second, netstat common usage detailed explanation:
netstat-s
This option displays its statistics separately according to each protocol. If your application, such as a Web browser, runs slowly, or cannot display data such as a Web page, you can use this option to view the information displayed. You need to look closely at the lines of the statistics, find the keywords that are wrong, and then determine where the problem is.
netstat-e
This option is used to display statistics about Ethernet. The items he lists include the total number of bytes transmitted, the number of errors, the number of deletes, the amount of datagrams, and the number of broadcasts. These statistics include both the number of datagrams sent and the number of datagrams received. This option can be used to count some basic network traffic.