LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2006, 04:34 PM   #1
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Rep: Reputation: 47
traceroute


Hello
I tried the 'traceroute' command. It didn't work.
I mean the 'traceroute' should work.
What is the problem?

Your comments are deeply appreciated.


[root@c83-250-111-68 nissanka]# traceroute computerhope.com
bash: traceroute: command not found
[root@c83-250-111-68 nissanka]#

[root@c83-250-111-68 nissanka]# traceroute google.com
bash: traceroute: command not found
[root@c83-250-111-68 nissanka]#

[root@c83-250-111-68 nissanka]# traceroute www.google.com
bash: traceroute: command not found
[root@c83-250-111-68 nissanka]#

[Here I logged on as a root user. I tried it without logging on as a root user too.]

---------------------------------------------------------------------------------------

The 'ping' command worked fine.
PING google.com (64.233.187.99) 56(84) bytes of data.
64 bytes from 64.233.187.99: icmp_seq=1 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=2 ttl=236 time=153 ms
64 bytes from 64.233.187.99: icmp_seq=3 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=4 ttl=236 time=159 ms
64 bytes from 64.233.187.99: icmp_seq=5 ttl=236 time=151 ms
64 bytes from 64.233.187.99: icmp_seq=6 ttl=236 time=156 ms
64 bytes from 64.233.187.99: icmp_seq=7 ttl=236 time=151 ms
64 bytes from 64.233.187.99: icmp_seq=8 ttl=236 time=151 ms
64 bytes from 64.233.187.99: icmp_seq=9 ttl=236 time=209 ms
64 bytes from 64.233.187.99: icmp_seq=10 ttl=236 time=154 ms
64 bytes from 64.233.187.99: icmp_seq=11 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=12 ttl=236 time=153 ms
64 bytes from 64.233.187.99: icmp_seq=13 ttl=236 time=157 ms
64 bytes from 64.233.187.99: icmp_seq=14 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=15 ttl=236 time=151 ms
64 bytes from 64.233.187.99: icmp_seq=16 ttl=236 time=154 ms
64 bytes from 64.233.187.99: icmp_seq=17 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=18 ttl=236 time=155 ms
64 bytes from 64.233.187.99: icmp_seq=19 ttl=236 time=152 ms
64 bytes from 64.233.187.99: icmp_seq=20 ttl=236 time=154 ms
64 bytes from 64.233.187.99: icmp_seq=21 ttl=236 time=151 ms
64 bytes from 64.233.187.99: icmp_seq=22 ttl=236 time=151 ms
 
Old 02-07-2006, 04:45 PM   #2
accessrichard
Member
 
Registered: Apr 2005
Distribution: Fedora Core (latest version)
Posts: 156

Rep: Reputation: 30
Since the traceroute command is not found, I would make sure to check the traceroute rpm is installed.

rpm -qa | grep traceroute

If the traceroute program is installed, I would do a search for traceroute, and make sure its location is in yor PATH environment variable.
 
Old 02-07-2006, 05:01 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
type
Code:
whereis traceroute
and it will tell you the absolute path of the binary. If you don't get any output then that means it is not installed on your system.
 
Old 02-07-2006, 05:03 PM   #4
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
find / -name traceroute

command not found?

yum install traceroute

rpm -i traceroute

coreutils might also be checked.
 
Old 02-08-2006, 07:25 AM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
Quote:
Originally Posted by sipsipi
find / -name traceroute

command not found?

yum install traceroute

rpm -i traceroute

coreutils might also be checked.

if you add 2> /dev/null to the find command so it is:

Code:
find / -name traceroute 2> /dev/null
you won't have to deal with all those annoying "Permission Denied" error messages. 2 stands for stderr so that extra bit is telling it to redirect the error messages to the bit bucket.
 
Old 02-08-2006, 08:10 AM   #6
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I thank everybody for the replies. As I have an examination on Friday, I am studying hard and have no time for addtional work. The test is on Data communication. I must know stuff like subnet calculations, Ethernet aspects, broadcast/collision domains, etc. I must concentrate the studies. As a matter of fact of this command was mentioned by my teacher and showed us on his Windows computer. I don't work with windows.

I will attend this later on; I mean after the examination.





The following are the results. It is obvious that I have to install some other stuff.
------------------------------------------------------------------------------

[nissanka@c83-250-106-249 ~]$ find / -name traceroute 2> /dev/null
[nissanka@c83-250-106-249 ~]$


--------------------------------------------------------------------------------


[nissanka@c83-250-106-249 ~]$ rpm -qa | grep traceroute
[nissanka@c83-250-106-249 ~]$
--------------------------------------------------------------------------------
[nissanka@c83-250-106-249 ~]$ whereis traceroute
traceroute:
[nissanka@c83-250-106-249 ~]$
---------------------------------------------------------------------------


[nissanka@c83-250-106-249 ~]$ find / -name traceroute
find: /lost+found: Permission denied
find: /etc/skel/tmp: Permission denied
find: /etc/default: Permission denied
find: /etc/cups/certs: Permission denied
find: /etc/cups/ssl: Permission denied
find: /etc/shorewall: Permission denied
find: /tmp/gconfd-root: Permission denied
find: /var/tmp/kdecache-root: Permission denied
find: /var/lib/xdm: Permission denied

[ There is a lot here. I don't want paste everything.]
 
Old 02-08-2006, 08:37 AM   #7
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
It might not be traceroute. Looking on my Mandriva 2006 system, I don't have traceroute either, but I do have traceroute6 (under /usr/sbin). I think I would add a wildcard to that find command to see if you get anything back.

Code:
find / -name "traceroute*" 2> /dev/null
 
Old 02-08-2006, 04:27 PM   #8
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
Hobbletoe

I got the following results. What does it means?

[nissanka@c83-250-111-195 ~]$ find / -name "traceroute*" 2> /dev/null
/usr/sbin/traceroute6
[nissanka@c83-250-111-195 ~]$
 
Old 02-08-2006, 06:16 PM   #9
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
it means you have the command it is just named traceroute6. I don't know if there is any huge difference between traceroute and traceroute6. You can do this command as root

Code:
ln -s /usr/sbin/traceroute6 /usr/bin/traceroute
that will make a symbolic link to the traceroute6 so whenever you typed traceroute it will run that command. or you can make the link name something shorter if you want. do man ln for more info.

Last edited by dr_zayus69; 02-08-2006 at 06:17 PM.
 
Old 02-08-2006, 06:21 PM   #10
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Like dr_zayus69 said, it appears to be traceroute, but under a different name. I'd definately do a man traceroute6 to see if it provides the same functionality as traceroute.
 
Old 02-09-2006, 03:00 AM   #11
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
No it didn't work. The making of the link worked fine.
Not the command;Why is that?

[nissanka@c83-250-111-195 ~]$ su root
Password:
[root@c83-250-111-195 nissanka]# ln -s /usr/sbin/traceroute6 /usr/bin/traceroute



[root@c83-250-111-195 nissanka]# traceroute computerhope.com
traceroute: unknown host computerhope.com

[root@c83-250-111-195 nissanka]# traceroute google.com
traceroute: unknown host google.com

[root@c83-250-111-195 nissanka]# traceroute www.google.com
traceroute: unknown host www.google.com
[root@c83-250-111-195 nissanka]#
 
Old 02-09-2006, 07:25 AM   #12
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Well, it appears that for whatever reason, your DNS server isn't being hit, so it can not resolve a host to an IP. Can you ping one of those sites?

Code:
$ ping computerhope.com
If so, then I would really start digging around into traceroute6 (Man page) to see if maybe you need another option set, which I don't think is the case. It really looks to me as if your computer is not talking to the DNS server.
 
Old 02-09-2006, 07:29 AM   #13
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
A quick Google search told me that
traceroute6 is actually the IPv6 version of traceroute.

Since you're probably using IPv4, not v6, traceroute6 won't work.

After the examination, you should know the differences between the 2
My Data Communications courses are too long ago...

As
http://linuxreviews.org/man/traceroute6/
mentions, traceroute6 is part of the "iputils" package.
Maybe you can download a version for your distro and install it?
 
Old 02-09-2006, 07:36 AM   #14
Gins
Senior Member
 
Registered: Jul 2004
Location: Germany
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662

Original Poster
Rep: Reputation: 47
I am using IPV4. It is said that the IPV4 would be the standard until 2012 in this country. My teacher doesn't teach us IPV6; he thinks it is not necessary.
 
Old 02-09-2006, 10:20 AM   #15
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Then I suggest you go to
http://www.rpmfind.net
and download and install the "traceroute" package for your distro (Mandrake).
You may also want to grab the latest update of the "iputils" package and update the one
you have already installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
traceroute overproof Linux - Newbie 5 02-01-2015 05:30 PM
traceroute? prodigius Linux - Networking 12 02-01-2015 02:52 PM
traceroute becky_starr Linux - Networking 1 03-17-2004 08:48 AM
traceroute mint567 Linux - Networking 3 11-23-2003 02:37 PM
Traceroute help sikandar Linux - Software 1 09-23-2003 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration