NETSTAT(8) NETSTAT(8) netstat - netstat [address_family_options] [--tcp|-t] [--udp|-u] [--udplite|-U] [--sctp|-S] [--raw|-w] [--l2cap|-2] [--rfcomm|-f] [--listening|-l] [--all|-a] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--symbolic|-N] [--extend|-e[--extend|-e]] [--timers|-o] [--program|-p] [--verbose|-v] [--continuous|-c] [--wide|-W] netstat {--route|-r} [address_family_options] [--extend|-e[--extend|-e]] [--verbose|-v] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--interfaces|-i} [--all|-a] [--extend|-e[--extend|-e]] [--verbose|-v] [--program|-p] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--groups|-g} [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--masquerade|-M} [--extend|-e] [--numeric|-n] [--numeric-hosts] [--numeric-ports] [--numeric-users] [--continuous|-c] netstat {--statistics|-s} [--tcp|-t] [--udp|-u] [--udplite|-U] [--sctp|-S] [--raw|-w] netstat {--version|-V} netstat {--help|-h} address_family_options: [-4|--inet] [-6|--inet6] [--protocol={inet,inet6,unix,ipx,ax25,netrom,ddp,bluetooth, ... } ] [--unix|-x] [--inet|--ip|--tcpip] [--ax25] [--x25] [--rose] [--ash] [--bluetooth] [--ipx] [--netrom] [--ddp|--appletalk] [--econet|--ec] . netstat ss. netstat -r ip route. netstat -i ip -s link. netstat -g ip maddr. Netstat . : ( ) netstat . . --route, -r . route(8) . netstat -r route -e . --groups, -g IPv4 IPv6. --interfaces, -i . --masquerade, -M . --statistics, -s . --verbose, -v . . --wide, -W IP . . --numeric, -n . --numeric-hosts . --numeric-ports . --numeric-users . --protocol=family, -A ( ) . family (',') inet inet6 unix ipx ax25 netrom econet ddp bluetooth. --inet|-4 --inet6|-6 --unix|-x --ipx --ax25 --netrom --ddp --bluetooth. inet (Iv4) raw udp udplite tcp. bluetooth (Iv4) l2cap rfcomm. -c, --continuous netstat . -e, --extend . . -o, --timers . -p, --program PID . ( ). -l, --listening . ( .) -a, --all . --interfaces -F FIB. ( .) -C . (TCP, UDP, UDPLite, raw) Proto (tcp, udp, udpl, raw) . Recv-Q : . : 2.6.18 syn . Send-Q : . : 2.6.18 syn. . --numeric (-n) (FQDN) . . " ". . UDP UDPLite . : ESTABLISHED . SYN_SENT . SYN_RECV . FIN_WAIT1 . FIN_WAIT2 . TIME_WAIT . CLOSE . CLOSE_WAIT . LAST_ACK . . LISTEN . --listening (-l) --all (-a). CLOSING . UNKNOWN . (UID) . PID/ (PID) . --program . . IPX. TCP . timer(a/b/c). : off . on . keepalive . timewait . : a . b . c . Proto ( unix) . RefCnt ( ). SO_ACCEPTON ( ACC) SO_WAITDATA (W) SO_NOSPACE (N). SO_ACCECPTON . . Type : SOCK_DGRAM ( ). SOCK_STREAM (). SOCK_RAW . SOCK_RDM . SOCK_SEQPACKET . SOCK_PACKET . UNKNOWN - :-) : FREE LISTENING . --listening (-l) --all (-a). CONNECTING . CONNECTED . DISCONNECTING . (empty) . UNKNOWN . PID/ (PID) . . . IPX ( ) NET/ROM ( ) AX.25 ( ) /etc/services -- /proc -- proc . /proc/net/dev -- /proc/net/raw -- /proc/net/tcp -- TCP /proc/net/udp -- UDP /proc/net/udplite -- UDPLite /proc/net/igmp -- IGMP /proc/net/unix -- /proc/net/ipx -- IPX /proc/net/ax25 -- AX25 /proc/net/appletalk -- DDP (appletalk) /proc/net/nr -- NET/ROM /proc/net/route -- IP /proc/net/ax25_route -- AX25 /proc/net/ipx_route -- IPX /proc/net/nr_nodes -- NET/ROM /proc/net/nr_neigh -- NET/ROM /proc/net/ip_masquerade -- /sys/kernel/debug/bluetooth/l2cap -- Bluetooth L2CAP /sys/kernel/debug/bluetooth/rfcomm -- Bluetooth /proc/net/snmp -- route(8), ifconfig(8), iptables(8), proc(5), ss(8), ip(8) . . netstat Fred Baumgarten Matt Welsh . Alan Cox Tuan Hoang . net-tools Bernd Eckenfels . UDPLite Brian Micek 3 . . : . net-tools 7 2014 NETSTAT(8)