会计考友 发表于 2012-8-2 08:55:16

2012计算机软件水平考试:网络管理员须掌握的常用命令9

netstat -n——显示所有已建立的有效连接。
    微软公司故意将这个功能强大的命令隐藏起来是因为它对于普通用户来说有些复杂。我们已经知道:Netstat它可以用来获得你的系统网络连接的信息(使用的端口,在使用的协议等 ),收到和发出的数据,被连接的远程系统的端口,Netstat在内存中读取所有的网络信息。
    在Internet RFC标准中,Netstat的定义是: Netstat是在内核中访问网络及相关信息的程序,它能提供TCP连接,TCP和UDP监听,进程内存管理的相关报告。
    对于好奇心极强的人来说,紧紧有上面的理论是远远不够的,接下来我们来详细的解释一下各个参数的使用,看看执行之后会发生什么,显示的信息又是什么意思,好了,废话不说了,让我们一起来实践一下吧:)
C:\>netstat -a
Active Connections
ProtoLocal Address          Foreign Address      State
TCP    Eagle:ftp            Eagle:0                LISTENING
TCP    Eagle:telnet         Eagle:0                LISTENING
TCP    Eagle:smtp             Eagle:0                LISTENING
TCP    Eagle:http             Eagle:0                LISTENING
TCP    Eagle:epmap            Eagle:0                LISTENING
TCP    Eagle:https            Eagle:0                LISTENING
TCP    Eagle:microsoft-ds   Eagle:0                LISTENING
TCP    Eagle:1030             Eagle:0                LISTENING
TCP    Eagle:6059             Eagle:0                LISTENING
TCP    Eagle:8001             Eagle:0                LISTENING
TCP    Eagle:8005             Eagle:0                LISTENING
TCP    Eagle:8065             Eagle:0                LISTENING
TCP    Eagle:microsoft-ds   localhost:1031         ESTABLISHED
TCP    Eagle:1031             localhost:microsoft-dsESTABLISHED
TCP    Eagle:1040             Eagle:0                LISTENING
TCP    Eagle:netbios-ssn      Eagle:0                LISTENING
TCP    Eagle:1213             218.85.139.65:9002   CLOSE_WAIT
TCP    Eagle:2416             219.133.63.142:https   CLOSE_WAIT
TCP    Eagle:2443             219.133.63.142:https   CLOSE_WAIT
TCP    Eagle:2907             192.168.1.101:2774   CLOSE_WAIT
TCP    Eagle:2916             192.168.1.101:telnet   ESTABLISHED
TCP    Eagle:2927             219.137.227.10:4899    TIME_WAIT
TCP    Eagle:2928             219.137.227.10:4899    TIME_WAIT
TCP    Eagle:2929             219.137.227.10:4899    ESTABLISHED
TCP    Eagle:3455             218.85.139.65:9002   ESTABLISHED
TCP    Eagle:netbios-ssn      Eagle:0                LISTENING
UDP    Eagle:microsoft-ds   *:*
UDP    Eagle:1046             *:*
UDP    Eagle:1050             *:*
UDP    Eagle:1073             *:*
UDP    Eagle:1938             *:*
UDP    Eagle:2314             *:*
UDP    Eagle:2399             *:*
UDP    Eagle:2413             *:*
UDP    Eagle:2904             *:*
UDP    Eagle:2908             *:*
UDP    Eagle:3456             *:*
UDP    Eagle:4000             *:*
UDP    Eagle:4001             *:*
UDP    Eagle:6000             *:*
UDP    Eagle:6001             *:*
UDP    Eagle:6002             *:*
UDP    Eagle:6003             *:*
UDP    Eagle:6004             *:*
UDP    Eagle:6005             *:*
UDP    Eagle:6006             *:*
UDP    Eagle:6007             *:*
UDP    Eagle:6008             *:*
UDP    Eagle:6009             *:*
UDP    Eagle:6010             *:*
UDP    Eagle:6011             *:*
UDP    Eagle:1045             *:*
UDP    Eagle:1051             *:*
UDP    Eagle:netbios-ns       *:*
UDP    Eagle:netbios-dgm      *:*
UDP    Eagle:netbios-ns       *:*
UDP    Eagle:netbios-dgm      *:*
页: [1]
查看完整版本: 2012计算机软件水平考试:网络管理员须掌握的常用命令9