LinuxQuestions.org
Review your favorite Linux distribution.
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 03-16-2005, 12:58 PM   #1
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Rep: Reputation: 15
lingering issue with linux behind linksys router


I have a Suse linux box behind a linksys router that's plugged in to my DSL box. I also have a windows machine plugged into the linksys router. i can network between the windows and linux machine and i can get to the internet through both but the linux box is just incredibly slow for web browsing. it pings www.google.com and various sites just fine. But if you bring up google or any other site in a web browser (mozilla or konqueror) it can have really long lag times or just time out.

I posted about this before and someone suggested putting the linksys router address as my gateway on the linux machine. I did that and now the time outs hardly every occur but it's still very sluggish. If I plug my linux machine directly into the DSL box then it works great.

What else should I look at? Any ideas anyone?
 
Old 03-16-2005, 03:22 PM   #2
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
Are you sure you have the correct DNS servers set on the Linux machine? Take a look at the DNS server settings on the Windows machine and make sure you have the same thing on the Linux machine.
 
Old 03-16-2005, 03:29 PM   #3
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
I'm using DHCP on both machines.
 
Old 03-16-2005, 03:35 PM   #4
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
Have you checked the DNS server addresses? There are settings that can be made in Linux that can prevent it from getting the DNS server addresses from the DHCP server.
 
Old 03-16-2005, 03:57 PM   #5
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
Can you explain in more detail please.

when i look at ifconfig the IP address the machine gets is 192.168.100.1

the nameservers adress it gets by DHCP. You want me to set that manually? to what? and why?

thanks
 
Old 03-16-2005, 06:48 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
well, resolving domain names is something that can frequently take a long time, and there can be significant differences between asking your router to resolve a name, and asking verizon's nameserver directly. that's why you should check to see which nameserver your windows box is using, and compare it to the nameserver your linux box is using. if they're the same you can eliminate this and try something else. but it's also possible they are not the same, and that's where your problem lies.

so...in windows: find the icon for the LAN in the system tray (bottom right corner) and double click it. then click the support tab, and the details button. several DNS servers should be listed. write them down, post them here.

in linux: cat /etc/resolv.conf and post the output.
 
Old 03-17-2005, 12:11 PM   #7
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
The result of ipconfig /ALL on my windows machine says the DNS servers are 192.168.0.1 and 205.171.3.65

My linux machine has the same in /etc/resolv.conf

search domain.actdsltmp
nameserver 192.168.0.1
nameserver 205.171.3.65
 
Old 03-17-2005, 03:20 PM   #8
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
There's still a remote possibility that there is come kind of compatability issue between the Linux box and the DNS forwarding taking place on the Linksys router but it's highly unlikely.

I think the next thing I'd check is the MTU size. If you look at the output of the ifconfig command on your Linux box, it should list the MTU size. In any of the Linksys routers I've worked with, there is a place where you can set the MTU size. Make sure the MTU size on the Linksys router is the same as or larger than the MTU size on the Linux machine. Then try it.

If that doesn't help, I think I'd hand edit the /etc/resolv.conf file on the Linux machine and remove the Linksys router as the DNS server. Just try using the outside DNS server. You won't need to reboot after you edit the file. See if that makes a difference.
 
Old 03-17-2005, 03:35 PM   #9
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
when you connected directly to the modem and experienced a noticable difference in performance, did you change the ethernet cable? it's possible the cable itself is defective (i've had this happen seemingly overnight, where my connection went from being fine to almost unusable, and a simple cable swap fixed the problem).

hmm. as an experiment, try pinging various sites using their ip addresses, and then ping them using their domain name, and see if there's a difference. ie, compare

ping www.google.com
ping 66.102.7104

ping www.linuxquestions.org
ping 64.179.4.149

and see if there's any difference. i believe the nameserver is only queried if you type in the name, so if there's a problem with the DNS server the ip pings should be faster right? i don't know, i'm struggling to think of what your problem could be.
 
Old 03-17-2005, 03:49 PM   #10
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
well i hand edited /etc/resolv.conf and took out the 192.168.0.1 (note that 192.168.0.1 is the DSL box and 192.168.1.1 is the linksys router - is that right?)

anyway, the same things happened. long time to load pages. pinging is reasonably fast even if i type www.google.com - pinging the ip address instead of the hostname does not produce output noticably faster.

The MTU on my linux machine is set to 1500. I tried 1492 with the same effects (i restarted eth0 after i made those changes).

I don't know how to set the MTU on my linksys router. I got to the admin page but i didn't see any settings for MTU (i have the blue 4 port befrs41 linksys router). Are you sure this model has that setting? anyone have any idea how to change that setting?

I know this is a pain - I really appreciate everyone's effort so far.
 
Old 03-17-2005, 04:01 PM   #11
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
Quote:
note that 192.168.0.1 is the DSL box and 192.168.1.1 is the linksys router - is that right?
i dont know, i've never even considered the DSL modem itself....i assume that's what you're talkign about right? try putting 192.168.1.1 in resolv.conf and see if that helps (i can't imagine a modem acting as a nameserver, whereas the router probably does. so confirm 192.168.1.1 is your router, and try it out in resolv.conf)

Last edited by mcd; 03-17-2005 at 04:02 PM.
 
Old 03-18-2005, 08:08 AM   #12
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
I've used the befrs41 and befrs81 routers in the past. It seems to me they both had a place where you could change the MTU size. Check all the configuration pages to see if you can find it. I know the configuration pages were different for each of them so maybe it was just the befrs81.

I'm with mcd. I find it very odd that both your dsl modem and your Linksys router both have private IP addresses. How do you have your Linksys router set up, just to use a static IP address or is it actually getting an IP address on the WAN port from the DSL modem?

Is the dsl modem one of those Westell modem/router combination devices? If it is, it should already have a firewall built in to it. Perhaps the Linksys befrs41 is a device you don't need on your network. You might get buy with just using a switch to connect all of your PCs to the modem.
 
Old 03-18-2005, 10:52 AM   #13
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
Why are you trying to resolve DNS requests to the Linksys or the DSL modem? I'm not sure this works and all that will happen is that you will we waiting for a timeout to then try the real server. The best that the Router or modem could do is proxy the request to the real DNS servers youve got configured. As both boxes can see the real DNS servers directly cut out the middle man.

You say your PC is using 192.168.100.1 while your router is 192.168.1.1. If the mask is 255.255.255.0 then these are on different subnets and I'm surprised it works at all.

All 3 devices should have an address in the same subnet. This means that any of the digits masked with 255 the network number should be the same. So by default on the linksys all devices should use 192.168.1.x.

So lets say the linksys is 192.168.1.1 255.255.255.0 You then need to assign a DHCP range on it of say 192.168.1.10 to 192,.168.1.20.

Also in the DHCP config you need to assign 192.168.1.1 as your default gateway and 205.171.3.65 as your nameserver.

Both PC's should now pick up this info via dhcp and it should all work.

Cheers

Pete

Last edited by baldy3105; 03-18-2005 at 10:54 AM.
 
Old 03-18-2005, 11:30 AM   #14
pfunk
Member
 
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104

Original Poster
Rep: Reputation: 15
Sorry Pete, do i feel like an idiot - i mistyped that IP address - the ip address of my XP and Linux machines are 192.168.1.100 and .101 - you're right i don't think it would work otherwise.

mcd and conwanrl, you're right the linksys router address is statically set to 192.168.1.1 - that is the way it was when i bought it. I could change it on the admin page but i have to change it to something specific. there is no option to get it from the DSL modem.

I don't think my modem is a modem/router combo. it says nothing about that in the booklet for the device.
 
Old 03-18-2005, 02:44 PM   #15
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
ok, so make sure that route -n lists 192.168.1.1 as your gateway, and try /etc/resolv.conf with this:

search domain.actdsltmp
nameserver 192.168.1.1
nameserver 205.171.3.65

see if that makes a difference. the reason i suggest trying your router as a nameserver first is that (i believe) most linksys routers act as cached nameservers by default, so it can *sometimes* speed up name resolution. but baldy is probably right, that you'd be better off removing 192.168.1.1 from resolv.conf. it's a small change though, so my advice is try both and see what happens.

also, do you have a firewall? i had some trouble with name resolution because i was blocking outbound traffic, iirc i had to open udp port 53 or something. but i had different symptoms, i think all connections just timed out.
 
  


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
linksys router in linux reefa Linux - Networking 7 03-14-2005 02:19 AM
Linksys router question on Linux? wardialer Linux - Security 3 02-03-2005 06:26 PM
LINKSYS vs LINUX Router? bryan1138 Linux - Security 1 01-19-2004 03:53 PM
Linksys router + linux problem demowipper Linux - Networking 21 10-08-2003 08:09 PM
Linux Windows Linksys Router? Tuzinor Linux - Networking 0 12-02-2001 09:13 PM

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

All times are GMT -5. The time now is 02:53 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