ping命令全集

來源:互聯網
上載者:User

這是TCP/IP協議中最有用的命令之一
它給另一個系統發送一系列的資料包,該系統本身又發回一個響應,這條公用程式對尋找遠程主機很有用,它返回的結果表示是否能到達主機,宿主機發送一個返回資料包需要多長時間。
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] [-k host-list]]
[-w timeout] destination-list

Options:
-t Ping the specifed host until interrupted.(除非人為中止,否則一直ping下去)
-a Resolve addresses to hostnames.(把IP轉為主機名稱)
-n count Number of echo requests to send.(響應請求的數量)
-l size Send buffer size.(封包的大小)
-f Set Dont Fragment flag in packet.(資訊包中無片段)
-i TTL Time To Live.(時間)
-v TOS Type Of Service.(服務類型)
-r count Record route for count hops.
-s count Timestamp for count hops.
-j host-list Loose source route along host-list.
-k host-list Strict source route along host-list.(較嚴格的……唉,怎麼譯好……算了,放著吧)
-w timeout Timeout in milliseconds to wait for each reply.(timeout的時間)
比如大家可能都知道的一個命令 # ping -f -s 65000 ***.***.***.***或者前階段大家所謂ping死黴國佬時所用的命令(當然這樣只會造成我方自己的網路阻塞)。
其實這個命令主要是用來看對方應答的速度,如果怎麼ping 得到的結果都是request time out。那恐怕你根本就不用你去找這台主機了,它不在你的射程之內。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.