version 1.33, 2003/08/26 08:33:12 |
version 1.34, 2003/11/28 10:05:43 |
|
|
.Op Fl N Ar system |
.Op Fl N Ar system |
.Op Fl p Ar protocol |
.Op Fl p Ar protocol |
.Nm netstat |
.Nm netstat |
.Op Fl s |
.Op Fl a |
.Op Fl f Ar address_family |
.Op Fl f Ar address_family |
.Op Fl i |
.Op Fl i | I Ar interface |
.Op Fl I Ar Interface |
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
.Nm |
.Nm |
|
|
With the default display, |
With the default display, |
show the state of all sockets; normally sockets used by |
show the state of all sockets; normally sockets used by |
server processes are not shown. |
server processes are not shown. |
|
With the interface display (options |
|
.Fl I |
|
or |
|
.Fl i ) , |
|
show multicast addresses. |
.It Fl b |
.It Fl b |
With the interface display (option |
With the interface display (options |
|
.Fl I |
|
or |
.Fl i ) , |
.Fl i ) , |
show bytes in and out, instead of packet statistics. |
show bytes in and out, instead of packet statistics. |
.It Fl d |
.It Fl d |
With either interface display (option |
With either the interface display (options |
.Fl i |
.Fl I |
or an interval, as described below), |
or |
|
.Fl i ) |
|
or an interval (option |
|
.Fl w ) , |
show the number of dropped packets. |
show the number of dropped packets. |
.It Fl f Ar address_family |
.It Fl f Ar address_family |
Limit statistics or address control block reports to those |
Limit statistics or address control block reports to those |
|
|
.Pp |
.Pp |
.It Fl g |
.It Fl g |
Show information related to multicast (group address) routing. |
Show information related to multicast (group address) routing. |
By default, show the IP Multicast virtual-interface and routing tables. |
By default, show the IP multicast virtual-interface and routing tables. |
If the |
If the |
.Fl s |
.Fl s |
option is also present, show multicast routing statistics. |
option is also present, show multicast routing statistics. |
|
|
interval as described below. |
interval as described below. |
.Pp |
.Pp |
If the |
If the |
|
.Fl a |
|
option is also present, multicast addresses currently in use are shown |
|
for the given interface and for each IP interface address. |
|
Multicast addresses are shown on separate lines following the interface |
|
address with which they are associated. |
|
.Pp |
|
If the |
.Fl f Ar address_family |
.Fl f Ar address_family |
option (with the |
option (with the |
.Fl s |
.Fl s |
|
|
.It Fl q |
.It Fl q |
Only show interfaces that have seen packets (or bytes if |
Only show interfaces that have seen packets (or bytes if |
.Fl b |
.Fl b |
is specified) |
is specified). |
.It Fl r |
.It Fl r |
Show the routing tables. |
Show the routing tables. |
If the |
If the |
|
|
.Dq dot format , |
.Dq dot format , |
refer to |
refer to |
.Xr inet 3 . |
.Xr inet 3 . |
Unspecified, or |
Unspecified or |
.Dq wildcard |
.Dq wildcard |
addresses and ports appear as a single |
addresses and ports appear as a single |
.Dq \&* . |
.Sq * . |
If a local port number is registered as being in use for RPC by |
If a local port number is registered as being in use for RPC by |
.Xr portmap 8 , |
.Xr portmap 8 , |
its RPC service name or RPC service number will be printed in |
its RPC service name or RPC service number will be printed in |
|
|
3 RTF_PROTO3 Protocol specific routing flag #3. |
3 RTF_PROTO3 Protocol specific routing flag #3. |
B RTF_BLACKHOLE Just discard pkts (during updates). |
B RTF_BLACKHOLE Just discard pkts (during updates). |
C RTF_CLONING Generate new routes on use. |
C RTF_CLONING Generate new routes on use. |
c RTF_CLONED Cloned routes (generated from RTF_CLONING) |
c RTF_CLONED Cloned routes (generated from RTF_CLONING). |
D RTF_DYNAMIC Created dynamically (by redirect). |
D RTF_DYNAMIC Created dynamically (by redirect). |
G RTF_GATEWAY Destination requires forwarding by intermediary. |
G RTF_GATEWAY Destination requires forwarding by intermediary. |
H RTF_HOST Host entry (net otherwise). |
H RTF_HOST Host entry (net otherwise). |
|
|
The use field provides a count of the number of packets sent using that route. |
The use field provides a count of the number of packets sent using that route. |
The MTU entry shows the MTU associated with that route. |
The MTU entry shows the MTU associated with that route. |
This MTU value is used as the basis for the TCP maximum segment size (MSS). |
This MTU value is used as the basis for the TCP maximum segment size (MSS). |
The 'L' flag appended to the mtu value indicates that the value is |
The |
locked, and that path mtu discovery is turned off for that route. |
.Sq L |
|
flag appended to the MTU value indicates that the value is |
|
locked, and that path MTU discovery is turned off for that route. |
A |
A |
.Sq - |
.Sq - |
indicates that the MTU for this route has not been set, and a default |
indicates that the MTU for this route has not been set, and a default |
|
|
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr nfsstat 1 , |
.Xr nfsstat 1 , |
.Xr ps 1 , |
.Xr ps 1 , |
|
.Xr inet 3 , |
.Xr netintro 4 , |
.Xr netintro 4 , |
|
.Xr route 4 , |
.Xr hosts 5 , |
.Xr hosts 5 , |
.Xr networks 5 , |
.Xr networks 5 , |
.Xr protocols 5 , |
.Xr protocols 5 , |
.Xr services 5 , |
.Xr services 5 , |
.Xr iostat 8 , |
.Xr iostat 8 , |
|
.Xr portmap 8 , |
|
.Xr route 8 , |
.Xr trpt 8 , |
.Xr trpt 8 , |
.Xr vmstat 8 |
.Xr vmstat 8 |
.Sh HISTORY |
.Sh HISTORY |