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
44ba09352bSJose Luis Duran.Op Fl A Ar as_server
45ba09352bSJose Luis Duran.Ek
46ba09352bSJose 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
785eb1aebfSJose Luis Duranutility uses the IPv6 protocol hop limit field to elicit an ICMPv6
795eb1aebfSJose Luis DuranTIME_EXCEEDED response from each gateway along the path to some host.
80615f49baSDavid Malone.Pp
81615f49baSDavid MaloneThe only mandatory parameter is the destination host name or IPv6 address.
825eb1aebfSJose Luis DuranThe default probe datagram carries 20 bytes of payload, in addition to the IPv6
835eb1aebfSJose Luis Duranheader.
845eb1aebfSJose Luis DuranThe size of the payload can be specified by giving a length (in bytes) after
855eb1aebfSJose Luis Duranthe destination host name.
86615f49baSDavid Malone.Pp
87615f49baSDavid MaloneOther options are:
887d56d374SYoshinobu Inoue.Bl -tag -width Ds
89d429d720SHajimu UMEMOTO.It Fl a
90d429d720SHajimu UMEMOTOTurn on AS# lookups for each hop encountered.
91d429d720SHajimu UMEMOTO.It Fl A Ar as_server
92d429d720SHajimu UMEMOTOTurn on AS# lookups and use the given server instead of the default.
937d56d374SYoshinobu Inoue.It Fl d
947d56d374SYoshinobu InoueDebug mode.
950c2218d1SJose Luis Duran.It Fl E
960c2218d1SJose Luis DuranDetect ECN bleaching.
970c2218d1SJose Luis DuranSet the
980c2218d1SJose Luis Duran.Em IPTOS_ECN_ECT1
990c2218d1SJose Luis DuranExplicit Congestion Notification (ECN) bits
1000c2218d1SJose Luis Duran.Pq Dv 01 ,
1010c2218d1SJose Luis Duranand report if the hop has bleached
1020c2218d1SJose Luis Duran.Pq Dv 00
1030c2218d1SJose Luis Duranor mangled
1040c2218d1SJose Luis Duran.Pq Dv 10
1050c2218d1SJose Luis Duranthem, or if it is experiencing congestion
1060c2218d1SJose Luis Duran.Pq Dv 11 .
1070c2218d1SJose Luis DuranOtherwise, report that it passed the bits appropriately.
1080c2218d1SJose Luis DuranIf
1090c2218d1SJose Luis Duran.Fl t
1100c2218d1SJose Luis Duranis also specified, the corresponding ECN bits will be replaced.
111de68a0daSKris Kennaway.It Fl f Ar firsthop
112de68a0daSKris KennawaySpecify how many hops to skip in trace.
113de68a0daSKris Kennaway.It Fl g Ar gateway
1146d6d6c36SGordon BerglingSpecify intermediate gateway.
1156d6d6c36SGordon BerglingPlease note that
116aa96470cSMichael Tuexen.Nm
117aa96470cSMichael Tuexentries to use routing headers.
11884a1a4cfSHajimu UMEMOTO.It Fl I
11984a1a4cfSHajimu UMEMOTOUse ICMP6 ECHO instead of UDP datagrams.
1207d56d374SYoshinobu Inoue.It Fl l
1210a49be72SLexi WinterIgnored for backward compatibility.
122c5491668SPav Lucistnik.It Fl m Ar hoplimit
123c5491668SPav LucistnikSpecify maximum hoplimit, up to 255.
12444aaf08bSMichael TuexenThe default is the value of the
12544aaf08bSMichael Tuexen.Va net.inet6.ip6.hlim
12644aaf08bSMichael Tuexen.Xr sysctl 8
12744aaf08bSMichael Tuexen(the same default used for TCP connections).
1287d56d374SYoshinobu Inoue.It Fl n
1297d56d374SYoshinobu InoueDo not resolve numeric address to hostname.
130d7b63fafSDavid Malone.It Fl N
1315eb1aebfSJose Luis DuranUse a packet with no upper layer header for the probes, instead of UDP
1325eb1aebfSJose Luis Durandatagrams.
1337d56d374SYoshinobu Inoue.It Fl p Ar port
1349d8b46c8SMichael TuexenSet SCTP/TCP/UDP port number to
1357d56d374SYoshinobu Inoue.Ar port .
1367d56d374SYoshinobu Inoue.It Fl q Ar probes
1377d56d374SYoshinobu InoueSet the number of probe per hop count to
1387d56d374SYoshinobu Inoue.Ar probes .
1397d56d374SYoshinobu Inoue.It Fl r
1405eb1aebfSJose Luis DuranBypass the normal routing tables and send directly to a host on an attached
1415eb1aebfSJose Luis Durannetwork.
1424c45e439SDima DorfmanIf the host is not on a directly-connected network,
1434c45e439SDima Dorfmanan error is returned.
1444c45e439SDima DorfmanThis option corresponds to the
1454c45e439SDima Dorfman.Dv SO_DONTROUTE
1465eb1aebfSJose Luis Duransocket option; it can be used to ping a local host through an interface that
1475eb1aebfSJose Luis Duranhas no route through it (e.g., after the interface was dropped by a routing
1485eb1aebfSJose Luis Durandaemon).
1497d56d374SYoshinobu Inoue.It Fl s Ar src
1507d56d374SYoshinobu Inoue.Ar Src
1517d56d374SYoshinobu Inouespecifies the source IPv6 address to be used.
1529d8b46c8SMichael Tuexen.It Fl S
1539d8b46c8SMichael TuexenUse SCTP packets for the probes.
15451eff8efSMichael TuexenThe size of probe packets must be a multiple of 4.
15551eff8efSMichael TuexenIf
15651eff8efSMichael Tuexen.Ar datalen
15751eff8efSMichael Tuexenis up to 28, probe packets consist of a SHUTDOWN-ACK chunk possibly bundled
1586d6d6c36SGordon Berglingwith a PAD chunk.
1596d6d6c36SGordon BerglingFor larger probe packets, an INIT chunk is used.
160c7090651SMichael Tuexen.It Fl t Ar tclass
161c7090651SMichael Tuexen.Ar tclass
162c7090651SMichael Tuexenspecifies the
163c7090651SMichael Tuexen.Em traffic class
164c7090651SMichael Tuexenused when sending probe packets.
165c7090651SMichael TuexenThe value must be a decimal integer in the range 0 to 255.
166c7090651SMichael TuexenThe default is 0.
1679d8b46c8SMichael Tuexen.It Fl T
1689d8b46c8SMichael TuexenUse TCP segments for the probes.
169d7b63fafSDavid Malone.It Fl U
170d7b63fafSDavid MaloneUse UDP datagrams for the probes.
171d7b63fafSDavid MaloneThis is the default.
1727d56d374SYoshinobu Inoue.It Fl v
1737d56d374SYoshinobu InoueBe verbose.
1747d56d374SYoshinobu Inoue.It Fl w Ar waittime
1757d56d374SYoshinobu InoueSpecify the delay time between probes.
1767d56d374SYoshinobu Inoue.El
177615f49baSDavid Malone.Pp
1785eb1aebfSJose Luis DuranThis program prints the route to the given destination and the round-trip time
1795eb1aebfSJose Luis Duranto each gateway, in the same manner as traceroute.
180615f49baSDavid Malone.Pp
1815eb1aebfSJose Luis DuranHere is a list of possible annotations after the round-trip time for each
1825eb1aebfSJose Luis Durangateway:
183615f49baSDavid Malone.Bl -hang -offset indent
184615f49baSDavid Malone.It !N
185615f49baSDavid MaloneDestination Unreachable - No Route to Host.
186615f49baSDavid Malone.It !P
187615f49baSDavid MaloneDestination Unreachable - Administratively Prohibited.
188615f49baSDavid Malone.It !S
189615f49baSDavid MaloneDestination Unreachable - Not a Neighbour.
190615f49baSDavid Malone.It !A
191615f49baSDavid MaloneDestination Unreachable - Address Unreachable.
1921f69b3fbSMichael Tuexen.It !H
1931f69b3fbSMichael TuexenParameter Problem - Unrecognized Next Header Type.
1942410103cSRuslan Ermilov.It !\&
195615f49baSDavid MaloneThis is printed if the hop limit is <= 1 on a port unreachable message.
1965eb1aebfSJose Luis DuranThis means that the packet got to the destination, but that the reply had a hop
1975eb1aebfSJose Luis Duranlimit that was just large enough to allow it to get back to the source of the
1985eb1aebfSJose Luis Durantraceroute6.
1995eb1aebfSJose Luis DuranThis was more interesting in the IPv4 case, where some IP stack bugs could be
2005eb1aebfSJose Luis Duranidentified by this behaviour.
201615f49baSDavid Malone.El
2027d56d374SYoshinobu Inoue.\"
203a8d316ccSDaniel Gerzo.Sh EXIT STATUS
204a14efaa6SAlexey ZelkinThe
205a14efaa6SAlexey Zelkin.Nm
206cdbc658cSRuslan Ermilovutility will exit with 0 on success, and non-zero on errors.
2077d56d374SYoshinobu Inoue.\"
2087d56d374SYoshinobu Inoue.Sh SEE ALSO
2097d56d374SYoshinobu Inoue.Xr ping 8 ,
2107d56d374SYoshinobu Inoue.Xr traceroute 8
2117d56d374SYoshinobu Inoue.\"
2127d56d374SYoshinobu Inoue.Sh HISTORY
2137d56d374SYoshinobu InoueThe
2147d56d374SYoshinobu Inoue.Nm
215cdbc658cSRuslan Ermilovutility first appeared in WIDE hydrangea IPv6 protocol stack kit.
216