Bluehost.com Web Hosting $6.95

"traceroute -g" failed

This is a discussion on "traceroute -g" failed within the Linux Networking forums, part of the Linux Forums category; Hi, On my Linux box, named spice, I can do % traceroute www.yahoo.com But I can not do % traceroute -...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-04-2003
Weiguang Shi
 
Posts: n/a
Default "traceroute -g" failed

Hi,

On my Linux box, named spice, I can do
% traceroute www.yahoo.com

But I can not do
% traceroute -g www.yahoo.com spice

which, as I learned from Chapter 8 of Stevens's "TCP/IP Illustrated, vol 1",
should show the routers on the round trip.

The error message was

traceroute: sendto: Invalid argument

Has anyone had any luck with tracing the round-trip route on Linux before?

Thanks,
Weiguang
Reply With Quote
  #2 (permalink)  
Old 11-06-2003
David Efflandt
 
Posts: n/a
Default Re: "traceroute -g" failed

On Tue, 4 Nov 2003, Weiguang Shi <wgshi@namao.cs.ualberta.ca> wrote:
> Hi,
>
> On my Linux box, named spice, I can do
> % traceroute www.yahoo.com
>
> But I can not do
> % traceroute -g www.yahoo.com spice
>
> which, as I learned from Chapter 8 of Stevens's "TCP/IP Illustrated, vol 1",
> should show the routers on the round trip.


Does your 'man traceroute' show a -g switch (mine in Linux does not). The
one in Solaris does, but appears to do something else:

-g gateway
Specify a loose source route gateway. The user
can specify more than one gateway by using -g for
each gateway. The maximum number of gateways is 8
for IPv4 and 127 for IPv6. Note that some factors
such as the link MTU can further limit the number
of gateways for IPv6. This option cannot be used
with the -r option.

Likewise for NetBSD:

-g Specify a loose source route gateway (8 maximum).

I do not see an option for any of them to show routers on return trip.

--
David Efflandt - All spam ignored http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/
Reply With Quote
  #3 (permalink)  
Old 11-06-2003
Weiguang Shi
 
Posts: n/a
Default Re: "traceroute -g" failed

In article <slrnbqjcbu.akn.efflandt@typhoon.xnet.com>, David Efflandt wrote:
>Does your 'man traceroute' show a -g switch (mine in Linux does not). The
>one in Solaris does, but appears to do something else:


My Linux is Red Hat 7.2. And the man page of traceroute shows

-g Specify a loose source route gateway (8 maximum)

As for getting round trip hops, traceroute to the localhost itself with the
remote host as a gateway and use the loose source route option (Stevens, TCP/IP
Vol. I, Section 8.5).

Wei
Reply With Quote
  #4 (permalink)  
Old 11-06-2003
ynotssor
 
Posts: n/a
Default Re: "traceroute -g" failed

"Weiguang Shi" <wgshi@namao.cs.ualberta.ca> wrote in message
news:slrnbqkt0e.ra8.wgshi@namao.cs.ualberta.ca

> My Linux is Red Hat 7.2. And the man page of traceroute shows
>
> -g Specify a loose source route gateway (8 maximum)


The man page also shows "-g gateway", so your syntax of:

traceroute -g www.yahoo.com spice

should be expected to result in your error message of:

traceroute: sendto: Invalid argument



--
use hotmail com for any email replies


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0