Yuav ua li cas Siv Tracert Command hauv Windows

Cov txheej txheem:

Yuav ua li cas Siv Tracert Command hauv Windows
Yuav ua li cas Siv Tracert Command hauv Windows
Anonim

Cov lus txib tracert yog Command Prompt hais kom ua uas tau siv los qhia ob peb lub ntsiab lus hais txog txoj hauv kev uas lub pob khoom siv los ntawm lub khoos phis tawj lossis lub cuab yeej koj mus rau qhov twg koj tau teev tseg.

Koj kuj tuaj yeem qee zaum pom cov lus txib tracert hu ua txoj kab kev hais kom ua lossis cov lus txib traceroute.

Tracert, raws li nws tau piav qhia hauv qab no, siv rau Windows nkaus xwb, tab sis cov lus txib traceroute muaj rau Linux, ib yam nkaus.

Tracert Command Availability

Cov lus txib tracert muaj nyob rau hauv Command Prompt hauv txhua qhov Windows operating systems suav nrog Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, thiab cov laus dua ntawm Windows ib yam.

Qhov muaj ntawm qee qhov kev hloov pauv tracert thiab lwm cov lus txib tracert yuav txawv ntawm kev khiav haujlwm mus rau kev ua haujlwm.

Tracert Command Syntax

Yog tias koj paub yuav ua li cas nyeem cov lus txib, cov lus qhia rau tracert yog zoo nkauj ncaj nraim:

tracert [- d] [- h MaxHops] [- w TimeOut] [- 4] [- 6] phiaj [ /?

Image
Image
Tracert Command Options
- d qhov kev xaiv no tiv thaiv tracert los ntawm kev daws tus IP chaw nyob rau hostnames, feem ntau ua rau cov txiaj ntsig sai dua.
- h MaxHops qhov kev xaiv tracert no qhia txog qhov ntau tshaj plaws ntawm hops hauv kev tshawb nrhiav lub hom phiaj. Yog tias koj tsis qhia MaxHops, thiab lub hom phiaj tsis tau pom los ntawm 30 hops, tracert yuav tsum tsis saib.
- w TimeOut Koj tuaj yeem qhia lub sijhawm, hauv milliseconds, tso cai rau txhua qhov lus teb ua ntej lub sijhawm siv qhov kev xaiv tracert.
- 4 qhov kev xaiv no yuam cov tracert siv IPv4 nkaus xwb.
- 6 Qhov kev xaiv no yuam cov tracert siv IPv6 nkaus xwb.
target Nov yog lo lus uas peb, tsis hais tus IP chaw nyob lossis tus tswv tsev.
/? Siv cov kev pab hloov nrog cov lus txib tracert los qhia cov ncauj lus kom ntxaws txog cov lus txib ob peb xaiv.

Lwm cov kev xaiv tsawg dua siv rau cov lus txib tracert kuj muaj, suav nrog [- j HostList], [- R], thiab [- S SourceAddress]. Siv cov kev pab hloov nrog cov lus txib tracert kom paub ntau ntxiv ntawm cov kev xaiv no.

Txuag cov txiaj ntsig ntev ntawm cov lus txib tracert los ntawm kev xa cov lus txib tawm mus rau cov ntaub ntawv nrog tus neeg teb xov tooj rov qab.

Tracert Command Piv txwv


tracert 192.168.1.1

Hauv qhov piv txwv saum toj no, cov lus txib tracert yog siv los qhia txoj hauv kev los ntawm lub khoos phis tawj network uas cov lus txib tracert raug tua los ntawm lub network ntaus ntawv, qhov no, router ntawm lub network hauv zos, uas tau muab rau 192.168.1.1 IP chaw nyob.

Qhov tshwm sim ntawm qhov screen yuav zoo li no:


Txoj kev mus rau 192.168.1.1 tshaj qhov siab tshaj 30 hops

1 <1 ms <1 ms <1 ms 192.168.1.254

2 <1 ms <1 ms <1 ms 192.168.1.1Trace tiav.

Hauv qhov piv txwv no, koj tuaj yeem pom tias tracert pom cov cuab yeej siv network siv tus IP chaw nyob ntawm 192.168.1.254, cia peb hais lub network hloov, ua raws li qhov chaw, 192.168.1.1, router.


tracert www.google.com

Nrog cov lus txib tracert qhia saum toj no, peb tab tom thov tracert qhia peb txoj hauv kev los ntawm lub khoos phis tawj hauv zos txhua txoj hauv kev mus rau lub network ntaus ntawv nrog lub hostname www.google.com.


Tracing route to www.l.google.com [209.85.225.104]

tshaj 30 hops:

1 <1 ms <1 ms <1 ms 10.1.0.1

2 35 ms 19 ms 29 ms 98.245.140.1

9 3 1 mste -0-3.dnv.comcast.net [68.85.105.201…13 81 ms 76 ms 75 ms 209.85.241.37

14 84 ms 91 ms 87 ms 209.85.248.102

15 76 ms 112 ms 76 ms iy-f104.1e100.net [209.85.225.104

Trace tiav.

Hauv qhov piv txwv no, peb tuaj yeem pom tias tracert tau txheeb xyuas kaum tsib cov khoom siv hauv network nrog rau peb lub router ntawm 10.1.0.1 thiab txhua txoj hauv kev mus rau lub hom phiaj ntawm www.google.com, uas tam sim no peb paub siv pej xeem IP chaw nyob ntawm 209.85.225.104, ib qho ntawm Google ntau tus IP chaw nyob.

Hops 4 txog 12 raug tshem tawm saum toj no tsuas yog ua kom tus qauv yooj yim. Yog tias koj tab tom ua tiav qhov tracert tiag tiag, cov txiaj ntsig no yuav tshwm sim ntawm qhov screen.


tracert -d www.yahoo.com

Nrog rau qhov piv txwv tracert no, peb rov thov txoj hauv kev mus rau lub vev xaib, lub sijhawm no www.yahoo.com, tab sis tam sim no peb tau tiv thaiv tracert los ntawm kev daws cov hostnames los ntawm kev siv qhov kev xaiv -d.


Tracing route to any-fp.wa1.b.yahoo.com [209.191.122.70]

tshaj 30 hops:

1 <1 ms <1 ms <1 ms 10.1.0.1

2 29 ms 23 ms 20 ms 98.245.140.1

ms3 ms 14 ms 68.85.105.201…13 98 ms 77 ms 79 ms 209.191.78.13114 80 ms 88 ms 89 ms 68.142.193.1115 77 ms 79 ms 78 ms 209.191.122.70Trace tiav.

Peb tuaj yeem pom tias daim ntawv pov thawj tau txheeb xyuas kaum tsib lub xov tooj sib txuas nrog rau peb lub router ntawm 10.1.0.1 thiab txhua txoj hauv kev mus rau lub hom phiaj ntawm www.yahoo.com, uas peb tuaj yeem xav siv pej xeem IP chaw nyob ntawm 209.191.122.70.

Raws li koj tuaj yeem pom, tracert tsis daws cov npe hostnames lub sijhawm no, uas ua rau cov txheej txheem nce ntxiv.


tracert -h 3 lifewire.com > z:\tracertresults.txt

Nyob hauv qhov piv txwv kawg ntawm cov lus txib hauv Windows, peb siv -h los txwv cov hop suav rau 3, tab sis tsis txhob tso cov txiaj ntsig hauv Command Prompt, peb yuav siv > redirection tus neeg teb xov tooj xa nws tag nrho rau TXT cov ntaub ntawv nyob rau ntawm Z:, ib qho nyuaj tsav sab nraud.

Nov yog qee qhov piv txwv ntawm cov lus txib kawg no:


Tracing route to lifewire.com [151.101.66.114

over a maximum of 3 hops:

1 <1 ms <1 ms <1 ms testwifi.here [192.168.86.1]

2 1 ms 1 ms <1 ms 192.168.1.1

16 ms Giantwls-64-71-222-1.giantcomm.net [64.71.222.1]

Trace tiav.

Tracert Related Commands

Cov lus txib tracert feem ntau yog siv nrog lwm cov kev sib txuas lus ntsig txog Command Prompt cov lus txib xws li ping, ipconfig, netstat, nslookup, thiab lwm yam.

Txoj kev hais kom ua zoo ib yam li tracert tab sis kuj qhia txog kev sib txuas lus thiab cov ntaub ntawv poob.

Pom zoo: