1.命令作用
打印网络连接、路由表、接口统计信息、网络地址转换连接和多播成员资格(Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships)
2.命令语法
usage: netstat [-vWeenNcCF] [<Af>] -r
netstat [-vWnNcaeol] [<Socket> ...]
netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s [-6tuw] } [delay]
<Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
<AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: inet
address families: inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25)
3.参数详解
OPTION:
- -r, --route,显示路由表信息
- -I, --interfaces=<Iface>,显示<Iface>的接口表
- -i, --interfaces,显示网络接口信息
- -g, --groups,显示组播组成员关系
- -s, --statistics,显示网络统计信息。包括网络接口、SNMP协议等
- -M, --masquerade,显示伪装连接
- -v, --verbose,显示详细信息
- -W, --wide,不要截断IP地址
- -n, --numeric,不解析名称(以数字形式显示地址和端

220

被折叠的 条评论
为什么被折叠?



