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.\" 307d56d374SYoshinobu Inoue.\" $FreeBSD$ 317d56d374SYoshinobu Inoue.\" 32*c7090651SMichael Tuexen.Dd September 13, 2020 337d56d374SYoshinobu Inoue.Dt TRACEROUTE6 8 34a14efaa6SAlexey Zelkin.Os 357d56d374SYoshinobu Inoue.\" 367d56d374SYoshinobu Inoue.Sh NAME 377d56d374SYoshinobu Inoue.Nm traceroute6 38615f49baSDavid Malone.Nd "print the route IPv6 packets will take to a network node" 397d56d374SYoshinobu Inoue.\" 407d56d374SYoshinobu Inoue.Sh SYNOPSIS 41e97407b4SRuslan Ermilov.Nm 42de68a0daSKris Kennaway.Bk -words 439d8b46c8SMichael Tuexen.Op Fl adIlnNrSTUv 44de68a0daSKris Kennaway.Ek 45de68a0daSKris Kennaway.Bk -words 46de68a0daSKris Kennaway.Op Fl f Ar firsthop 47de68a0daSKris Kennaway.Ek 48de68a0daSKris Kennaway.Bk -words 49de68a0daSKris Kennaway.Op Fl g Ar gateway 50de68a0daSKris Kennaway.Ek 51de68a0daSKris Kennaway.Bk -words 527d56d374SYoshinobu Inoue.Op Fl m Ar hoplimit 53de68a0daSKris Kennaway.Ek 54de68a0daSKris Kennaway.Bk -words 557d56d374SYoshinobu Inoue.Op Fl p Ar port 56de68a0daSKris Kennaway.Ek 57de68a0daSKris Kennaway.Bk -words 587d56d374SYoshinobu Inoue.Op Fl q Ar probes 59de68a0daSKris Kennaway.Ek 60de68a0daSKris Kennaway.Bk -words 617d56d374SYoshinobu Inoue.Op Fl s Ar src 62de68a0daSKris Kennaway.Ek 63de68a0daSKris Kennaway.Bk -words 64*c7090651SMichael Tuexen.Op Fl t Ar tclass 65*c7090651SMichael Tuexen.Ek 66*c7090651SMichael Tuexen.Bk -words 677d56d374SYoshinobu Inoue.Op Fl w Ar waittime 68de68a0daSKris Kennaway.Ek 69de68a0daSKris Kennaway.Bk -words 70d429d720SHajimu UMEMOTO.Op Fl A Ar as_server 71d429d720SHajimu UMEMOTO.Ek 72d429d720SHajimu UMEMOTO.Bk -words 73de68a0daSKris Kennaway.Ar target 74de68a0daSKris Kennaway.Op Ar datalen 75de68a0daSKris Kennaway.Ek 767d56d374SYoshinobu Inoue.\" 777d56d374SYoshinobu Inoue.Sh DESCRIPTION 782410103cSRuslan ErmilovThe 79615f49baSDavid Malone.Nm 802410103cSRuslan Ermilovutility 81615f49baSDavid Maloneuses the IPv6 protocol hop limit field to elicit an ICMPv6 TIME_EXCEEDED 82615f49baSDavid Maloneresponse from each gateway along the path to some host. 83615f49baSDavid Malone.Pp 84615f49baSDavid MaloneThe only mandatory parameter is the destination host name or IPv6 address. 85aa96470cSMichael TuexenThe default probe datagram carries 20 bytes of payload, 86615f49baSDavid Malonein addition to the IPv6 header. 87615f49baSDavid MaloneThe size of the payload can be specified by giving a length 882410103cSRuslan Ermilov(in bytes) 89615f49baSDavid Maloneafter the destination host name. 90615f49baSDavid Malone.Pp 91615f49baSDavid MaloneOther options are: 927d56d374SYoshinobu Inoue.Bl -tag -width Ds 93d429d720SHajimu UMEMOTO.It Fl a 94d429d720SHajimu UMEMOTOTurn on AS# lookups for each hop encountered. 95d429d720SHajimu UMEMOTO.It Fl A Ar as_server 96d429d720SHajimu UMEMOTOTurn on AS# lookups and use the given server instead of the default. 977d56d374SYoshinobu Inoue.It Fl d 987d56d374SYoshinobu InoueDebug mode. 99de68a0daSKris Kennaway.It Fl f Ar firsthop 100de68a0daSKris KennawaySpecify how many hops to skip in trace. 101de68a0daSKris Kennaway.It Fl g Ar gateway 102aa96470cSMichael TuexenSpecify intermediate gateway. Please note that 103aa96470cSMichael Tuexen.Nm 104aa96470cSMichael Tuexentries to use routing headers. 10584a1a4cfSHajimu UMEMOTO.It Fl I 10684a1a4cfSHajimu UMEMOTOUse ICMP6 ECHO instead of UDP datagrams. 1077d56d374SYoshinobu Inoue.It Fl l 1087d56d374SYoshinobu InouePrint both host hostnames and numeric addresses. 1097d56d374SYoshinobu InoueNormally 1107d56d374SYoshinobu Inoue.Nm 1117d56d374SYoshinobu Inoueprints only hostnames if 1127d56d374SYoshinobu Inoue.Fl n 1137d56d374SYoshinobu Inoueis not specified, and only numeric addresses if 1147d56d374SYoshinobu Inoue.Fl n 1157d56d374SYoshinobu Inoueis specified. 116c5491668SPav Lucistnik.It Fl m Ar hoplimit 117c5491668SPav LucistnikSpecify maximum hoplimit, up to 255. 11844aaf08bSMichael TuexenThe default is the value of the 11944aaf08bSMichael Tuexen.Va net.inet6.ip6.hlim 12044aaf08bSMichael Tuexen.Xr sysctl 8 12144aaf08bSMichael Tuexen(the same default used for TCP connections). 1227d56d374SYoshinobu Inoue.It Fl n 1237d56d374SYoshinobu InoueDo not resolve numeric address to hostname. 124d7b63fafSDavid Malone.It Fl N 125d7b63fafSDavid MaloneUse a packet with no upper layer header for the probes, 126d7b63fafSDavid Maloneinstead of UDP datagrams. 1277d56d374SYoshinobu Inoue.It Fl p Ar port 1289d8b46c8SMichael TuexenSet SCTP/TCP/UDP port number to 1297d56d374SYoshinobu Inoue.Ar port . 1307d56d374SYoshinobu Inoue.It Fl q Ar probes 1317d56d374SYoshinobu InoueSet the number of probe per hop count to 1327d56d374SYoshinobu Inoue.Ar probes . 1337d56d374SYoshinobu Inoue.It Fl r 1344c45e439SDima DorfmanBypass the normal routing tables and send directly to a host 1354c45e439SDima Dorfmanon an attached network. 1364c45e439SDima DorfmanIf the host is not on a directly-connected network, 1374c45e439SDima Dorfmanan error is returned. 1384c45e439SDima DorfmanThis option corresponds to the 1394c45e439SDima Dorfman.Dv SO_DONTROUTE 1404c45e439SDima Dorfmansocket option; 1414c45e439SDima Dorfmanit can be used to ping a local host through an interface 1424c45e439SDima Dorfmanthat has no route through it 1434c45e439SDima Dorfman(e.g., after the interface was dropped by a routing daemon). 1447d56d374SYoshinobu Inoue.It Fl s Ar src 1457d56d374SYoshinobu Inoue.Ar Src 1467d56d374SYoshinobu Inouespecifies the source IPv6 address to be used. 1479d8b46c8SMichael Tuexen.It Fl S 1489d8b46c8SMichael TuexenUse SCTP packets for the probes. 14951eff8efSMichael TuexenThe size of probe packets must be a multiple of 4. 15051eff8efSMichael TuexenIf 15151eff8efSMichael Tuexen.Ar datalen 15251eff8efSMichael Tuexenis up to 28, probe packets consist of a SHUTDOWN-ACK chunk possibly bundled 15351eff8efSMichael Tuexenwith a PAD chunk. For larger probe packets, an INIT chunk is used. 154*c7090651SMichael Tuexen.It Fl t Ar tclass 155*c7090651SMichael Tuexen.Ar tclass 156*c7090651SMichael Tuexenspecifies the 157*c7090651SMichael Tuexen.Em traffic class 158*c7090651SMichael Tuexenused when sending probe packets. 159*c7090651SMichael TuexenThe value must be a decimal integer in the range 0 to 255. 160*c7090651SMichael TuexenThe default is 0. 1619d8b46c8SMichael Tuexen.It Fl T 1629d8b46c8SMichael TuexenUse TCP segments for the probes. 163d7b63fafSDavid Malone.It Fl U 164d7b63fafSDavid MaloneUse UDP datagrams for the probes. 165d7b63fafSDavid MaloneThis is the default. 1667d56d374SYoshinobu Inoue.It Fl v 1677d56d374SYoshinobu InoueBe verbose. 1687d56d374SYoshinobu Inoue.It Fl w Ar waittime 1697d56d374SYoshinobu InoueSpecify the delay time between probes. 1707d56d374SYoshinobu Inoue.El 171615f49baSDavid Malone.Pp 172615f49baSDavid MaloneThis program prints the route to the given destination and the round-trip 173615f49baSDavid Malonetime to each gateway, in the same manner as traceroute. 174615f49baSDavid Malone.Pp 175615f49baSDavid MaloneHere is a list of possible annotations after the round-trip time for each gateway: 176615f49baSDavid Malone.Bl -hang -offset indent 177615f49baSDavid Malone.It !N 178615f49baSDavid MaloneDestination Unreachable - No Route to Host. 179615f49baSDavid Malone.It !P 180615f49baSDavid MaloneDestination Unreachable - Administratively Prohibited. 181615f49baSDavid Malone.It !S 182615f49baSDavid MaloneDestination Unreachable - Not a Neighbour. 183615f49baSDavid Malone.It !A 184615f49baSDavid MaloneDestination Unreachable - Address Unreachable. 1851f69b3fbSMichael Tuexen.It !H 1861f69b3fbSMichael TuexenParameter Problem - Unrecognized Next Header Type. 1872410103cSRuslan Ermilov.It !\& 188615f49baSDavid MaloneThis is printed if the hop limit is <= 1 on a port unreachable message. 189615f49baSDavid MaloneThis means that the packet got to the destination, 190615f49baSDavid Malonebut that the reply had a hop limit that was just large enough to 191615f49baSDavid Maloneallow it to get back to the source of the traceroute6. 192615f49baSDavid MaloneThis was more interesting in the IPv4 case, 193615f49baSDavid Malonewhere some IP stack bugs could be identified by this behaviour. 194615f49baSDavid Malone.El 1957d56d374SYoshinobu Inoue.\" 196a8d316ccSDaniel Gerzo.Sh EXIT STATUS 197a14efaa6SAlexey ZelkinThe 198a14efaa6SAlexey Zelkin.Nm 199cdbc658cSRuslan Ermilovutility will exit with 0 on success, and non-zero on errors. 2007d56d374SYoshinobu Inoue.\" 2017d56d374SYoshinobu Inoue.Sh SEE ALSO 2027d56d374SYoshinobu Inoue.Xr ping 8 , 2037d56d374SYoshinobu Inoue.Xr ping6 8 , 2047d56d374SYoshinobu Inoue.Xr traceroute 8 2057d56d374SYoshinobu Inoue.\" 2067d56d374SYoshinobu Inoue.Sh HISTORY 2077d56d374SYoshinobu InoueThe 2087d56d374SYoshinobu Inoue.Nm 209cdbc658cSRuslan Ermilovutility first appeared in WIDE hydrangea IPv6 protocol stack kit. 210