-r 显示路由表。(和route print命令相同的功能)
0 n# n1 X; x* q! @& t -s 显示按协议统计信息。默认地,显示 IP、
9 _1 d# }: I' e$ U; |+ m IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 和 UDPv6 的统计信息;1 E$ Q( W) X! Y! Q1 U
-p 选项用于指定默认情况的子集。0 @4 }# Y& r/ R& N; X) I' i
-v 与 -b 选项一起使用时将显示包含于
$ L# k0 U8 r# a* ]! a5 R- d o 为所有可执行组件创建连接或监听端口的# j- [6 L8 {0 B* Y6 u
组件。" g& L( r y! S5 D
interval 重新显示选定统计信息,每次显示之间; Q {0 C, x0 Z1 J+ {
暂停时间间隔(以秒计)。按 CTRL+C 停止重新& Z% b# M5 }1 L4 b# y- B- E: n
显示统计信息。如果省略,netstat 显示当前3 f5 [. R4 K: p6 e0 |+ K
配置信息(只显示一次)
: G& Y, p8 K. b) o$ H4 ^Win2000' p' s! ^7 b5 o+ L: a5 [+ {6 D
C:\>netstat /?
3 r! D2 e' C% B' mDisplays protocol statistics and current TCP/IP network connections.& s. J/ W0 H/ G7 b& @8 ?7 h
NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval]9 f0 [3 s i. z$ ]
-a Displays all connections and listening ports.
- C; X* p/ e {" m: k8 m7 B" ? -e Displays Ethernet statistics. This may be combined with the -s
- O" h) N" q. A; l$ v! J, u1 @ option." j! Z$ R" j: x: C2 o2 d7 H% k7 d
-n Displays addresses and port numbers in numerical form.
) L* v9 v+ B+ a5 R* S -p proto Shows connections for the protocol specified by proto; proto
; _8 l5 S ?, L6 Z8 S may be TCP or UDP. If used with the -s option to display6 {# M4 R6 Y: A( U' P- D) M
per-protocol statistics, proto may be TCP, UDP, or IP.+ g0 s0 x" X- N, D
-r Displays the routing table.) W) { L, n# g9 }" H' k
-s Displays per-protocol statistics. By default, statistics are
5 @- e ~1 S+ i shown for TCP, UDP and IP; the -p option may be used to specify
- i* p! r" D# a a subset of the default.1 \) J3 T. {; O: `: g8 v
interval Redisplays selected statistics, pausing interval seconds5 Z$ D; G: _. J" c) z
between each display. Press CTRL+C to stop redisplaying1 ^7 u6 H6 m& v$ F" F$ k& j y
statistics. If omitted, netstat will print the current* C2 K7 }3 d& C
configuration information once. |