4 Txoj hauv Kev Ntsuam Xyuas Kev Sib Txuas (Ping) Lwm Tus IP

Cov txheej txheem:

4 Txoj hauv Kev Ntsuam Xyuas Kev Sib Txuas (Ping) Lwm Tus IP
4 Txoj hauv Kev Ntsuam Xyuas Kev Sib Txuas (Ping) Lwm Tus IP

Video: 4 Txoj hauv Kev Ntsuam Xyuas Kev Sib Txuas (Ping) Lwm Tus IP

Video: 4 Txoj hauv Kev Ntsuam Xyuas Kev Sib Txuas (Ping) Lwm Tus IP
Video: Tsis Muaj Peev Xwm Yuav Ua Li Cas 2024, Kaum ib hlis
Anonim

Cov lus txib Ping tau siv los ntsuas qhov kev sib txuas ceev mus rau lwm lub network nodes. Koj tuaj yeem siv nws los qhia koj lub zog, nrug deb, thiab muaj kev sib txuas, ob leeg ntawm koj tus kheej lub network thiab hauv is taws nem. Ua raws phau ntawv qhia no kom siv Ping hais kom ua ntawm txhua qhov system.

Kauj ruam

Txoj Kev 1 ntawm 4: Ping ntawm Windows, Mac OS X, thiab Linux

Ping tus IP Chaw Nyob Kauj Ruam 1
Ping tus IP Chaw Nyob Kauj Ruam 1

Kauj Ruam 1. Qhib Command Prompt lossis Terminal

Txhua lub kaw lus ua haujlwm muaj kab hais kom ua interface rau ua tiav Ping cov lus txib. Cov lus txib Ping yog pom zoo yuav luag zoo ib yam ntawm txhua lub tshuab.

  • Yog tias siv Windows, qhib Command Prompt. Nyem rau Start button thiab sau cmd rau hauv Search field. Windows 8 cov neeg siv tuaj yeem sau ib ntus "cmd" ntawm Start screen. Nias Sau kom pib Command Prompt.
  • Yog tias siv Mac OS X, qhib Terminal. Qhib Cov Ntawv Thov Cov Ntawv, tom qab ntawv Utilities nplaub tshev. Xaiv Terminals.
  • Yog tias siv Linux, qhib Telnet/Terminal qhov rai. Daim ntawv thov no feem ntau pom muaj nyob hauv Cov Ntawv Txuas Ntxiv lossis hauv daim ntawv thov npe.

    Ntawm Ubuntu, koj tuaj yeem siv qhov luv Ctrl+Alt+T los qhib lub davhlau ya nyob twg

Ping tus IP Chaw Nyob Kauj Ruam 2
Ping tus IP Chaw Nyob Kauj Ruam 2

Kauj ruam 2. Nkag mus rau Ping hais kom ua

Ntaus ping hostname lossis ping IP chaw nyob.

  • Tus tswv tsev feem ntau yog lub vev xaib chaw nyob. Hloov lub hostname nrog lub vev xaib lossis server uas koj xav sim. Piv txwv, txhawm rau sim wikiHow lub vev xaib tseem ceeb, ntaus ping www.wikihow.com.
  • Tus IP chaw nyob yog lub khoos phis tawj qhov chaw nyob ntawm ib lub network, nyob hauv ib lub network lossis hauv internet. Yog tias koj paub tus IP chaw nyob uas koj xav sim, hloov tus IP chaw nyob nrog nws. Piv txwv, txhawm rau ntsuas tus IP chaw nyob 192.168.1.1, ntaus ping 192.168.1.1.
  • Txhawm rau sim koj lub PC, ntaus ping 127.0.0.1.
Ping tus IP Chaw Nyob Kauj Ruam 3
Ping tus IP Chaw Nyob Kauj Ruam 3

Kauj Ruam 3. Nias Sau kom pom qhov ping tso tawm

Qhov tshwm sim yuav pom hauv qab kab lus hais kom ua tam sim no. Saib hauv qab no seb yuav nyeem cov zis li cas.

Txoj Kev 2 ntawm 4: Xeem nrog Network Utility ntawm Mac OS X

569520 4
569520 4

Kauj Ruam 1. Qhib Network Utility

Qhib daim ntawv thov thiab xaiv Utilities. Nrhiav Network Utility.

569520 5
569520 5

Kauj Ruam 2. Nyem rau Ping tab

Qhia meej tus tswv lub npe lossis tus IP chaw nyob.

  • Tus tswv tsev feem ntau yog lub vev xaib chaw nyob. Hloov lub hostname nrog lub vev xaib lossis server uas koj xav sim. Piv txwv, txhawm rau sim wikiHow lub vev xaib tseem ceeb, ntaus ping www.wikihow.com.
  • Tus IP chaw nyob yog lub khoos phis tawj qhov chaw nyob ntawm ib lub network, nyob hauv ib lub network lossis hauv internet. Piv txwv, txhawm rau ntsuas tus IP chaw nyob 192.168.1.1, ntaus ping 192.168.1.1.
569520 6
569520 6

Kauj Ruam 3. Teev tus lej pings koj xav xa

Kev ntsuas zoo feem ntau tau txais tsuas yog 4-6 pings. Nyem Ping thaum koj npaj txhij. Cov zis yuav tshwm rau hauv qab ntawm lub qhov rais.

Txoj Kev 3 ntawm 4: Nyeem Ping Tso Tawm

Ping tus IP Chaw Nyob Kauj Ruam 7
Ping tus IP Chaw Nyob Kauj Ruam 7

Kauj Ruam 1. Nyeem thawj kab

Thawj kab hais qhia kom ua dab tsi. Kab no rov hais dua qhov chaw nyob uas koj nkag mus thiab qhia ntau npaum li cas cov ntaub ntawv raug xa mus. Piv txwv li:

Ping tus IP Chaw Nyob Kauj Ruam 8
Ping tus IP Chaw Nyob Kauj Ruam 8

Kauj Ruam 2. Nyeem cov ntsiab lus tso tawm

Cov lus txib Ping yog ua tiav yuav tsim kab uas qhia txog qhov chaw nyob ntev npaum li cas los teb. TTL qhia tus lej ntawm kev dhia uas tshwm sim thaum txheej txheem xa cov ntawv. Tus lej tsawg dua, cov routers ntau pob ntawv hla dhau. Lub sijhawm yog ntev npaum li cas qhov kev sib txuas nyob hauv milliseconds:

Teb los ntawm 173.203.142.5: bytes = 32 lub sij hawm = 102ms TTL = 48

Teb los ntawm 173.203.142.5: bytes = 32 lub sij hawm = 105ms TTL = 48

Teb los ntawm 173.203.142.5: bytes = 32 lub sij hawm = 105ms TTL = 48

Teb los ntawm 173.203.142.5: bytes = 32 lub sij hawm = 108ms TTL = 48

Koj tuaj yeem nias Ctrl+C kom tsis txhob ping

Ping tus IP Chaw Nyob Kauj Ruam 9
Ping tus IP Chaw Nyob Kauj Ruam 9

Kauj Ruam 3. Nyeem cov ntsiab lus

Cov ntsiab lus ntawm cov txiaj ntsig yuav tshwm tom qab ua haujlwm tiav. Pob ntawv poob (Poob) txhais tau tias koj qhov kev txuas mus rau qhov chaw nyob qhov chaw tsis txaus ntseeg, thiab cov ntaub ntawv poob thaum lub sijhawm hloov chaw. Cov ntsiab lus no tseem qhia lub sijhawm sib txuas nruab nrab:

Ping txheeb cais rau 173.203.142.5:

Pob: Xa = 4, Tau Txais = 4, Poob = 0 (0% poob), Kwv yees li ncig ncig lub sijhawm hauv milli-seconds:

Yam tsawg kawg = 102ms, Siab tshaj = 108ms, Nruab nrab = 105ms

Txoj Kev 4 ntawm 4: Kev daws teeb meem Ping hais kom ua tsis tau

Ping tus IP Chaw Nyob Kauj Ruam 10
Ping tus IP Chaw Nyob Kauj Ruam 10

Kauj Ruam 1. Txheeb xyuas koj cov ntawv

Ib qho ntawm cov lus ceeb toom yuam kev feem ntau yog:

Qhov no txhais tau tias koj tau sau yuam kev lub npe hostname.

  • Sim retyping los kho nws. Yog tias qhov teeb meem txuas ntxiv, rov ua dua nrog lub npe hostname uas paub zoo, xws li tshawb nrhiav lub vev xaib lossis xov xwm. Yog tias qhov tshwm sim yog "Tsis paub tus tswv tsev," qhov teeb meem feem ntau yuav nrog lub npe sau npe server chaw nyob.
  • Kuaj siv tus tswv IP chaw nyob hloov lub npe (piv txwv li 173.203.142.5). Yog tias qhov no ua tiav ces qhov chaw nyob ntawm lub npe sau npe server tsis raug lossis nkag tsis tau lossis poob qis.
Ping tus IP Chaw Nyob Kauj Ruam 11
Ping tus IP Chaw Nyob Kauj Ruam 11

Kauj Ruam 2. Txheeb xyuas koj qhov kev sib txuas

Lwm cov lus yuam kev yog:

sendto: Tsis muaj txoj hauv kev rau host

Qhov no txhais tau tias qhov chaw nyob ntawm rooj vag tsis raug lossis kev sib txuas los ntawm koj lub PC tsis ua haujlwm.

  • Ping 127.0.0.1: qhov no yog koj li PC. Yog tias qhov no ua tsis tiav, TCP/IP tsis ua haujlwm tau zoo, thiab lub network adapter yuav tsum tau teeb tsa dua.
  • Txheeb xyuas qhov txuas tsis txuas lossis txuas ntawm lub PC mus rau lub router, tshwj xeeb tshaj yog tias kev sib txuas yav dhau los ua haujlwm.
  • Feem ntau lub PC network cov chaw nres nkoj muaj lub teeb pom kev qhia tias muaj kev sib txuas zoo, thiab lwm lub teeb nyem uas qhia cov ntaub ntawv raug xa mus. Thaum cov lus txib ping xa cov pob ntawv txog li 1 ib pliag, koj yuav pom cov ntaub ntawv teeb nyem.
  • Txheeb xyuas tias lub router muaj lub teeb pom kev zoo (thiab tsis muaj qhov ua yuam kev), suav nrog qhov taw qhia qhia kev sib txuas zoo rau koj lub PC. Yog tias qhov ntsuas qhov yuam kev nyob, ua raws kab ntawv los ntawm lub PC mus rau lub router kom ntseeg tau tias nws tau txuas nrog kom raug, lossis tiv toj rau kab lossis tus muab kev pabcuam dav yog tias tsim nyog.

Lub tswv yim

  • Cov kev xaiv muaj nyob ntawm qhov hais kom ua. Nov yog qee qhov kev xaiv muaj:

    • -c Tag Nrho. Xa tus naj npawb ntawm cov pob ntawv ces nres. Lwm txoj hauv kev kom tsis txhob ping yog ntaus [ctrl] -C. Qhov kev xaiv no yooj yim rau cov ntawv sau uas tshawb xyuas tus cwj pwm network.
    • -t Ping kom txog thaum nws nres ([ctrl] -C).
    • -W Sijhawm Tawm. Tos rau cov lus teb ua ntej cov lus tas sijhawm lossis ploj mus, hauv milliseconds. Pings nrog ncua sij hawm ntev dua tuaj yeem qhia txog teeb meem latency. ping -w 10000. qhov no feem ntau tsuas yog pab nrog kev ua haujlwm ntau dua ntawm cov xov tooj ntawm tes, satellite lossis lwm yam kev sib txuas lus siab.
    • -n Cov lej tso tawm nkaus xwb. Siv qhov no kom tsis txhob hu rau "nameserver".
    • -p Txawv. Tus qauv yog txoj hlua ntawm hexadecimal tus lej txhawm rau sau qhov kawg ntawm pob ntawv. Qhov no tsis tshua muaj txiaj ntsig yog tias koj xav tias qhov teeb meem yog nrog cov ntaub ntawv.
    • -R Siv Cov Ntaub Ntawv IP Txoj Kev Xaiv kom qhia meej tias txoj hauv kev ping pob ntawv siv. Tus tswv tsev yuav tsis muab cov ntaub ntawv no.
    • -r Hla cov lus qhia kev. Siv qhov no thaum koj xav tias muaj teeb meem kev mus thiab ping tsis tuaj yeem nrhiav txoj hauv kev mus rau lub hom phiaj. Qhov no tsuas ua haujlwm rau cov tswv uas tuaj yeem mus ncaj qha yam tsis siv lub router.
    • -s Pob ntawv loj. Hloov pob loj. Txheeb xyuas cov pob ntawv loj heev uas yuav tsum tau muab faib ua pawg.
    • -V Cov ncauj lus kom ntxaws (hais lus). Nta cov pob ICMP ntxiv uas muab cov ntaub ntawv ntxaws.
    • -f Dej nyab (dej nyab). Xa pob kom sai li sai tau. Nws tau siv los hais txog kev sim ua haujlwm network thiab yuav tsum zam.
    • -l Ua ntej tshaj. Xa cov ntawv ntim ua ntej kom sai li sai tau, tom qab ntawd nkag mus rau tus cwj pwm ib txwm muaj. Zoo rau xam seb muaj pes tsawg pob ntawv uas lub router muaj peev xwm tuav tau, ua qhov zoo rau kev kuaj xyuas teeb meem uas tsuas yog tshwm sim nrog qhov loj me ntawm TCP qhov rai.
    • -? Pab. Siv qhov kev xaiv no kom pom cov npe tiav ntawm cov kev xaiv thiab cov syntax rau siv Ping.
  • Vim li cas kuv thiaj yuav tsum siv ping? Ping (npe tom qab lub nkoj submarine qhov chaw nyob) siv cov pob ntawv yooj yim tshaj plaws. Cov lus teb no yog ua los ntawm kev sib txuas lus sib txuas (TCP/IP) feem ntawm Kev Ua Haujlwm. Ping tsis xav tau ib daim ntawv thov, nkag mus tsis tau cov ntaub ntawv, tsis xav tau kev teeb tsa thiab yuav luag tsis muaj kev cuam tshuam rau lwm yam haujlwm. Ping tsis xav tau txhua qhov kho vajtse, rooj vag, routers, firewalls, npe server thiab cov servers nruab nrab kom ua haujlwm. Yog tias ping ua tiav tab sis koj tsis tuaj yeem nkag mus rau lub hom phiaj tus tswv nrog browser lossis lwm yam ntawv thov, qhov teeb meem feem ntau yuav tsis nrog koj.
  • Thaum twg yog lub sijhawm siv ping? Raws li nrog txhua yam cuab yeej kuaj mob, lub sijhawm zoo tshaj plaws los siv ping yog thaum lub network teeb tsa ua haujlwm, yog li koj nkag siab tias kev teeb tsa yuav tsum ua haujlwm li cas. Koj tuaj yeem kuaj lub PC koj tus kheej siv "ping -c5 127.0.0.1". Thaum xub teeb lub PC, hloov lub network. Yog tias koj tsis tuaj yeem siv internet, siv ping txhawm rau txheeb xyuas cov cuab yeej thiab teeb tsa Koj.

Pom zoo: