1.\" $KAME: traceroute6.8,v 1.10 2004/06/06 12:35:15 suz Exp $ 2.\" 3.\" Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. Neither the name of the project nor the names of its contributors 15.\" may be used to endorse or promote products derived from this software 16.\" without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND 19.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" 30.Dd February 2, 2024 31.Dt TRACEROUTE6 8 32.Os 33.\" 34.Sh NAME 35.Nm traceroute6 36.Nd "print the route IPv6 packets will take to a network node" 37.\" 38.Sh SYNOPSIS 39.Nm 40.Bk -words 41.Op Fl adEIlnNrSTUv 42.Ek 43.Bk -words 44.Op Fl A Ar as_server 45.Ek 46.Bk -words 47.Op Fl f Ar firsthop 48.Ek 49.Bk -words 50.Op Fl g Ar gateway 51.Ek 52.Bk -words 53.Op Fl m Ar hoplimit 54.Ek 55.Bk -words 56.Op Fl p Ar port 57.Ek 58.Bk -words 59.Op Fl q Ar probes 60.Ek 61.Bk -words 62.Op Fl s Ar src 63.Ek 64.Bk -words 65.Op Fl t Ar tclass 66.Ek 67.Bk -words 68.Op Fl w Ar waittime 69.Ek 70.Bk -words 71.Ar target 72.Op Ar datalen 73.Ek 74.\" 75.Sh DESCRIPTION 76The 77.Nm 78utility uses the IPv6 protocol hop limit field to elicit an ICMPv6 79TIME_EXCEEDED response from each gateway along the path to some host. 80.Pp 81The only mandatory parameter is the destination host name or IPv6 address. 82The default probe datagram carries 20 bytes of payload, in addition to the IPv6 83header. 84The size of the payload can be specified by giving a length (in bytes) after 85the destination host name. 86.Pp 87Other options are: 88.Bl -tag -width Ds 89.It Fl a 90Turn on AS# lookups for each hop encountered. 91.It Fl A Ar as_server 92Turn on AS# lookups and use the given server instead of the default. 93.It Fl d 94Debug mode. 95.It Fl E 96Detect ECN bleaching. 97Set the 98.Em IPTOS_ECN_ECT1 99Explicit Congestion Notification (ECN) bits 100.Pq Dv 01 , 101and report if the hop has bleached 102.Pq Dv 00 103or mangled 104.Pq Dv 10 105them, or if it is experiencing congestion 106.Pq Dv 11 . 107Otherwise, report that it passed the bits appropriately. 108If 109.Fl t 110is also specified, the corresponding ECN bits will be replaced. 111.It Fl f Ar firsthop 112Specify how many hops to skip in trace. 113.It Fl g Ar gateway 114Specify intermediate gateway. 115Please note that 116.Nm 117tries to use routing headers. 118.It Fl I 119Use ICMP6 ECHO instead of UDP datagrams. 120.It Fl l 121Ignored for backward compatibility. 122.It Fl m Ar hoplimit 123Specify maximum hoplimit, up to 255. 124The default is the value of the 125.Va net.inet6.ip6.hlim 126.Xr sysctl 8 127(the same default used for TCP connections). 128.It Fl n 129Do not resolve numeric address to hostname. 130.It Fl N 131Use a packet with no upper layer header for the probes, instead of UDP 132datagrams. 133.It Fl p Ar port 134Set SCTP/TCP/UDP port number to 135.Ar port . 136.It Fl q Ar probes 137Set the number of probe per hop count to 138.Ar probes . 139.It Fl r 140Bypass the normal routing tables and send directly to a host on an attached 141network. 142If the host is not on a directly-connected network, 143an error is returned. 144This option corresponds to the 145.Dv SO_DONTROUTE 146socket option; it can be used to ping a local host through an interface that 147has no route through it (e.g., after the interface was dropped by a routing 148daemon). 149.It Fl s Ar src 150.Ar Src 151specifies the source IPv6 address to be used. 152.It Fl S 153Use SCTP packets for the probes. 154The size of probe packets must be a multiple of 4. 155If 156.Ar datalen 157is up to 28, probe packets consist of a SHUTDOWN-ACK chunk possibly bundled 158with a PAD chunk. 159For larger probe packets, an INIT chunk is used. 160.It Fl t Ar tclass 161.Ar tclass 162specifies the 163.Em traffic class 164used when sending probe packets. 165The value must be a decimal integer in the range 0 to 255. 166The default is 0. 167.It Fl T 168Use TCP segments for the probes. 169.It Fl U 170Use UDP datagrams for the probes. 171This is the default. 172.It Fl v 173Be verbose. 174.It Fl w Ar waittime 175Specify the delay time between probes. 176.El 177.Pp 178This program prints the route to the given destination and the round-trip time 179to each gateway, in the same manner as traceroute. 180.Pp 181Here is a list of possible annotations after the round-trip time for each 182gateway: 183.Bl -hang -offset indent 184.It !N 185Destination Unreachable - No Route to Host. 186.It !P 187Destination Unreachable - Administratively Prohibited. 188.It !S 189Destination Unreachable - Not a Neighbour. 190.It !A 191Destination Unreachable - Address Unreachable. 192.It !H 193Parameter Problem - Unrecognized Next Header Type. 194.It !\& 195This is printed if the hop limit is <= 1 on a port unreachable message. 196This means that the packet got to the destination, but that the reply had a hop 197limit that was just large enough to allow it to get back to the source of the 198traceroute6. 199This was more interesting in the IPv4 case, where some IP stack bugs could be 200identified by this behaviour. 201.El 202.\" 203.Sh EXIT STATUS 204The 205.Nm 206utility will exit with 0 on success, and non-zero on errors. 207.\" 208.Sh SEE ALSO 209.Xr ping 8 , 210.Xr traceroute 8 211.\" 212.Sh HISTORY 213The 214.Nm 215utility first appeared in WIDE hydrangea IPv6 protocol stack kit. 216