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*51eff8efSMichael Tuexen.Dd January 27, 2018 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 647d56d374SYoshinobu Inoue.Op Fl w Ar waittime 65de68a0daSKris Kennaway.Ek 66de68a0daSKris Kennaway.Bk -words 67d429d720SHajimu UMEMOTO.Op Fl A Ar as_server 68d429d720SHajimu UMEMOTO.Ek 69d429d720SHajimu UMEMOTO.Bk -words 70de68a0daSKris Kennaway.Ar target 71de68a0daSKris Kennaway.Op Ar datalen 72de68a0daSKris Kennaway.Ek 737d56d374SYoshinobu Inoue.\" 747d56d374SYoshinobu Inoue.Sh DESCRIPTION 752410103cSRuslan ErmilovThe 76615f49baSDavid Malone.Nm 772410103cSRuslan Ermilovutility 78615f49baSDavid Maloneuses the IPv6 protocol hop limit field to elicit an ICMPv6 TIME_EXCEEDED 79615f49baSDavid Maloneresponse 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. 82aa96470cSMichael TuexenThe default probe datagram carries 20 bytes of payload, 83615f49baSDavid Malonein addition to the IPv6 header. 84615f49baSDavid MaloneThe size of the payload can be specified by giving a length 852410103cSRuslan Ermilov(in bytes) 86615f49baSDavid Maloneafter the destination host name. 87615f49baSDavid Malone.Pp 88615f49baSDavid MaloneOther options are: 897d56d374SYoshinobu Inoue.Bl -tag -width Ds 90d429d720SHajimu UMEMOTO.It Fl a 91d429d720SHajimu UMEMOTOTurn on AS# lookups for each hop encountered. 92d429d720SHajimu UMEMOTO.It Fl A Ar as_server 93d429d720SHajimu UMEMOTOTurn on AS# lookups and use the given server instead of the default. 947d56d374SYoshinobu Inoue.It Fl d 957d56d374SYoshinobu InoueDebug mode. 96de68a0daSKris Kennaway.It Fl f Ar firsthop 97de68a0daSKris KennawaySpecify how many hops to skip in trace. 98de68a0daSKris Kennaway.It Fl g Ar gateway 99aa96470cSMichael TuexenSpecify intermediate gateway. Please note that 100aa96470cSMichael Tuexen.Nm 101aa96470cSMichael Tuexentries to use routing headers. 10284a1a4cfSHajimu UMEMOTO.It Fl I 10384a1a4cfSHajimu UMEMOTOUse ICMP6 ECHO instead of UDP datagrams. 1047d56d374SYoshinobu Inoue.It Fl l 1057d56d374SYoshinobu InouePrint both host hostnames and numeric addresses. 1067d56d374SYoshinobu InoueNormally 1077d56d374SYoshinobu Inoue.Nm 1087d56d374SYoshinobu Inoueprints only hostnames if 1097d56d374SYoshinobu Inoue.Fl n 1107d56d374SYoshinobu Inoueis not specified, and only numeric addresses if 1117d56d374SYoshinobu Inoue.Fl n 1127d56d374SYoshinobu Inoueis specified. 113c5491668SPav Lucistnik.It Fl m Ar hoplimit 114c5491668SPav LucistnikSpecify maximum hoplimit, up to 255. 115c5491668SPav LucistnikThe default is 30 hops. 1167d56d374SYoshinobu Inoue.It Fl n 1177d56d374SYoshinobu InoueDo not resolve numeric address to hostname. 118d7b63fafSDavid Malone.It Fl N 119d7b63fafSDavid MaloneUse a packet with no upper layer header for the probes, 120d7b63fafSDavid Maloneinstead of UDP datagrams. 1217d56d374SYoshinobu Inoue.It Fl p Ar port 1229d8b46c8SMichael TuexenSet SCTP/TCP/UDP port number to 1237d56d374SYoshinobu Inoue.Ar port . 1247d56d374SYoshinobu Inoue.It Fl q Ar probes 1257d56d374SYoshinobu InoueSet the number of probe per hop count to 1267d56d374SYoshinobu Inoue.Ar probes . 1277d56d374SYoshinobu Inoue.It Fl r 1284c45e439SDima DorfmanBypass the normal routing tables and send directly to a host 1294c45e439SDima Dorfmanon an attached network. 1304c45e439SDima DorfmanIf the host is not on a directly-connected network, 1314c45e439SDima Dorfmanan error is returned. 1324c45e439SDima DorfmanThis option corresponds to the 1334c45e439SDima Dorfman.Dv SO_DONTROUTE 1344c45e439SDima Dorfmansocket option; 1354c45e439SDima Dorfmanit can be used to ping a local host through an interface 1364c45e439SDima Dorfmanthat has no route through it 1374c45e439SDima Dorfman(e.g., after the interface was dropped by a routing daemon). 1387d56d374SYoshinobu Inoue.It Fl s Ar src 1397d56d374SYoshinobu Inoue.Ar Src 1407d56d374SYoshinobu Inouespecifies the source IPv6 address to be used. 1419d8b46c8SMichael Tuexen.It Fl S 1429d8b46c8SMichael TuexenUse SCTP packets for the probes. 143*51eff8efSMichael TuexenThe size of probe packets must be a multiple of 4. 144*51eff8efSMichael TuexenIf 145*51eff8efSMichael Tuexen.Ar datalen 146*51eff8efSMichael Tuexenis up to 28, probe packets consist of a SHUTDOWN-ACK chunk possibly bundled 147*51eff8efSMichael Tuexenwith a PAD chunk. For larger probe packets, an INIT chunk is used. 1489d8b46c8SMichael Tuexen.It Fl T 1499d8b46c8SMichael TuexenUse TCP segments for the probes. 150d7b63fafSDavid Malone.It Fl U 151d7b63fafSDavid MaloneUse UDP datagrams for the probes. 152d7b63fafSDavid MaloneThis is the default. 1537d56d374SYoshinobu Inoue.It Fl v 1547d56d374SYoshinobu InoueBe verbose. 1557d56d374SYoshinobu Inoue.It Fl w Ar waittime 1567d56d374SYoshinobu InoueSpecify the delay time between probes. 1577d56d374SYoshinobu Inoue.El 158615f49baSDavid Malone.Pp 159615f49baSDavid MaloneThis program prints the route to the given destination and the round-trip 160615f49baSDavid Malonetime to each gateway, in the same manner as traceroute. 161615f49baSDavid Malone.Pp 162615f49baSDavid MaloneHere is a list of possible annotations after the round-trip time for each gateway: 163615f49baSDavid Malone.Bl -hang -offset indent 164615f49baSDavid Malone.It !N 165615f49baSDavid MaloneDestination Unreachable - No Route to Host. 166615f49baSDavid Malone.It !P 167615f49baSDavid MaloneDestination Unreachable - Administratively Prohibited. 168615f49baSDavid Malone.It !S 169615f49baSDavid MaloneDestination Unreachable - Not a Neighbour. 170615f49baSDavid Malone.It !A 171615f49baSDavid MaloneDestination Unreachable - Address Unreachable. 1722410103cSRuslan Ermilov.It !\& 173615f49baSDavid MaloneThis is printed if the hop limit is <= 1 on a port unreachable message. 174615f49baSDavid MaloneThis means that the packet got to the destination, 175615f49baSDavid Malonebut that the reply had a hop limit that was just large enough to 176615f49baSDavid Maloneallow it to get back to the source of the traceroute6. 177615f49baSDavid MaloneThis was more interesting in the IPv4 case, 178615f49baSDavid Malonewhere some IP stack bugs could be identified by this behaviour. 179615f49baSDavid Malone.El 1807d56d374SYoshinobu Inoue.\" 181a8d316ccSDaniel Gerzo.Sh EXIT STATUS 182a14efaa6SAlexey ZelkinThe 183a14efaa6SAlexey Zelkin.Nm 184cdbc658cSRuslan Ermilovutility will exit with 0 on success, and non-zero on errors. 1857d56d374SYoshinobu Inoue.\" 1867d56d374SYoshinobu Inoue.Sh SEE ALSO 1877d56d374SYoshinobu Inoue.Xr ping 8 , 1887d56d374SYoshinobu Inoue.Xr ping6 8 , 1897d56d374SYoshinobu Inoue.Xr traceroute 8 1907d56d374SYoshinobu Inoue.\" 1917d56d374SYoshinobu Inoue.Sh HISTORY 1927d56d374SYoshinobu InoueThe 1937d56d374SYoshinobu Inoue.Nm 194cdbc658cSRuslan Ermilovutility first appeared in WIDE hydrangea IPv6 protocol stack kit. 195