Ping命令的使用是此網(wǎng)速測(cè)試方法的基礎(chǔ),我們先來了解一下:
網(wǎng)速測(cè)試--Ping命令幫助說明
C:/Documents and Settings/Administrator>ping /? 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] [-R] [-S srcaddr] [-4] [-6] target_name Options: -tPing the specified host until stopped. To see statistics and continue - type Control-Break; To stop - type Control-C. -aResolve addresses to hostnames. -n count Number of echo requests to send. -l sizeSend buffer size. -fSet Don't Fragment flag in packet (IPv4-only). -i TTLTime To Live. -v TOSType Of Service (IPv4-only). -r count Record route for count hops (IPv4-only). -s count Timestamp for count hops (IPv4-only). -j host-list Loose source route along host-list (IPv4-only). -k host-list Strict source route along host-list (IPv4-only). -w timeout Timeout in milliseconds to wait for each reply. -RTrace round-trip path (IPv6-only). -S srcaddr Source address to use (IPv6-only). -4Force using IPv4. -6Force using IPv6. 網(wǎng)速測(cè)試--Ping命令詳解
使用 ping可以測(cè)試計(jì)算機(jī)名和計(jì)算機(jī)的 ip 地址,驗(yàn)證與遠(yuǎn)程計(jì)算機(jī)的連接,通過將 icmp 回顯數(shù)據(jù)包發(fā)送到計(jì)算機(jī)并偵聽回顯回復(fù)數(shù)據(jù)包來驗(yàn)證與一臺(tái)或多臺(tái)遠(yuǎn)程計(jì)算機(jī)的連接,該命令只有在安裝了 tcp/ip 協(xié)議后才可以使用. 現(xiàn)在打開你的ms-dos(開始→程序→ms-dos),用win2000的朋友打開cmd.exe(這是win2000下的ms-dos,開始→程序→附件→"命令提示符" 或 開始→搜索文件或文件夾→"填入cmd.exe",找到后雙擊運(yùn)行就可以了.) 下面我們來看看他的命令:
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 參數(shù)
-t
ping 指定的計(jì)算機(jī)直到中斷.ctrl+c停止
-a
將地址解析為計(jì)算機(jī)名.例:c:/>ping -a 127.0.0.1
pinging china-hacker [127.0.0.1] with 32 bytes of data:(china-hacker就是他的計(jì)算機(jī)名) reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from 127.0.0.1: bytes=32 time<10ms ttl=128reply from 127.0.0.1: bytes=32 time<10ms ttl=128 ping statistics for 127.0.0.1:packets: sent = 4, received = 4, lost = 0 (0% loss),approximate round trip times in milli-seconds:minimum = 0ms, maximum = 0ms, average = 0ms -n count 發(fā)送 count 指定的 echo 數(shù)據(jù)包數(shù).默認(rèn)值為 4.
-l length
發(fā)送包含由 length 指定的數(shù)據(jù)量的 echo 數(shù)據(jù)包.默認(rèn)為 32 字節(jié);最大值是 65,527.
-f
在數(shù)據(jù)包中發(fā)送"不要分段"標(biāo)志.數(shù)據(jù)包就不會(huì)被路由上的網(wǎng)關(guān)分段.
-i ttl
(責(zé)任編輯:武林網(wǎng))
新聞熱點(diǎn)
疑難解答
圖片精選