xref: /freebsd/usr.sbin/traceroute6/traceroute6.8 (revision ba09352b73238bb4f1ca8586aab95cb2d9544bdc)
1615f49baSDavid Malone.\"	$KAME: traceroute6.8,v 1.10 2004/06/06 12:35:15 suz Exp $
233841545SHajimu UMEMOTO.\"
37d56d374SYoshinobu Inoue.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
47d56d374SYoshinobu Inoue.\" All rights reserved.
57d56d374SYoshinobu Inoue.\"
67d56d374SYoshinobu Inoue.\" Redistribution and use in source and binary forms, with or without
77d56d374SYoshinobu Inoue.\" modification, are permitted provided that the following conditions
87d56d374SYoshinobu Inoue.\" are met:
97d56d374SYoshinobu Inoue.\" 1. Redistributions of source code must retain the above copyright
107d56d374SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer.
117d56d374SYoshinobu Inoue.\" 2. Redistributions in binary form must reproduce the above copyright
127d56d374SYoshinobu Inoue.\"    notice, this list of conditions and the following disclaimer in the
137d56d374SYoshinobu Inoue.\"    documentation and/or other materials provided with the distribution.
147d56d374SYoshinobu Inoue.\" 3. Neither the name of the project nor the names of its contributors
157d56d374SYoshinobu Inoue.\"    may be used to endorse or promote products derived from this software
167d56d374SYoshinobu Inoue.\"    without specific prior written permission.
177d56d374SYoshinobu Inoue.\"
187d56d374SYoshinobu Inoue.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
197d56d374SYoshinobu Inoue.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
207d56d374SYoshinobu Inoue.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
217d56d374SYoshinobu Inoue.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
227d56d374SYoshinobu Inoue.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
237d56d374SYoshinobu Inoue.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
247d56d374SYoshinobu Inoue.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
257d56d374SYoshinobu Inoue.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
267d56d374SYoshinobu Inoue.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
277d56d374SYoshinobu Inoue.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
287d56d374SYoshinobu Inoue.\" SUCH DAMAGE.
297d56d374SYoshinobu Inoue.\"
300a49be72SLexi Winter.Dd February 2, 2024
317d56d374SYoshinobu Inoue.Dt TRACEROUTE6 8
32a14efaa6SAlexey Zelkin.Os
337d56d374SYoshinobu Inoue.\"
347d56d374SYoshinobu Inoue.Sh NAME
357d56d374SYoshinobu Inoue.Nm traceroute6
36615f49baSDavid Malone.Nd "print the route IPv6 packets will take to a network node"
377d56d374SYoshinobu Inoue.\"
387d56d374SYoshinobu Inoue.Sh SYNOPSIS
39e97407b4SRuslan Ermilov.Nm
40de68a0daSKris Kennaway.Bk -words
410c2218d1SJose Luis Duran.Op Fl adEIlnNrSTUv
42de68a0daSKris Kennaway.Ek
43de68a0daSKris Kennaway.Bk -words
44*ba09352bSJose Luis Duran.Op Fl A Ar as_server
45*ba09352bSJose Luis Duran.Ek
46*ba09352bSJose Luis Duran.Bk -words
47de68a0daSKris Kennaway.Op Fl f Ar firsthop
48de68a0daSKris Kennaway.Ek
49de68a0daSKris Kennaway.Bk -words
50de68a0daSKris Kennaway.Op Fl g Ar gateway
51de68a0daSKris Kennaway.Ek
52de68a0daSKris Kennaway.Bk -words
537d56d374SYoshinobu Inoue.Op Fl m Ar hoplimit
54de68a0daSKris Kennaway.Ek
55de68a0daSKris Kennaway.Bk -words
567d56d374SYoshinobu Inoue.Op Fl p Ar port
57de68a0daSKris Kennaway.Ek
58de68a0daSKris Kennaway.Bk -words
597d56d374SYoshinobu Inoue.Op Fl q Ar probes
60de68a0daSKris Kennaway.Ek
61de68a0daSKris Kennaway.Bk -words
627d56d374SYoshinobu Inoue.Op Fl s Ar src
63de68a0daSKris Kennaway.Ek
64de68a0daSKris Kennaway.Bk -words
65c7090651SMichael Tuexen.Op Fl t Ar tclass
66c7090651SMichael Tuexen.Ek
67c7090651SMichael Tuexen.Bk -words
687d56d374SYoshinobu Inoue.Op Fl w Ar waittime
69de68a0daSKris Kennaway.Ek
70de68a0daSKris Kennaway.Bk -words
71de68a0daSKris Kennaway.Ar target
72de68a0daSKris Kennaway.Op Ar datalen
73de68a0daSKris Kennaway.Ek
747d56d374SYoshinobu Inoue.\"
757d56d374SYoshinobu Inoue.Sh DESCRIPTION
762410103cSRuslan ErmilovThe
77615f49baSDavid Malone.Nm
782410103cSRuslan Ermilovutility
79615f49baSDavid Maloneuses the IPv6 protocol hop limit field to elicit an ICMPv6 TIME_EXCEEDED
80615f49baSDavid Maloneresponse from each gateway along the path to some host.
81615f49baSDavid Malone.Pp
82615f49baSDavid MaloneThe only mandatory parameter is the destination host name or IPv6 address.
83aa96470cSMichael TuexenThe default probe datagram carries 20 bytes of payload,
84615f49baSDavid Malonein addition to the IPv6 header.
85615f49baSDavid MaloneThe size of the payload can be specified by giving a length
862410103cSRuslan Ermilov(in bytes)
87615f49baSDavid Maloneafter the destination host name.
88615f49baSDavid Malone.Pp
89615f49baSDavid MaloneOther options are:
907d56d374SYoshinobu Inoue.Bl -tag -width Ds
91d429d720SHajimu UMEMOTO.It Fl a
92d429d720SHajimu UMEMOTOTurn on AS# lookups for each hop encountered.
93d429d720SHajimu UMEMOTO.It Fl A Ar as_server
94d429d720SHajimu UMEMOTOTurn on AS# lookups and use the given server instead of the default.
957d56d374SYoshinobu Inoue.It Fl d
967d56d374SYoshinobu InoueDebug mode.
970c2218d1SJose Luis Duran.It Fl E
980c2218d1SJose Luis DuranDetect ECN bleaching.
990c2218d1SJose Luis DuranSet the
1000c2218d1SJose Luis Duran.Em IPTOS_ECN_ECT1
1010c2218d1SJose Luis DuranExplicit Congestion Notification (ECN) bits
1020c2218d1SJose Luis Duran.Pq Dv 01 ,
1030c2218d1SJose Luis Duranand report if the hop has bleached
1040c2218d1SJose Luis Duran.Pq Dv 00
1050c2218d1SJose Luis Duranor mangled
1060c2218d1SJose Luis Duran.Pq Dv 10
1070c2218d1SJose Luis Duranthem, or if it is experiencing congestion
1080c2218d1SJose Luis Duran.Pq Dv 11 .
1090c2218d1SJose Luis DuranOtherwise, report that it passed the bits appropriately.
1100c2218d1SJose Luis DuranIf
1110c2218d1SJose Luis Duran.Fl t
1120c2218d1SJose Luis Duranis also specified, the corresponding ECN bits will be replaced.
113de68a0daSKris Kennaway.It Fl f Ar firsthop
114de68a0daSKris KennawaySpecify how many hops to skip in trace.
115de68a0daSKris Kennaway.It Fl g Ar gateway
1166d6d6c36SGordon BerglingSpecify intermediate gateway.
1176d6d6c36SGordon BerglingPlease note that
118aa96470cSMichael Tuexen.Nm
119aa96470cSMichael Tuexentries to use routing headers.
12084a1a4cfSHajimu UMEMOTO.It Fl I
12184a1a4cfSHajimu UMEMOTOUse ICMP6 ECHO instead of UDP datagrams.
1227d56d374SYoshinobu Inoue.It Fl l
1230a49be72SLexi WinterIgnored for backward compatibility.
124c5491668SPav Lucistnik.It Fl m Ar hoplimit
125c5491668SPav LucistnikSpecify maximum hoplimit, up to 255.
12644aaf08bSMichael TuexenThe default is the value of the
12744aaf08bSMichael Tuexen.Va net.inet6.ip6.hlim
12844aaf08bSMichael Tuexen.Xr sysctl 8
12944aaf08bSMichael Tuexen(the same default used for TCP connections).
1307d56d374SYoshinobu Inoue.It Fl n
1317d56d374SYoshinobu InoueDo not resolve numeric address to hostname.
132d7b63fafSDavid Malone.It Fl N
133d7b63fafSDavid MaloneUse a packet with no upper layer header for the probes,
134d7b63fafSDavid Maloneinstead of UDP datagrams.
1357d56d374SYoshinobu Inoue.It Fl p Ar port
1369d8b46c8SMichael TuexenSet SCTP/TCP/UDP port number to
1377d56d374SYoshinobu Inoue.Ar port .
1387d56d374SYoshinobu Inoue.It Fl q Ar probes
1397d56d374SYoshinobu InoueSet the number of probe per hop count to
1407d56d374SYoshinobu Inoue.Ar probes .
1417d56d374SYoshinobu Inoue.It Fl r
1424c45e439SDima DorfmanBypass the normal routing tables and send directly to a host
1434c45e439SDima Dorfmanon an attached network.
1444c45e439SDima DorfmanIf the host is not on a directly-connected network,
1454c45e439SDima Dorfmanan error is returned.
1464c45e439SDima DorfmanThis option corresponds to the
1474c45e439SDima Dorfman.Dv SO_DONTROUTE
1484c45e439SDima Dorfmansocket option;
1494c45e439SDima Dorfmanit can be used to ping a local host through an interface
1504c45e439SDima Dorfmanthat has no route through it
1514c45e439SDima Dorfman(e.g., after the interface was dropped by a routing daemon).
1527d56d374SYoshinobu Inoue.It Fl s Ar src
1537d56d374SYoshinobu Inoue.Ar Src
1547d56d374SYoshinobu Inouespecifies the source IPv6 address to be used.
1559d8b46c8SMichael Tuexen.It Fl S
1569d8b46c8SMichael TuexenUse SCTP packets for the probes.
15751eff8efSMichael TuexenThe size of probe packets must be a multiple of 4.
15851eff8efSMichael TuexenIf
15951eff8efSMichael Tuexen.Ar datalen
16051eff8efSMichael Tuexenis up to 28, probe packets consist of a SHUTDOWN-ACK chunk possibly bundled
1616d6d6c36SGordon Berglingwith a PAD chunk.
1626d6d6c36SGordon BerglingFor larger probe packets, an INIT chunk is used.
163c7090651SMichael Tuexen.It Fl t Ar tclass
164c7090651SMichael Tuexen.Ar tclass
165c7090651SMichael Tuexenspecifies the
166c7090651SMichael Tuexen.Em traffic class
167c7090651SMichael Tuexenused when sending probe packets.
168c7090651SMichael TuexenThe value must be a decimal integer in the range 0 to 255.
169c7090651SMichael TuexenThe default is 0.
1709d8b46c8SMichael Tuexen.It Fl T
1719d8b46c8SMichael TuexenUse TCP segments for the probes.
172d7b63fafSDavid Malone.It Fl U
173d7b63fafSDavid MaloneUse UDP datagrams for the probes.
174d7b63fafSDavid MaloneThis is the default.
1757d56d374SYoshinobu Inoue.It Fl v
1767d56d374SYoshinobu InoueBe verbose.
1777d56d374SYoshinobu Inoue.It Fl w Ar waittime
1787d56d374SYoshinobu InoueSpecify the delay time between probes.
1797d56d374SYoshinobu Inoue.El
180615f49baSDavid Malone.Pp
181615f49baSDavid MaloneThis program prints the route to the given destination and the round-trip
182615f49baSDavid Malonetime to each gateway, in the same manner as traceroute.
183615f49baSDavid Malone.Pp
184615f49baSDavid MaloneHere is a list of possible annotations after the round-trip time for each gateway:
185615f49baSDavid Malone.Bl -hang -offset indent
186615f49baSDavid Malone.It !N
187615f49baSDavid MaloneDestination Unreachable - No Route to Host.
188615f49baSDavid Malone.It !P
189615f49baSDavid MaloneDestination Unreachable - Administratively Prohibited.
190615f49baSDavid Malone.It !S
191615f49baSDavid MaloneDestination Unreachable - Not a Neighbour.
192615f49baSDavid Malone.It !A
193615f49baSDavid MaloneDestination Unreachable - Address Unreachable.
1941f69b3fbSMichael Tuexen.It !H
1951f69b3fbSMichael TuexenParameter Problem - Unrecognized Next Header Type.
1962410103cSRuslan Ermilov.It !\&
197615f49baSDavid MaloneThis is printed if the hop limit is <= 1 on a port unreachable message.
198615f49baSDavid MaloneThis means that the packet got to the destination,
199615f49baSDavid Malonebut that the reply had a hop limit that was just large enough to
200615f49baSDavid Maloneallow it to get back to the source of the traceroute6.
201615f49baSDavid MaloneThis was more interesting in the IPv4 case,
202615f49baSDavid Malonewhere some IP stack bugs could be identified by this behaviour.
203615f49baSDavid Malone.El
2047d56d374SYoshinobu Inoue.\"
205a8d316ccSDaniel Gerzo.Sh EXIT STATUS
206a14efaa6SAlexey ZelkinThe
207a14efaa6SAlexey Zelkin.Nm
208cdbc658cSRuslan Ermilovutility will exit with 0 on success, and non-zero on errors.
2097d56d374SYoshinobu Inoue.\"
2107d56d374SYoshinobu Inoue.Sh SEE ALSO
2117d56d374SYoshinobu Inoue.Xr ping 8 ,
2127d56d374SYoshinobu Inoue.Xr traceroute 8
2137d56d374SYoshinobu Inoue.\"
2147d56d374SYoshinobu Inoue.Sh HISTORY
2157d56d374SYoshinobu InoueThe
2167d56d374SYoshinobu Inoue.Nm
217cdbc658cSRuslan Ermilovutility first appeared in WIDE hydrangea IPv6 protocol stack kit.
218