常用端口及協定
常用端口及協定
常用協定端口号及配置指令 Post By:2009/11/23 11:52:00 [隻看該作者]
常用應用層協定的端口号
ftp(21) http(80) https(443) telnett(23) smtp(25) snmp(161) DNS(53)
ping
使用 ping可以測試計算機名和計算機的 ip 位址,驗證與遠端計算機的連接配接,通過将 icmp 回顯資料包發送到計算機并偵聽回顯回複資料包來驗證與一台或多台遠端計算機的連接配接,
該指令隻有在安裝了 tcp/ip 協定後才可以使用。 現在打開你的ms-dos(開始→程式→ms-dos),用win2000的朋友打開cmd.exe(這是win2000下的ms-dos,開始→程式→附件→"指令提示符"
或 開始→搜尋檔案或檔案夾→"填入cmd.exe",找到後輕按兩下運作就可以了。) 下面我們來看看他的指令:
ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j computer-list] | [-k computer-list]] [-w timeout] destination-list
參數
-t
ping 指定的計算機直到中斷。ctrl+c停止
-a
将位址解析為計算機名。例:c:\>ping -a
pinging china-hacker [] with 32 bytes of data:(china-hacker就是他的計算機名)
reply from : bytes=32 time<10ms ttl=128reply from : bytes=32 time<10ms ttl=128reply from : bytes=32 time<10ms ttl=128reply from :
bytes=32 time<10ms ttl=128
ping statistics for :packets: sent = 4, received = 4, lost = 0 (0% loss),approximate round trip times in milli-seconds:minimum = 0ms, maximum = 0ms, average
= 0ms
-n count
發送 count 指定的 echo 資料包數。預設值為 4。
-l length
發送包含由 length 指定的資料量的 echo 資料包。預設為 32 位元組;最大值是 65,527。
-f
在資料包中發送“不要分段”标志。資料包就不會被路由上的網關分段。
-i ttl
将“生存時間”字段設定為 ttl 指定的值。
-v tos
将“服務類型”字段設定為 tos 指定的值。
-r count
在“記錄路由”字段中記錄傳出和傳回資料包的路由。count 可以指定最少 1 台,最多 9 台計算機。
-s count
指定 count 指定的躍點數的時間戳。
-j computer-list
利用 computer-list 指定的計算機清單路由資料包。連續計算機可以被中間網關分隔(路由稀疏源)ip 允許的最大數量為 9。
-k computer-list
利用 computer-list 指定的計算機清單路由資料包。連續計算機不能被中間網關分隔(路由嚴格源)ip 允許的最大數量為 9。
-w timeout
指定逾時間隔,機關為毫秒。
destination-list
指定要 ping 的遠端計算機。
c:\>ping
pinging [32] with 32 bytes of data: (32 他的ip位址)
reply from 32:bytes=32 time=101ms ttl=243
reply from 32:bytes=32 time=100ms ttl=243
reply from 32:bytes=32 time=120ms ttl=243
reply from 32:bytes=32 time=120ms ttl=243
netstat
netstat –s
本選項能夠按照各個協定分别顯示其統計資料。如果我們的應用程式(如Web浏覽器)運作速度比較慢,或者不能顯示Web頁之類的資料,那麼我們就可以用本選項來檢視一下所顯示
的資訊。我們需要仔細檢視統計資料的各行,找到出錯的關鍵字,進而确定問題所在。
nets