Questions tagged [traceroute]

Question about the route a request takes to arrive at, and return from its destination, particularly when using the 'traceroute' command-line tool.

Filter by
Sorted by
Tagged with
0 votes
0 answers
134 views

Traceroute not working as root, but work on other users

Traceroute is working on all users, but when running as root, everything is ’ * * * ’ # As root user [root]# /usr/bin/traceroute 1.1.1.1 -I traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 60 byte ...
Saman's user avatar
  • 1
0 votes
0 answers
265 views

What is "mtr --report --tcp --port=22" telling me?

RHEL 8.4 Here's the output of mtr to a server for which the firewall is open to port 22: $ mtr --report --tcp --port=22 --no-dns Server1 Start: 2023-08-09T21:49:20-0400 HOST: foo.example.com ...
RonJohn's user avatar
  • 1,148
0 votes
1 answer
80 views

Traceroute from VM guest does not go past Host PC to internet

I have created an Ubuntu virtual machine on my PC, and I was trying out the traceroute command, as I need it for a college project. However, when I ran "traceroute www.google.com", what I ...
Boni Daniel's user avatar
1 vote
2 answers
68 views

Copying specific output of traceroute and ping commands into a file

I'm fairly new into Linux, so don't be harsh on me :) I'm currently sitting under ISP's CGNAT, and the only way I can connect to my home server outside of the network is by accessing it through WAN IP ...
Le Gharo Tyffler's user avatar
0 votes
1 answer
122 views

Unable to send more than 60 bytes TCP packets using traceroute or tcptraceroute

[root@host33cn ~]# traceroute -M tcp -f 255 -m 255 -q 10 -w 1 -p 9101 10.11.1.6 1400 traceroute to 10.11.1.6 (10.11.1.6), 255 hops max, 60 byte packets 255 host05cn.zen.com (10.11.1.6) 0.112 ms 0....
veeranjaneya reddy's user avatar
0 votes
1 answer
536 views

Problems with traceroute and tracepath

I'm having troubles with traceroute and tracepath. I'm doing some tests with my network trying to ping and trace Google DNS (8.8.8.8) The problem is that every time a run the command, it shows me a ...
Jonathan López's user avatar
0 votes
1 answer
16 views

Getting traced route list after sending packet from source to destination

So after I realized internet is just connection between routers and every routers have IP address, I want to know route of my already traversed packet. I mean, look this example case: Suppose my ...
Muhammad Ikhwan Perwira's user avatar
0 votes
0 answers
55 views

Routing to a specific IP-Address fails while network is fine

This is my first post to Stackexchange so if it lacks any neccessary information I can add this after posting. My problem is that I am trying to reach the api of riot games. I have a Debian-...
Fabsi's user avatar
  • 1
0 votes
1 answer
843 views

What could be causing traceroute to only show gateway and final destination?

I am expecting trace route to show pings all along the route like as on my computer (as is often true, there are a few "Request timed out"). THis is meant to demonstrate the problem its not ...
bluesquare's user avatar
0 votes
0 answers
67 views

Is there anything one can do if traceroute shows issues along the path?

Since few days I cannot reach anymore a site: assist.zoho.com (or assist.zoho.eu). Here the output of traceroute: $ traceroute -I assist.zoho.com traceroute to assist.zoho.com (136.143.191.95), 30 ...
Mark's user avatar
  • 723
0 votes
2 answers
1k views

How to identify unknown devices in traceroute or ping

In attempting to troubleshoot a failed ping from the Windows host to the IP address of one Linux guest virtual machine (192.168.1.19), I did a traceroute: $ traceroute 192.168.1.19 traceroute to 192....
Nagev's user avatar
  • 439
-1 votes
2 answers
1k views

Traceroute to check number of hops between my laptop and google.com

I am new to Linux and trying to learn traceroute command in ubuntu terminal. I entered ping command in my terminal to google.com and the results are: vscoder@vscoder-VirtualBox:~$ ping google.com PING ...
Mayank Kumar Thakur's user avatar
1 vote
1 answer
2k views

how to use cURL on specific route

I have 2 ISPs on multi-homing and am trying to use curl http://v6.ipv6-test.com/api/myip.php to retrieve my current IPv6 address and store it on a log. But due to having 2 ISPs, I need to do it for ...
Hikari's user avatar
  • 252
0 votes
0 answers
518 views

traceroute from one server to another in the same network works but not vice-versa

I have two RHEL7.6 servers (s1, s2) connected in the same subnet. When I try traceroute from s1 to s2, it fails s1$ traceroute s2 traceroute to s2 (s2_ip), 30 hops max, 60 byte packets 1 * * * 2 *...
Ibrahim Quraish's user avatar
0 votes
2 answers
1k views

Change default route with no gateway for second NIC card

I have 2 NICs and the 2nd one (with ip, 10.1.1.2) is connected to private n/w. A machine (windows with ip, 10.1.1.3) on private n/w was able to ping this machine which is a Linux one. But from this ...
the sudhakar's user avatar
4 votes
1 answer
3k views

Asterisks keep going in traceroute

I know that asterisks mean that the router didn't send the ICMP message back saying that TTL was 0 and I had to dump the request. but sometimes for some cases when I want to check for the path of my ...
Amirreza A.'s user avatar
0 votes
1 answer
2k views

traceroute: invalid option -- 'T' (Ubuntu 19.10)

I am trying to get traceroute installed with: $ sudo apt-get install inetutils-traceroute $ traceroute --version traceroute (GNU inetutils) 1.9.4 Copyright (C) 2015 Free Software Foundation, Inc. ...
u123's user avatar
  • 971
0 votes
0 answers
2k views

iptables: how to block traceroute and allow ping?

Hi first sorry for my english. I'm trying to block traceroute --icmp (tracert) while still permitting the ping, using iptables. The problem is that when I permit the traffic of echo request, to allow ...
ZaKeR GFX's user avatar
4 votes
1 answer
5k views

Ifup interface failing with answers: file exists

I am having issues configuring three blocks on my system. I used to add the addresses of each block manually, but I discovered that I can add the entire block using the command "ip route add ...
Monstrum's user avatar
2 votes
0 answers
766 views

traceroute only shows first hop

I'm trying to use traceroute on a VMware guest Linux machine, and this is the result : traceroute to 172.217.9.228 (172.217.9.228), 30 hops max, 60 byte packets 1 10.10.0.1 183.499 ms 193.008 ms ...
Navid's user avatar
  • 126
2 votes
1 answer
4k views

Traceroute does not work, output is * * *

I'm trying to check how many servers are between me and a domain server(google etc.). I'm using Linux (Ubuntu) subsystem on Windows. The traceroute command wasn't working, so I used sudo apt-get ...
Bostjan Bolovi's user avatar
2 votes
1 answer
5k views

It is possible to traceroute without touching ICMP?

I often run into a situation where I want to traceroute an IP without root or NET_RAW cap in Linux. I have attempted to send a UDP packet with a small TTL but no ttl error is emitted at all. It seems ...
Dummmy's user avatar
  • 213
-1 votes
2 answers
5k views

How do you count the number of hops?

I'm trying to connect to the GAN (Internet) and my final network node is 10.200.0.1 How do I count the number of Hops to reach this final network node? I've tried traceroute 10.200.0.1 But it only ...
Rakata Infinite Empire's user avatar
2 votes
1 answer
15k views

How does MTR (run with TCP protocol) calculate the loss rate?

I thought TCP protocol itself will guarantee not to loose any bytes while connecting. About this viewpoint, please refer to https://stackoverflow.com/questions/23841896/will-tcp-connection-lose-...
Daniel Mo's user avatar
1 vote
1 answer
9k views

Traceroute return !x as MTU size

I have 2 directly connected machine running centos 7, wanted to check MTU between them. So used traceroute tool to find it out. Topology: M23(10.1.1.20) <-------> M24(10.1.1.10) Expected ...
Mohan's user avatar
  • 143
2 votes
1 answer
8k views

What UDP destination port(s) does mtr -u use?

traceroute sends UDP packets to port 33434 (and up) by default. I assume mtr -u (manual, homepage, github) does the same, but I can't find any documentation or test results to verify the destination ...
Jacktose's user avatar
  • 441
0 votes
0 answers
673 views

Script to check server status from polybar

I'm currently running Arch with i3 and polybar. I also maintain 6 servers, so to make my life easier I made a series of shell scripts to notify me if a server is down. The scripts work, but it's far ...
discipulus's user avatar
1 vote
0 answers
541 views

Certain ipv6 hosts hang on certain machines on the network

EDIT: Fixed by switching internet service provider ¯\(°_o)/¯ I have this annoying issue where some of the machines on my network will hang when looking up connecting to certain IPv6 addresses, in ...
unhammer's user avatar
  • 375
2 votes
0 answers
6k views

How do I figure out why I cant connect using "wget" to an external web site?

I'm using CentOS 7. I'm trying to figure out why I can't connect via wget to an external web site, although most other web sites work and I can connect to this other web site from other computers. ...
Dave's user avatar
  • 2,548
19 votes
3 answers
24k views

Why does traceroute display many ip addresses for the same hop?

Here is the route path from my home to sina.com.cn. traceroute -n sina.com.cn traceroute to sina.com.cn (202.108.33.60), 30 hops max, 60 byte packets 1 192.168.31.1 0.476 ms 0.587 ms 0.695 ms ...
scrapy's user avatar
  • 333
1 vote
1 answer
420 views

Query regarding traceroute and ping

While executing the traceroute command, why does the route to same host change at different times of the day? Why does traceroute not find complete paths to some hosts? Is it possible to find the ...
Robinson Crusoe's user avatar
2 votes
2 answers
7k views

what firewall rules does traceroute need?

The network team told me I only needed ICMP 8 bi directional for traceroute to work but it still does not seem to be working. ping does work with ICMP 8 being open but what do I need to open for ...
kerplunk's user avatar
  • 101
1 vote
1 answer
1k views

Why does ping resolve to a different address than traceroute? and lynx?

We have a managed server with centos, recently it starts showing strange behavior: root@server [/tmp]# ping www.google.com PING www.google.com (172.217.8.196) 56(84) bytes of data. 64 bytes from ...
Ralf Jahr's user avatar
  • 113
3 votes
1 answer
1k views

traceroute, only print gateway information

I can't find any info regarding this in the man-pages. How would one go about only printing the gateway using traceroute?
Lithicas's user avatar
  • 133
2 votes
1 answer
288 views

How to find the MAC address of devices in network path when I do a tracerout?

Scenario: I am doing traceroute (or any path trace program) from sydney-server1 to london-server2. I can see the route its going with device name and IP address. Is there anyway, I can get those ...
Gineesh's user avatar
  • 187
13 votes
1 answer
13k views

What is the difference between tracepath and traceroute or are they same?

I see two commands giving similar output but have no idea if there is a difference between the two or not. For e.g. [$] tracepath debian.org ...
shirish's user avatar
  • 12.4k
2 votes
1 answer
9k views

traceroute have error bind: Cannot assign requested address

I have the below error: [root@~]# traceroute -s 'publicIP' 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets **bind: Cannot assign requested address** But when i did not enter ...
Jun10r's user avatar
  • 21
0 votes
1 answer
2k views

traceroute: How to show TTL along hops

How could I show remaining time to live counters in mtr or traceroute results? $ mtr -r -w -c 10 91.250.127.30 Start: Mon May 15 12:20:44 2017 HOST: <snip> Loss% Snt ...
sebastianwagner's user avatar
1 vote
1 answer
2k views

Why is my trace route (mtr) binding a UDP port when it runs?

I occasionally audit the open ports on my machine to make sure I fully understand my attack surface. When I did this today, I discovered that mtr was listening on a high UDP port (which seemed to ...
Att Righ's user avatar
  • 1,196
2 votes
1 answer
513 views

How to use dnstraceroute?

I understand how traceroute works, I give it a domain, it takes 3 packets, tries to go over intermediary servers to the end server. For instance - [$] traceroute phoronix.com traceroute to ...
shirish's user avatar
  • 12.4k
0 votes
1 answer
17k views

Can't traceroute on Kali Linux

I have a kali VM running inside Virtual Box. Traceroute does not work, the immediate resolution of host to IP works, but every hop fails until it reaches max hops. This happens for any host. My VM ...
iainpb's user avatar
  • 113
2 votes
2 answers
6k views

How to output mtr command in human-readable form to standard output?

When I run sudo mtr 4.2.2.1, it runs in the Terminal in a loop. I'd like to keep the same format as below: Host 1. 192.168.15.1 ...
kenorb's user avatar
  • 21k
1 vote
3 answers
1k views

How does MTR work in detail? Shouldn't packet loss be observed to increase linearly?

If so, how come do we see packet loss be distributed unevenly among hops? That is, if there is 5 percent loss in the first hop, the following hops, should start out with 95 percent of the packets ...
user avatar
1 vote
3 answers
265 views

Traceroute - approach the place with connectivity issues

I'm using the traceroute utility to test network connectivity. The problem is usually with slow speed - that means, the webpages in the browser are often displayed very slowly. Sometimes the speed of ...
xralf's user avatar
  • 15.4k
1 vote
2 answers
543 views

Traceroute works (very slowly) but internet doesn't work

Ping doesn't work. And can't connect through Firefox. When entering IP in URL bar it shows "The connection has timed out, The server at 35.1.1.48 is taking too long to respond." after like a minute. ...
Tadzik95's user avatar
1 vote
1 answer
645 views

how to use only certain addresses in subnet for traceroute?

First I try running nmap -sn ip/24 to check live hosts on a subnet. It returns that all 255 hosts are live which I know is not true. I do fping -g ip/24 and get that 7 hosts are up which makes more ...
Austin's user avatar
  • 231
4 votes
1 answer
997 views

Why is mtr more reliable than traceroute, on my ISP?

My traceroute6 results are truncated, while the results from mtr span the whole path. Why would this happen? mtr uses ICMP ECHO by default, just like traceroute. Running traceroute under sudo does ...
sourcejedi's user avatar
  • 50.3k
0 votes
2 answers
981 views

Traceroute -- where does it end when user is SSHed?

When you traceroute a user SSHed into a server, does the traceroute end with the server or the computer of the person SSHing? Or is the answer more nuanced?
user avatar
0 votes
2 answers
268 views

Tracking traffic through a filtered intranet connection

I am performing a traceroute (I also tried a curl out of curiosity, that just stalls) on a publicly available website (so I know my computer should be able to and is allowed to reach it). However, ...
user avatar
2 votes
2 answers
3k views

Why does traceroute send three packets?

I'd like to learn why traceroute sends three packets per hop by default. (Nothing important, I'm just curious). Edit: packages != packets
rkhff's user avatar
  • 795