xref: /freebsd/usr.sbin/traceroute6/traceroute6.8 (revision 2410103c1d01e5581dbe8c80c0fbbdb90c1fdadc)
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.\"
327d56d374SYoshinobu Inoue.Dd May 17, 1998
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
4384a1a4cfSHajimu UMEMOTO.Op Fl dIlnrv
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
67de68a0daSKris Kennaway.Ar target
68de68a0daSKris Kennaway.Op Ar datalen
69de68a0daSKris Kennaway.Ek
707d56d374SYoshinobu Inoue.\"
717d56d374SYoshinobu Inoue.Sh DESCRIPTION
722410103cSRuslan ErmilovThe
73615f49baSDavid Malone.Nm
742410103cSRuslan Ermilovutility
75615f49baSDavid Maloneuses the IPv6 protocol hop limit field to elicit an ICMPv6 TIME_EXCEEDED
76615f49baSDavid Maloneresponse from each gateway along the path to some host.
77615f49baSDavid Malone.Pp
78615f49baSDavid MaloneThe only mandatory parameter is the destination host name or IPv6 address.
79615f49baSDavid MaloneThe default probe datagram carries 12 bytes of payload,
80615f49baSDavid Malonein addition to the IPv6 header.
81615f49baSDavid MaloneThe size of the payload can be specified by giving a length
822410103cSRuslan Ermilov(in bytes)
83615f49baSDavid Maloneafter the destination host name.
84615f49baSDavid Malone.Pp
85615f49baSDavid MaloneOther options are:
867d56d374SYoshinobu Inoue.Bl -tag -width Ds
877d56d374SYoshinobu Inoue.It Fl d
887d56d374SYoshinobu InoueDebug mode.
89de68a0daSKris Kennaway.It Fl f Ar firsthop
90de68a0daSKris KennawaySpecify how many hops to skip in trace.
91de68a0daSKris Kennaway.It Fl g Ar gateway
92de68a0daSKris KennawaySpecify intermediate gateway
93cdbc658cSRuslan Ermilov.Nm (
94cdbc658cSRuslan Ermilovuses routing header).
9584a1a4cfSHajimu UMEMOTO.It Fl I
9684a1a4cfSHajimu UMEMOTOUse ICMP6 ECHO instead of UDP datagrams.
977d56d374SYoshinobu Inoue.It Fl l
987d56d374SYoshinobu InouePrint both host hostnames and numeric addresses.
997d56d374SYoshinobu InoueNormally
1007d56d374SYoshinobu Inoue.Nm
1017d56d374SYoshinobu Inoueprints only hostnames if
10284a1a4cfSHajimu UMEMOTO.It Fl m Ar hoplimit
103615f49baSDavid MaloneSpecify maximum hoplimit, up to 255.
104615f49baSDavid MaloneThe default is 30 hops.
1057d56d374SYoshinobu Inoue.Fl n
1067d56d374SYoshinobu Inoueis not specified, and only numeric addresses if
1077d56d374SYoshinobu Inoue.Fl n
1087d56d374SYoshinobu Inoueis specified.
1097d56d374SYoshinobu Inoue.It Fl n
1107d56d374SYoshinobu InoueDo not resolve numeric address to hostname.
1117d56d374SYoshinobu Inoue.It Fl p Ar port
1127d56d374SYoshinobu InoueSet UDP port number to
1137d56d374SYoshinobu Inoue.Ar port .
1147d56d374SYoshinobu Inoue.It Fl q Ar probes
1157d56d374SYoshinobu InoueSet the number of probe per hop count to
1167d56d374SYoshinobu Inoue.Ar probes .
1177d56d374SYoshinobu Inoue.It Fl r
1187d56d374SYoshinobu Inoue.It Fl s Ar src
1197d56d374SYoshinobu Inoue.Ar Src
1207d56d374SYoshinobu Inouespecifies the source IPv6 address to be used.
1217d56d374SYoshinobu Inoue.It Fl v
1227d56d374SYoshinobu InoueBe verbose.
1237d56d374SYoshinobu Inoue.It Fl w Ar waittime
1247d56d374SYoshinobu InoueSpecify the delay time between probes.
1257d56d374SYoshinobu Inoue.El
126615f49baSDavid Malone.Pp
127615f49baSDavid MaloneThis program prints the route to the given destination and the round-trip
128615f49baSDavid Malonetime to each gateway, in the same manner as traceroute.
129615f49baSDavid Malone.Pp
130615f49baSDavid MaloneHere is a list of possible annotations after the round-trip time for each gateway:
131615f49baSDavid Malone.Bl -hang -offset indent
132615f49baSDavid Malone.It !N
133615f49baSDavid MaloneDestination Unreachable - No Route to Host.
134615f49baSDavid Malone.It !P
135615f49baSDavid MaloneDestination Unreachable - Administratively Prohibited.
136615f49baSDavid Malone.It !S
137615f49baSDavid MaloneDestination Unreachable - Not a Neighbour.
138615f49baSDavid Malone.It !A
139615f49baSDavid MaloneDestination Unreachable - Address Unreachable.
1402410103cSRuslan Ermilov.It !\&
141615f49baSDavid MaloneThis is printed if the hop limit is <= 1 on a port unreachable message.
142615f49baSDavid MaloneThis means that the packet got to the destination,
143615f49baSDavid Malonebut that the reply had a hop limit that was just large enough to
144615f49baSDavid Maloneallow it to get back to the source of the traceroute6.
145615f49baSDavid MaloneThis was more interesting in the IPv4 case,
146615f49baSDavid Malonewhere some IP stack bugs could be identified by this behaviour.
147615f49baSDavid Malone.El
1487d56d374SYoshinobu Inoue.\"
1497d56d374SYoshinobu Inoue.Sh RETURN VALUES
150a14efaa6SAlexey ZelkinThe
151a14efaa6SAlexey Zelkin.Nm
152cdbc658cSRuslan Ermilovutility will exit with 0 on success, and non-zero on errors.
1537d56d374SYoshinobu Inoue.\"
1547d56d374SYoshinobu Inoue.Sh SEE ALSO
1557d56d374SYoshinobu Inoue.Xr ping 8 ,
1567d56d374SYoshinobu Inoue.Xr ping6 8 ,
1577d56d374SYoshinobu Inoue.Xr traceroute 8
1587d56d374SYoshinobu Inoue.\"
1597d56d374SYoshinobu Inoue.Sh HISTORY
1607d56d374SYoshinobu InoueThe
1617d56d374SYoshinobu Inoue.Nm
162cdbc658cSRuslan Ermilovutility first appeared in WIDE hydrangea IPv6 protocol stack kit.
163