Network diagnostic tool for IPv4/IPv6 - traceroute/traceroute6

CK CK 3788 
Created at  
1,915 0 0

Traceroute and Traceroute6 are both network diagnostic tools, but they are designed for different network protocols. Here's the key difference between them:

Traceroute is for IPv4, while Traceroute6 is for IPv6. Depending on the network infrastructure you are dealing with, you would choose the appropriate tool to trace the route of packets. Many modern systems support both IPv4 and IPv6, so you might use either tool based on the type of address you're working with.

Sometimes, you may need to check if remote server is reachable by traceroute like below:

traceroute foo.com

Above shows the result like below which is based on IPv4

% traceroute yahoo.com
traceroute: Warning: yahoo.com has multiple addresses; using 98.137.11.164
traceroute to yahoo.com (98.137.11.164), 64 hops max, 52 byte packets
 1  192.168.0.1 (192.168.0.1)  13.124 ms  7.384 ms  8.167 ms
 2  12.197.211.17 (12.197.211.17)  20.829 ms  9.853 ms  7.983 ms
 3  32.142.247.33 (32.142.247.33)  25.013 ms  67.076 ms  31.878 ms
 4  * * *
 5  * * *
 6  * * *
 7  32.130.90.123 (32.130.90.123)  8.407 ms  30.977 ms  8.105 ms
 8  lax-b23-link.ip.twelve99.net (62.115.45.150)  11.794 ms  8.686 ms  7.936 ms
 9  sjo-b23-link.ip.twelve99.net (62.115.116.40)  19.611 ms  15.306 ms  16.512 ms
10  sea-b1-link.ip.twelve99.net (62.115.132.153)  215.500 ms  89.163 ms  71.839 ms
11  oathholdings-ic-328471.ip.twelve99-cust.net (62.115.36.197)  147.092 ms  35.657 ms  40.370 ms
12  ae-7.pat2.gqb.yahoo.com (209.191.65.45)  118.945 ms
    ae-10.pat1.gqb.yahoo.com (209.191.65.47)  48.253 ms
    ae-7.pat2.gqb.yahoo.com (209.191.65.45)  102.889 ms
13  et-0-0-8.msr2.gq2.yahoo.com (66.196.67.117)  48.582 ms
    et-19-0-8.msr2.gq2.yahoo.com (66.196.67.119)  37.961 ms
    et-8-0-8.msr2.gq1.yahoo.com (66.196.67.115)  38.643 ms
14  et-1-1-0.clr1-a-gdc.gq2.yahoo.com (98.136.158.173)  112.520 ms
    et-0-0-0.clr2-a-gdc.gq2.yahoo.com (98.136.158.183)  45.265 ms  120.968 ms
15  lo0.fab7-1-gdc.gq2.yahoo.com (98.136.159.241)  36.815 ms
    lo0.fab3-1-gdc.gq2.yahoo.com (98.136.159.245)  37.790 ms
    lo0.fab6-1-gdc.gq2.yahoo.com (98.136.159.242)  49.296 ms
16  usw1-1-lbc.gq2.yahoo.com (98.136.158.192)  102.752 ms  45.503 ms
    usw2-1-lbc.gq2.yahoo.com (98.136.158.193)  131.550 ms
17  media-router-fp73.prod.media.vip.gq1.yahoo.com (98.137.11.164)  40.355 ms  42.813 ms  44.017 ms

If you want to traceroute based on IPv6, you can try it by traceroute6

% traceroute6 yahoo.com
traceroute6: Warning: yahoo.com has multiple addresses; using 2001:4998:44:3507::8000
traceroute6 to yahoo.com (2001:4998:44:3507::8000) from 2600:381:f52c:3424:4ff:166c:f229:f3a6, 64 hops max, 28 byte packets
 1  2600:381:f52c:3424:3808:33b5:819c:8b1a  30.751 ms  8.387 ms  11.926 ms
 2  2606:ae00:b800:6111::d  39.669 ms *  33.151 ms
 3  2600:300:20e8:407::3  22.864 ms  47.992 ms *
 4  2001:1890:ff:ffff:12:122:83:80  48.581 ms  50.918 ms  56.617 ms
 5  2001:1890:ff:ffff:12:122:83:80  46.537 ms  41.549 ms  45.607 ms
 6  * * *
 7  2001:1890:f6:1803::2  49.108 ms  41.104 ms  55.822 ms
 8  * *
    lax-b23-link.ip.twelve99.net  108.467 ms
 9  lax-b22-v6.ip.twelve99.net  55.200 ms  65.065 ms  53.739 ms
10  phx-b5-v6.ip.twelve99.net  69.897 ms * *
11  * * *
12  kanc-bb2-v6.ip.twelve99.net  118.755 ms
    yahoo-ic319092-dls-b23.ip.twelve99-cust.net  82.214 ms  241.806 ms
13  ae-13.pat1.dnx.yahoo.com  307.294 ms
    2001:1890:1fff:200:192:205:32:214  158.465 ms  114.450 ms
14  ae-5.pat2.nez.yahoo.com  129.263 ms  129.122 ms  147.892 ms
15  2001:4998:f000:1d::1  122.412 ms * *
16  2001:4998:47:e::1  95.201 ms  90.660 ms *
17  yahoo-ic319092-dls-b23.ip.twelve99-cust.net  95.143 ms
    ae-13.pat1.dnx.yahoo.com  100.133 ms  94.548 ms
18  et30.usw1-1-lbd.ne1.yahoo.com  133.918 ms
    et25.usw1-1-lbd.ne1.yahoo.com  98.666 ms
    ae-5.pat2.nez.yahoo.com  111.805 ms
19  et-19-1-1.msr2.ne1.yahoo.com  105.671 ms * *
20  * *
    et-12-0-1.msr1.ne1.yahoo.com  141.430 ms
21  2001:4998:47:3::1  115.500 ms * *
22  2001:4998:44:fa24::1  98.171 ms
    2001:4998:47:28::1  182.480 ms
    et27.usw2-1-lbd.ne1.yahoo.com  104.098 ms
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
Tags Network Diagnostic Tools traceroute traceroute6 Facebook X
Comments 0
  1. Why SPF and DKIM Are Essential for Linux Email Servers?
    24
  2. Upgrading to GCC 4.9.4 in CentOS 7 requires installing a newer version manually
    579
  3. Force no caching in Apache by modifying the .htaccess file using appropriate headers
    2,668
  4. Beyond your conventional memory size with swap file instead of a partition
    1,138
  5. Gmail requires all senders to authenticate with either SPF or DKIM.
    679
  6. Bash script to install postfix and sasl for sending email
    1,192
  7. Guide for tmux shortcuts - split current pane, toggle pane
    1,294
  8. Tistory remote blogging example based in CLI & PHP
    2,706
  9. Generate Let’s Encrypt Wildcard SSL Certificate
    625
  10. Preventing Unauthorized Image Crawling by Bots: A Clever Discovery and How to Address It
    1,725
  11. chmod by type (directory and file permission)
    733
  12. Check network port is open or not on CentOS 7
    1,186
  13. Change MySQL port number for security purpose
    815
  14. CentOS warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory on CentOS 7
    1,070
  15. Set up an SMTP server on CentOS 7
    726
  16. How to mount windows shared folder on Centos 6.8 - mount error 12 = Cannot allocate memory to the mount.cifs(8)
    911
  17. Configuring IP Address on Centos 6.7
    786
  18. Adding new cron job for automated processing on every 10 minutes on Centos 6.7
    1,329
  19. Set timezone and time on Centos 6.7
    540
  20. How to optimize MySQL automatically in CentOS Linux
    1,006
  21. File conversion to UTF in Schell Script
    1,021
  22. Server status checking by Shell Script
    1,514
  23. How can I increase MySQL max connections?
    458
Recently updated
  1. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    27
  2. Why SPF and DKIM Are Essential for Linux Email Servers?
    24
  3. How do I create animated background for Google Meet?
    19,712
  4. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    217
  5. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    85
  6. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    153
  7. Array of arguments passed to script in PHP
    85
  8. Invalid Auction Storms in Ad Tech
    93
  9. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    198
  10. The Two Clocks of Ad Server Architecture
    63
  11. Frequency Cap Architecture Overview
    509
  12. Collecting Proof-of-Play from 100,000 Screens
    141
  13. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    280
  14. What is RedisVL?
    105
  15. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    224
  16. TPU & GPU Cluster Management Tools
    232
  17. The Concept of Scaffolding in AI Agents
    221
  18. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    576
  19. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    253
  20. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    327
  21. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    197
  22. Machine Learning: Training vs. Ranking
    213
  23. The Continuous Learning Machine: Designing a Loop That Actually Turns
    217
  24. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    189
  25. Designing a Data Curation System Around a Vector Database
    215
  26. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    229
  27. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    649
  28. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    185
  29. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    207
  30. Understanding Data Lineage
    252