Merge commit 'b31ca922c7346747131aed07c0c171ec2f573aac' into merges
[unleashed.git] / share / man / man8 / netstat.8
blobd6215191014e1246eac95f4952dfc47a5cc4794e
1 '\" te
2 .\" Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
3 .\" Copyright 1989 AT&T
4 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
5 .TH NETSTAT 8 "Sep 02, 2015"
6 .SH NAME
7 netstat \- show network status
8 .SH SYNOPSIS
9 .LP
10 .nf
11 \fBnetstat\fR [\fB-anv\fR] [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
12 .fi
14 .LP
15 .nf
16 \fBnetstat\fR \fB-g\fR [\fB-nv\fR] [\fB-f\fR \fIaddress_family\fR]
17 .fi
19 .LP
20 .nf
21 \fBnetstat\fR \fB-p\fR [\fB-n\fR] [\fB-f\fR \fIaddress_family\fR]
22 .fi
24 .LP
25 .nf
26 \fBnetstat\fR \fB-s\fR [\fB-f\fR \fIaddress_family\fR] [\fB-P\fR \fIprotocol\fR]
27      [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
28 .fi
30 .LP
31 .nf
32 \fBnetstat\fR \fB-m\fR [\fB-T\fR u | d ] [\fB-v\fR] [\fIinterval\fR [\fIcount\fR]]
33 .fi
35 .LP
36 .nf
37 \fBnetstat\fR \fB-i\fR [\fB-I\fR \fIinterface\fR] [\fB-an\fR] [\fB-f\fR \fIaddress_family\fR]
38      [\fB-T\fR u | d ] [\fIinterval\fR [\fIcount\fR]]
39 .fi
41 .LP
42 .nf
43 \fBnetstat\fR \fB-r\fR [\fB-anv\fR] [\fB-f\fR \fIaddress_family\fR | \fIfilter\fR]
44 .fi
46 .LP
47 .nf
48 \fBnetstat\fR \fB-M\fR [\fB-ns\fR] [\fB-f\fR \fIaddress_family\fR]
49 .fi
51 .LP
52 .nf
53 \fBnetstat\fR \fB-D\fR [\fB-I\fR \fIinterface\fR] [\fB-f\fR \fIaddress_family\fR]
54 .fi
56 .SH DESCRIPTION
57 .LP
58 The \fBnetstat\fR command displays the contents of certain network-related data
59 structures in various formats, depending on the options you select.
60 .LP
61 The \fBnetstat\fR command has the several forms shown in the SYNOPSIS section,
62 above, listed as follows:
63 .RS +4
64 .TP
65 .ie t \(bu
66 .el o
67 The first form of the command (with no required arguments) displays a list of
68 active sockets for each protocol.
69 .RE
70 .RS +4
71 .TP
72 .ie t \(bu
73 .el o
74 The second, third, and fourth forms (\fB-g\fR, \fB-p\fR, and \fB-s\fR options)
75 display information from various network data structures.
76 .RE
77 .RS +4
78 .TP
79 .ie t \(bu
80 .el o
81 The fifth form (\fB-m\fR option) displays STREAMS memory statistics.
82 .RE
83 .RS +4
84 .TP
85 .ie t \(bu
86 .el o
87 The sixth form (\fB-i\fR option) shows the state of the interfaces.
88 .RE
89 .RS +4
90 .TP
91 .ie t \(bu
92 .el o
93 The seventh form (\fB-r\fR option) displays the routing table.
94 .RE
95 .RS +4
96 .TP
97 .ie t \(bu
98 .el o
99 The eighth form (\fB-M\fR option) displays the multicast routing table.
101 .RS +4
103 .ie t \(bu
104 .el o
105 The ninth form (\fB-D\fR option) displays the state of \fBDHCP\fR on one or all
106 interfaces.
109 These forms are described in greater detail below.
111 With no arguments (the first form), \fBnetstat\fR displays connected sockets
112 for \fBPF_INET\fR, \fBPF_INET6\fR, and \fBPF_UNIX\fR, unless modified otherwise
113 by the \fB-f\fR option.
114 .SH OPTIONS
115 .ne 2
117 \fB\fB-a\fR\fR
119 .sp .6
120 .RS 4n
121 Show the state of all sockets, all routing table entries, or all interfaces,
122 both physical and logical. Normally, listener sockets used by server processes
123 are not shown. Under most conditions, only interface, host, network, and
124 default routes are shown and only the status of physical interfaces is shown.
128 .ne 2
130 \fB\fB-f\fR \fIaddress_family\fR\fR
132 .sp .6
133 .RS 4n
134 Limit all displays to those of the specified \fIaddress_family\fR. The value of
135 \fIaddress_family\fR can be one of the following:
137 .ne 2
139 \fB\fBinet\fR\fR
141 .RS 9n
142 For the \fBAF_INET\fR address family showing IPv4 information.
146 .ne 2
148 \fB\fBinet6\fR\fR
150 .RS 9n
151 For the \fBAF_INET6\fR address family showing IPv6 information.
155 .ne 2
157 \fB\fBunix\fR\fR
159 .RS 9n
160 For the \fBAF_UNIX\fR address family.
166 .ne 2
168 \fB\fB-f\fR \fIfilter\fR\fR
170 .sp .6
171 .RS 4n
172 With \fB-r\fR only, limit the display of routes to those matching the specified
173 filter. A filter rule consists of a \fIkeyword\fR:\fIvalue\fR pair. The known
174 keywords and the value syntax are:
176 .ne 2
178 \fB\fBaf:\fR{\fBinet\fR|\fBinet6\fR|\fBunix\fR|\fInumber\fR}\fR
180 .sp .6
181 .RS 4n
182 Selects an address family. This is identical to \fB-f\fR \fIaddress_family\fR
183 and both syntaxes are supported.
187 .ne 2
189 \fB\fBoutif\fR:{\fIname\fR|\fIifIndex\fR|\fBany\fR|\fBnone\fR}\fR
191 .sp .6
192 .RS 4n
193 Selects an output interface. You can specify the interface by name (such as
194 \fBhme0\fR) or by \fBifIndex\fR number (for example, \fB2\fR). If \fBany\fR is
195 used, the filter matches all routes having a specified interface (anything
196 other than null). If \fBnone\fR is used, the filter matches all routes having a
197 null interface. Note that you can view the index number (\fIifIndex\fR) for an
198 interface with the \fB-a\fR option of \fBifconfig\fR(8).
202 .ne 2
204 \fB\fBdst\fR:{\fIip-address\fR[/\fImask\fR]|\fBany\fR|\fBnone\fR}\fR
206 .sp .6
207 .RS 4n
208 Selects a destination IP address. If specified with a mask length, then any
209 routes with matching or longer (more specific) masks are selected. If \fBany\fR
210 is used, then all but addresses but 0 are selected. If \fBnone\fR is used, then
211 address 0 is selected.
215 .ne 2
217 \fB\fBflags:\fR[\fB+ -\fR]?[\fBABDGHLMSU\fR]\fB+\fR\fR
219 .sp .6
220 .RS 4n
221 Selects routes tagged with the specified flags. By default, the flags as
222 specified must be set in order to match. With a leading \fB+\fR, the flags
223 specified must be set but others are ignored. With a leading \fB-\fR, the flags
224 specified must not be set and others are permitted.
227 You can specify multiple instances of \fB-f\fR to specify multiple filters. For
228 example:
230 .in +2
232 % netstat -nr -f outif:hme0 -f outif:hme1 -f dst:10.0.0.0/8
234 .in -2
237 The preceding command displays routes within network 10.0.0.0/8, with mask
238 length 8 or greater, and an output interface of either \fBhme0\fR or
239 \fBhme1\fR, and excludes all other routes.
243 .ne 2
245 \fB\fB-g\fR\fR
247 .sp .6
248 .RS 4n
249 Show the multicast group memberships for all interfaces. If the \fB-v\fR option
250 is included, source-specific membership information is also displayed. See
251 DISPLAYS, below.
255 .ne 2
257 \fB\fB-i\fR\fR
259 .sp .6
260 .RS 4n
261 Show the state of the interfaces that are used for \fBIP\fR traffic. Normally
262 this shows statistics for the physical interfaces. When combined with the
263 \fB-a\fR option, this will also report information for the logical interfaces.
264 See \fBifconfig\fR(8).
268 .ne 2
270 \fB\fB-m\fR\fR
272 .sp .6
273 .RS 4n
274 Show the STREAMS memory statistics.
278 .ne 2
280 \fB\fB-n\fR\fR
282 .sp .6
283 .RS 4n
284 Show network addresses as numbers. \fBnetstat\fR normally displays addresses as
285 symbols. This option may be used with any of the display formats.
289 .ne 2
291 \fB\fB-p\fR\fR
293 .sp .6
294 .RS 4n
295 Show the net to media tables. See DISPLAYS, below.
299 .ne 2
301 \fB\fB-r\fR\fR
303 .sp .6
304 .RS 4n
305 Show the routing tables. Normally, only interface, host, network, and default
306 routes are shown, but when this option is combined with the \fB-a\fR option,
307 all routes will be displayed, including cache. If you have not set up a
308 multicast route, \fB-ra\fR might not show any multicast routing entries,
309 although the kernel will derive such an entry if needed.
313 .ne 2
315 \fB\fB-s\fR\fR
317 .sp .6
318 .RS 4n
319 Show per-protocol statistics. When used with the \fB-M\fR option, show
320 multicast routing statistics instead. When used with the \fB-a\fR option,
321 per-interface statistics will be displayed, when available, in addition to
322 statistics global to the system. See DISPLAYS, below.
326 .ne 2
328 \fB\fB-T\fR \fBu\fR | \fBd\fR\fR
330 .sp .6
331 .RS 4n
332 Display a time stamp.
334 Specify \fBu\fR for a printed representation of the internal representation of
335 time. See \fBtime\fR(2). Specify \fBd\fR for standard date format. See
336 \fBdate\fR(1).
340 .ne 2
342 \fB\fB-v\fR\fR
344 .sp .6
345 .RS 4n
346 Verbose. Show additional information for the sockets, STREAMS memory
347 statistics, routing table, and multicast group memberships.
351 .ne 2
353 \fB\fB-I\fR \fIinterface\fR\fR
355 .sp .6
356 .RS 4n
357 Show the state of a particular interface. \fIinterface\fR can be any valid
358 interface such as \fBhme0\fR or \fBeri0\fR. Normally, the status and statistics
359 for physical interfaces are displayed. When this option is combined with the
360 \fB-a\fR option, information for the logical interfaces is also reported.
364 .ne 2
366 \fB\fB-M\fR\fR
368 .sp .6
369 .RS 4n
370 Show the multicast routing tables. When used with the \fB-s\fR option, show
371 multicast routing statistics instead.
375 .ne 2
377 \fB\fB-P\fR \fIprotocol\fR\fR
379 .sp .6
380 .RS 4n
381 Limit display of statistics or state of all sockets to those applicable to
382 \fIprotocol\fR. The protocol can be one of \fBip\fR, \fBipv6\fR, \fBicmp\fR,
383 \fBicmpv6\fR, \fBicmp\fR, \fBicmpv6\fR, \fBigmp\fR, \fBudp\fR, \fBtcp\fR,
384 \fBrawip\fR. \fBrawip\fR can also be specified as \fBraw\fR. The command
385 accepts protocol options only as all lowercase.
389 .ne 2
391 \fB\fB-D\fR\fR
393 .sp .6
394 .RS 4n
395 Show the status of \fBDHCP\fR configured interfaces.
398 .SH OPERANDS
399 .ne 2
401 \fB\fIinterval\fR\fR
403 .RS 12n
404 Display statistics accumulated since last display every \fIinterval\fR seconds,
405 repeating forever, unless \fIcount\fR is specified. When invoked with
406 \fIinterval\fR, the first row of netstat output shows statistics accumulated
407 since last reboot.
409 The following options support \fIinterval\fR: \fB-i\fR, \fB-m\fR, \fB-s\fR and
410 \fB-Ms\fR. Some values are configuration parameters and are just redisplayed at
411 each interval.
415 .ne 2
417 \fB\fIcount\fR\fR
419 .RS 12n
420 Display interface statistics the number of times specified by \fIcount\fR, at
421 the interval specified by \fIinterval\fR.
424 .SH DISPLAYS
425 .SS "Active Sockets (First Form)"
427 The display for each active socket shows the local and remote address, the send
428 and receive queue sizes (in bytes), the send and receive windows (in bytes),
429 and the internal state of the protocol.
431 The symbolic format normally used to display socket addresses is either:
433 .in +2
435 \fBhostname\fR.\fIport\fR
437 .in -2
439 when the name of the host is specified, or
441 .in +2
443 \fInetwork\fR.\fIport\fR
445 .in -2
447 if a socket address specifies a network but no specific host.
449 The numeric host address or network number associated with the socket is used
450 to look up the corresponding symbolic hostname or network name in the
451 \fIhosts\fR or \fInetworks\fR database.
453 If the network or hostname for an address is not known, or if the \fB-n\fR
454 option is specified, the numerical network address is shown. Unspecified, or
455 "wildcard", addresses and ports appear as an asterisk (\fB*\fR). For more
456 information regarding the Internet naming conventions, refer to \fBinet\fR(7P)
457 and \fBinet6\fR(7P).
459 For SCTP sockets, because an endpoint can be represented by multiple addresses,
460 the verbose option (\fB-v\fR) displays the list of all the local and remote
461 addresses.
462 .SS "\fITCP Sockets\fR"
464 The possible state values for \fBTCP\fR sockets are as follows:
466 .ne 2
468 \fB\fBBOUND\fR\fR
470 .RS 16n
471 Bound, ready to connect or listen.
475 .ne 2
477 \fB\fBCLOSED\fR\fR
479 .RS 16n
480 Closed. The socket is not being used.
484 .ne 2
486 \fB\fBCLOSING\fR\fR
488 .RS 16n
489 Closed, then remote shutdown; awaiting acknowledgment.
493 .ne 2
495 \fB\fBCLOSE_WAIT\fR\fR
497 .RS 16n
498 Remote shutdown; waiting for the socket to close.
502 .ne 2
504 \fB\fBESTABLISHED\fR\fR
506 .RS 16n
507 Connection has been established.
511 .ne 2
513 \fB\fBFIN_WAIT_1\fR\fR
515 .RS 16n
516 Socket closed; shutting down connection.
520 .ne 2
522 \fB\fBFIN_WAIT_2\fR\fR
524 .RS 16n
525 Socket closed; waiting for shutdown from remote.
529 .ne 2
531 \fB\fBIDLE\fR\fR
533 .RS 16n
534 Idle, opened but not bound.
538 .ne 2
540 \fB\fBLAST_ACK\fR\fR
542 .RS 16n
543 Remote shutdown, then closed; awaiting acknowledgment.
547 .ne 2
549 \fB\fBLISTEN\fR\fR
551 .RS 16n
552 Listening for incoming connections.
556 .ne 2
558 \fB\fBSYN_RECEIVED\fR\fR
560 .RS 16n
561 Initial synchronization of the connection under way.
565 .ne 2
567 \fB\fBSYN_SENT\fR\fR
569 .RS 16n
570 Actively trying to establish connection.
574 .ne 2
576 \fB\fBTIME_WAIT\fR\fR
578 .RS 16n
579 Wait after close for remote shutdown retransmission.
582 .SS "\fISCTP Sockets\fR"
584 The possible state values for SCTP sockets are as follows:
586 .ne 2
588 \fB\fBCLOSED\fR\fR
590 .RS 21n
591 Closed. The socket is not being used.
595 .ne 2
597 \fB\fBLISTEN\fR\fR
599 .RS 21n
600 Listening for incoming associations.
604 .ne 2
606 \fB\fBESTABLISHED\fR\fR
608 .RS 21n
609 Association has been established.
613 .ne 2
615 \fB\fBCOOKIE_WAIT\fR\fR
617 .RS 21n
618 \fBINIT\fR has been sent to the peer, awaiting acknowledgment.
622 .ne 2
624 \fB\fBCOOKIE_ECHOED\fR\fR
626 .RS 21n
627 State cookie from the INIT-ACK has been sent to the peer, awaiting
628 acknowledgement.
632 .ne 2
634 \fB\fBSHUTDOWN_PENDING\fR\fR
636 .RS 21n
637 \fBSHUTDOWN\fR has been received from the upper layer, awaiting acknowledgement
638 of all outstanding \fBDATA\fR from the peer.
642 .ne 2
644 \fB\fBSHUTDOWN_SENT\fR\fR
646 .RS 21n
647 All outstanding data has been acknowledged in the \fBSHUTDOWN_SENT\fR state.
648 \fBSHUTDOWN\fR has been sent to the peer, awaiting acknowledgement.
652 .ne 2
654 \fB\fBSHUTDOWN_RECEIVED\fR\fR
656 .RS 21n
657 \fBSHUTDOWN\fR has been received from the peer, awaiting acknowledgement of all
658 outstanding \fBDATA\fR.
662 .ne 2
664 \fB\fBSHUTDOWN_ACK_SENT\fR\fR
666 .RS 21n
667 All outstanding data has been acknowledged in the \fBSHUTDOWN_RECEIVED\fR
668 state. \fBSHUTDOWN_ACK\fR has been sent to the peer.
671 .SS "Network Data Structures (Second Through Fifth Forms)"
673 The form of the display depends upon which of the \fB-g\fR, \fB-m\fR, \fB-p\fR,
674 or \fB-s\fR options you select.
676 .ne 2
678 \fB\fB-g\fR\fR
680 .RS 6n
681 Displays the list of multicast group membership.
685 .ne 2
687 \fB\fB-m\fR\fR
689 .RS 6n
690 Displays the memory usage, for example, STREAMS mblks.
694 .ne 2
696 \fB\fB-p\fR\fR
698 .RS 6n
699 Displays the net to media mapping table. For IPv4, the address resolution table
700 is displayed. See \fBarp\fR(8). For IPv6, the neighbor cache is displayed.
704 .ne 2
706 \fB\fB-s\fR\fR
708 .RS 6n
709 Displays the statistics for the various protocol layers.
714 The statistics use the MIB specified variables. The defined values for
715 \fBipForwarding\fR are:
717 .ne 2
719 \fB\fBforwarding (1)\fR\fR
721 .RS 21n
722 Acting as a gateway.
726 .ne 2
728 \fB\fBnot-forwarding (2)\fR\fR
730 .RS 21n
731 Not acting as a gateway.
736 The IPv6 and ICMPv6 protocol layers maintain per-interface statistics. If the
737 \fB-a\fR option is specified with the \fB-s\fR option, then the per-interface
738 statistics as well as the total sums are displayed. Otherwise, just the sum of
739 the statistics are shown.
741 For the second, third, and fourth forms of the command, you must specify at
742 least \fB-g\fR, \fB-p\fR, or \fB-s\fR. You can specify any combination of these
743 options. You can also specify \fB-m\fR (the fifth form) with any set of the
744 \fB-g\fR, \fB-p\fR, and \fB-s\fR options. If you specify more than one of these
745 options, \fBnetstat\fR displays the information for each one of them.
746 .SS "Interface Status (Sixth Form)"
748 The interface status display lists information for all current interfaces, one
749 interface per line. If an interface is specified using the \fB-I\fR option, it
750 displays information for only the specified interface.
752 The list consists of the interface name, \fBmtu\fR (maximum transmission unit,
753 or maximum packet size)(see \fBifconfig\fR(8)), the network to which the
754 interface is attached, addresses for each interface, and counter associated
755 with the interface. The counters show the number of input packets, input
756 errors, output packets, output errors, and collisions, respectively. For
757 Point-to-Point interfaces, the Net/Dest field is the name or address on the
758 other side of the link.
760 If the \fB-a\fR option is specified with either the \fB-i\fR option or the
761 \fB-I\fR option, then the output includes names of the physical interface(s),
762 counts for input packets and output packets for each logical interface, plus
763 additional information.
765 If the \fB-n\fR option is specified, the list displays the IP address instead
766 of the interface name.
768 If an optional \fIinterval\fR is specified, the output will be continually
769 displayed in \fIinterval\fR seconds until interrupted by the user or until
770 \fIcount\fR is reached. See OPERANDS.
772 The physical interface is specified using the \fB-I\fR option. When used with
773 the \fIinterval\fR operand, output for the \fB-I\fR option has the following
774 format:
776 .in +2
778 input    eri0          output        input          (Total)   output
779 packets  errs  packets errs  colls   packets  errs  packets  errs   colls
780 227681   0     659471  1     502     261331   0     99597    1      502
781 10       0     0       0     0       10       0     0        0      0
782 8        0     0       0     0       8        0     0        0      0
783 10       0     2       0     0       10       0     2        0      0
785 .in -2
788 If the input interface is not specified, the first interface of address family
789 \fBinet\fR or \fBinet6\fR will be displayed.
790 .SS "Routing Table (Seventh Form)"
792 The routing table display lists the available routes and the status of each.
793 Each route consists of a destination host or network, and a gateway to use in
794 forwarding packets. The \fIflags\fR column shows the status of the route. These
795 flags are as follows:
797 .ne 2
799 \fB\fBU\fR\fR
801 .RS 5n
802 Indicates route is \fBup\fR.
806 .ne 2
808 \fB\fBG\fR\fR
810 .RS 5n
811 Route is to a gateway.
815 .ne 2
817 \fB\fBH\fR\fR
819 .RS 5n
820 Route is to a host and not a network.
824 .ne 2
826 \fB\fBS\fR\fR
828 .RS 5n
829 Route was established using the \fB-setsrc\fR option.
833 .ne 2
835 \fB\fBD\fR\fR
837 .RS 5n
838 Route was created dynamically by a redirect.
843 If the \fB-a\fR option is specified, there will be routing entries with the
844 following flags:
846 .ne 2
848 \fB\fBA\fR\fR
850 .RS 5n
851 Combined routing and address resolution entries.
855 .ne 2
857 \fB\fBB\fR\fR
859 .RS 5n
860 Broadcast addresses.
864 .ne 2
866 \fB\fBL\fR\fR
868 .RS 5n
869 Local addresses for the host.
873 Interface routes are created for each interface attached to the local host; the
874 gateway field for such entries shows the address of the outgoing interface.
876 The \fBuse\fR column displays the number of packets sent using a combined
877 routing and address resolution (\fBA\fR) or a broadcast (\fBB\fR) route. For a
878 local (\fBL\fR) route, this count is the number of packets received, and for
879 all other routes it is the number of times the routing entry has been used to
880 create a new combined route and address resolution entry.
882 The \fIinterface\fR entry indicates the network interface utilized for the
883 route.
884 .SS "Multicast Routing Tables (Eighth Form)"
886 The multicast routing table consists of the virtual interface table and the
887 actual routing table.
888 .SS "DHCP Interface Information (Ninth Form)"
890 The \fBDHCP\fR interface information consists of the interface name, its
891 current state, lease information, packet counts, and a list of flags.
893 The states correlate with the specifications set forth in \fIRFC 2131\fR.
895 Lease information includes:
896 .RS +4
898 .ie t \(bu
899 .el o
900 when the lease began;
902 .RS +4
904 .ie t \(bu
905 .el o
906 when lease renewal will begin; and
908 .RS +4
910 .ie t \(bu
911 .el o
912 when the lease will expire.
916 The flags currently defined include:
918 .ne 2
920 \fB\fBBOOTP\fR\fR
922 .RS 11n
923 The interface has a lease obtained through \fBBOOTP\fR (IPv4 only).
927 .ne 2
929 \fB\fBBUSY\fR\fR
931 .RS 11n
932 The interface is busy with a \fBDHCP\fR transaction.
936 .ne 2
938 \fB\fBPRIMARY\fR\fR
940 .RS 11n
941 The interface is the primary interface. See \fBdhcpinfo\fR(1) and
942 \fBifconfig\fR(8).
946 .ne 2
948 \fB\fBFAILED\fR\fR
950 .RS 11n
951 The interface is in failure state and must be manually restarted.
955 Packet counts are maintained for the number of packets sent, the number of
956 packets received, and the number of lease offers declined by the \fBDHCP\fR
957 client. All three counters are initialized to zero and then incremented while
958 obtaining a lease. The counters are reset when the period of lease renewal
959 begins for the interface. Thus, the counters represent either the number of
960 packets sent, received, and declined while obtaining the current lease, or the
961 number of packets sent, received, and declined while attempting to obtain a
962 future lease.
963 .SH FILES
964 .ne 2
966 \fB\fB/etc/default/inet_type\fR\fR
968 .RS 26n
969 \fBDEFAULT_IP\fR setting
972 .SH SEE ALSO
974 \fBarp\fR(8), \fBdhcpinfo\fR(1), \fBdhcpagent\fR(8), \fBifconfig\fR(8),
975 \fBiostat\fR(8), \fBkstat\fR(8), \fBmibiisa\fR(8), \fBndp\fR(8), \fBsavecore\fR(8),
976 \fBvmstat\fR(8), \fBhosts\fR(4), \fBinet_type\fR(4), \fBnetworks\fR(4),
977 \fBprotocols\fR(4), \fBservices\fR(4), \fBattributes\fR(5), \fBdhcp\fR(5),
978 \fBkstat\fR(7D), \fBinet\fR(7P), \fBinet6\fR(7P)
981 Droms, R., \fIRFC 2131, Dynamic Host Configuration Protocol\fR, Network Working
982 Group, March 1997.
985 Droms, R. \fIRFC 3315, Dynamic Host Configuration Protocol for IPv6
986 (DHCPv6)\fR. Cisco Systems. July 2003.
987 .SH NOTES
989 When displaying interface information, \fBnetstat\fR honors the
990 \fBDEFAULT_IP\fR setting in \fB/etc/default/inet_type\fR. If it is set to
991 \fBIP_VERSION4\fR, then \fBnetstat\fR will omit information relating to IPv6
992 interfaces, statistics, connections, routes and the like.
994 However, you can override the \fBDEFAULT_IP\fR setting in
995 \fB/etc/default/inet_type\fR on the command-line. For example, if you have used
996 the command-line to explicitly request IPv6 information by using the
997 \fBinet6\fR address family or one of the IPv6 protocols, it will override the
998 \fBDEFAULT_IP\fR setting.
1000 If you need to examine network status information following a kernel crash, use
1001 the \fBmdb\fR(1) utility on the \fBsavecore\fR(8) output.
1003 The \fBnetstat\fR utility obtains TCP statistics from the system by opening
1004 \fB/dev/tcp\fR and issuing queries. Because of this, \fBnetstat\fR might
1005 display an extra, unused connection in \fBIDLE\fR state when reporting
1006 connection status.
1008 Previous versions of \fBnetstat\fR had undocumented methods for reporting
1009 kernel statistics published using the \fBkstat\fR(7D) facility. This
1010 functionality has been removed. Use \fBkstat\fR(8) instead.
1012 \fBnetstat\fR restricts its output to information that is relevant to the zone
1013 in which \fBnetstat\fR runs. (This is true for both shared-IP and exclusive-IP
1014 zones.)