Created on
08-24-2023
09:11 AM
Edited on
06-06-2025
12:48 AM
By
Jean-Philippe_P
Description |
This article describes use of the traceroute command in FortiGate. |
Scope | FortiOS. |
Solution |
Any packets forwarded to the internet will pass through different routers. For each packet, one path to reach the destination will be selected. The FortiOS 'traceroute' command can provide some information about the likely path.
Examples:
In the traceroute output, the IP address of each hop and the response time are visible if a response was received.
execute traceroute 1.1.1.1 traceroute to 1.1.1.1 (1.1.1.1), 32 hops max, 3 probe packets per hop, 72 byte packets 1 10.31.12.1 2.678 ms 2.544 ms 1.979 ms 2 154.11.15.107 2.331 ms 3.235 ms 2.971 ms 3 154.11.15.73 <qubcpqajdr02.bb.telus.com> 4.216 ms 19.313 ms 23.510 ms 4 1.1.1.1 <one.one.one.one> 3.252 ms 2.992 ms 2.945 ms
Each '*' in the traceroute output represents one ICMP probe that received no response.
If there are three stars, then all three ICMP probes that were sent out had received no responses.
If the same output ('***') appears each time traceroute is run, the hop is not responding with ICMP messages. This may be expected or may be the result of a temporary overload, and does not by itself indicate an issue, particularly if routers later in the sequence do respond.
execute traceroute harvard.edu traceroute to harvard.edu (151.101.194.133), 32 hops max, 3 probe packets per hop, 72 byte packets 1 10.31.12.1 2.966 ms 2.809 ms 2.979 ms 2 154.11.6.192 15.983 ms 19.186 ms 14.981 ms 3 * * * 4 151.101.194.133 <harvard.edu> 16.532 ms 16.722 ms 14.887 ms execute traceroute 2.2.2.2 traceroute to 2.2.2.2 (2.2.2.2), 32 hops max, 3 probe packets per hop, 72 byte packets 1 10.31.12.1 2.863 ms 2.883 ms 2.988 ms 2 154.11.15.111 7.361 ms 14.821 ms 10.321 ms 3 * * * 4 * * * 5 * * * 6 * * *
execute traceroute 1.1.1.1
If IPv6 is enabled in the FortiGate's feature visibility settings and an IPv6 address is configured on an interface, it is possible to traceroute IPv6 destination addresses using the command below:
execute tracert6 ?
execute tracert6 2001:db8:a0b:13e0::6
Related article: Troubleshooting Tip: Using traceroute options from FortiGate CLI |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.