LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-21-2004, 12:56 PM   #1
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Rep: Reputation: 30
Linksys BEFSR41 + Slackware 9.1 TRACEROUTE


Hello,
This doesn't seem to be a major problem, but I just installed a Linksys befsr41 ver3 router, and installed a default route -gateway as 192.168.1.1.


This works well and I seem to be able to ping everything. The one thing I noticed was the inability to traceroute. I have a WinXP box in the other room (The linux box is 192.168.1.101 and WinXP is 192.168.1.100 ---> both static meaning DHCP is turned off in router...)
--anyway the winxp box can tracert etc.

Back to Linux: I have 3 entries in my route table. (The loopback, the 192.168.1.0 net and the default GW) . What am I missing? I would really like to be able to traceroute from my slackware box. Hmmmm?

Thanks ahead of time,


BC

Last edited by bonecrusher; 05-21-2004 at 12:57 PM.
 
Old 05-21-2004, 06:21 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
The netmask?
 
Old 05-21-2004, 11:51 PM   #3
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
the subnet

Quote:
Originally posted by Linux.tar.gz
The netmask?

Well since it is a class c address and not subnetted further I assumed it should be 255.255.255.0 ??
As I mentioned I am able to ping outside of network (to Internet) - I just can't get anything from a traceroute. On a tcpdump it appears that it is receiving something from the address (a UDP packet I think) when I am in the middle of running traceroute, but the actual traceroute just comes back with " * * * ".

-bc

Last edited by bonecrusher; 05-22-2004 at 12:05 AM.
 
Old 05-22-2004, 10:26 AM   #4
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
More...

I wanted to note that I also had the same problem with knoppix (live distro) on my p4. Everything worked great when I got it up and going with the right driver (3c940 gig/ethernet ).
But, when I routed it to the Internet, I would have web working, ftp etc etc, just NO TRACEROUTE. And again, WinXP can do the "tracert" under the same exact machine. I am thinking that maybe I am not routing correctly. Here is my routes on the slack machine:
(The routing table is the same on the knoppix boot):


bash-2.05b# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 1 0 0 eth0
bash-2.05b# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

AND HERE IS A PORTION OF "TCPDUMP" WHILE TRACEROUTING:

10:39:54.892988 shea101.homelinux.net.41249 > web1.linuxquestions.org.33436: udp 10 [ttl 1]
10:39:59.892287 shea101.homelinux.net.41249 > web1.linuxquestions.org.33437: udp 10 [ttl 1]
10:40:04.892300 shea101.homelinux.net.41249 > web1.linuxquestions.org.33438: udp 10
10:40:09.891778 shea101.homelinux.net.41249 > web1.linuxquestions.org.33439: udp 10



Well, it looks to me that it's right, but maybe I need one more route? I dunno.... I guess that is why I am here...

-bc

Last edited by bonecrusher; 05-22-2004 at 10:43 AM.
 
Old 06-09-2004, 11:24 AM   #5
nightswolf
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
udp vs icmp

I was having the same problem you were and I ran across your post while I was doing a search on google. I found out that windows uses icmp datagrams for traceroute. Linux traceroute runs using udp datagrams by default. As I didn't have my router configured to forward those udp ports to the system I was using to originate the traceroute I wasn't getting a response. If you look at the man page for traceroute you will see that you can change the traceroute to use icmp with -I. Ex : traceroute -I google.com
 
Old 06-09-2004, 01:10 PM   #6
bonecrusher
Member
 
Registered: Mar 2004
Location: St. Louis, MO
Distribution: Ubuntu, Debian, Slack, RH, Gentoo
Posts: 207

Original Poster
Rep: Reputation: 30
Re: udp vs icmp

Quote:
Originally posted by nightswolf
I was having the same problem you were and I ran across your post while I was doing a search on google. I found out that windows uses icmp datagrams for traceroute. Linux traceroute runs using udp datagrams by default. As I didn't have my router configured to forward those udp ports to the system I was using to originate the traceroute I wasn't getting a response. If you look at the man page for traceroute you will see that you can change the traceroute to use icmp with -I. Ex : traceroute -I google.com

Right on- I appreciate the input. I was wondering why it wasn't responding. I knew it had something to do with port/packet forwarding as it worked under windows but not linux.. (One of the few things that is reversed HA) Guess once again rtfm and I should pay more attn to man pages. Strange, because I always thought traceroute was a icmp based application. Oh well... thanks!


-bc

Last edited by bonecrusher; 06-09-2004 at 01:11 PM.
 
Old 06-09-2004, 09:33 PM   #7
nightswolf
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
;)

np. everyone else in the netops department at my work thought that linux used imcp for traceroutes, as do the majority of the websites that I found when I was looking for an explanation. Finally found one post where someone mentioned that linux traceroutes use udp by default. Looked at the man page, beat my head against the wall a few times, replied to your post, and reveled in the fact that I've finally purged redmond's blight from every system I own.
 
Old 03-08-2006, 02:44 PM   #8
zolax
LQ Newbie
 
Registered: Apr 2004
Posts: 20

Rep: Reputation: 0
right on. Could a conflict like this cause a problem between windows and linux like martygehre's:
http://www.linuxquestions.org/questi...d.php?t=100532
do you guys know what the deal is?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect SuSE 8.2 to Linksys BEFSR41 mbrew Linux - Networking 12 03-08-2006 03:13 PM
Problems with Linksys befsr41 ppain Linux - Newbie 3 03-08-2006 02:31 PM
Linksys BEFSR41 networking longbowbow General 7 03-08-2006 02:22 PM
Linksys BEFSR41 and linux Jasper33 Linux - Networking 2 03-08-2006 02:15 PM
befsr41 linksys badgers Linux - Hardware 4 03-08-2006 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:35 AM.

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