LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2005, 07:53 PM   #1
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
running a linksys router with linux behind it


simple problem but i cant seem to get Linux Slackware to run behind my router, it has a domain name failure when trying to go to google, yet can ping every pc on my network, and the router, but as soon as i ping google it says the network is unreachable, could someone help me on this? thanks
 
Old 02-13-2005, 08:11 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
edit /etc/resolv.conf

put in
nameserver 123.123.123.123

(get your nameservers from the status page on your router)
 
Old 02-13-2005, 08:48 PM   #3
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
Does it resolve www.google.com to an IP? Sounds like it does. As you're getting ICMP unreachable responses, double check that your default gateway is pointing to the IP of the linksys...
 
Old 02-14-2005, 12:20 PM   #4
Erik Thorsson
Member
 
Registered: Jun 2004
Location: NYC
Distribution: Fedora Core 1
Posts: 64

Rep: Reputation: 15
Usually I can just put the IP of my router as nameserver and it apparently forwards the DNS requests to the nameservers it gets from DHCP.

# cat resolv.conf
nameserver 192.168.0.1

This is with a D-Link DI-624. Maybe Linksys is diff.

-E
 
Old 02-14-2005, 07:27 PM   #5
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
well, when i ping it does say network unreachable, when i acess it by konqeur *sp?* it says could not resolve host *or something similar, i dont have the machine running here for me to look at* ill try cat on that file and see what comes up. if you have anymore information please feel free to tell me. im kinda new to linux but have been real interested in it *if it werent for the lack of gaming support, id use it as my main OS ^^*
 
Old 02-15-2005, 07:11 AM   #6
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
well, secesh already pointed you to the right resolution:

edit add to the /etc/resolv.conf
nameserver ip_address_of_your_ISP_provider

next ping your ISP's name. It should resolve ip address.
So unless you do that, there is no point to look for something else.

and no this is wrong to put ip address of your router there.
It will slow down network connection
 
Old 02-15-2005, 08:51 AM   #7
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
unfortunately the nameserver on resolv.conf is correct Oo.. so i am still stuck..
 
Old 02-15-2005, 09:01 AM   #8
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
so let's back up, then...
let's see the results for:
1) ping -c 3 google.com
2) ping -c 3 216.239.37.99
 
Old 02-15-2005, 10:51 PM   #9
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
any ping to googles dns or ip resolves:
network unreachable.

wereas pinging anything on the lan is totally clear
 
Old 02-15-2005, 11:05 PM   #10
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
/sbin/route
 
Old 02-16-2005, 08:50 AM   #11
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
/sbin/route? turn it off? Oo?

edit> i tried turning the execute option for it off, then back on, still the same results. i cant mod the file cause its in hex Oo..
i also tried adding the network on the routing table, with no sucess...

Last edited by HKJGN; 02-16-2005 at 09:06 AM.
 
Old 02-16-2005, 09:52 AM   #12
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I have a linksys router also, and ran into the same frustrating problem on a trimmed down Debian install. Theoretically, it should have worked--I had tried to set DNS to either the router's address or to use DHCP (which would have made it go through the router). Either SHOULD have worked, but did not. This was very frustrating because I had other machines were set up to resolve DNS in both ways and they all worked!

Things were really weird because it was able to resolve SOME domains, some of the time. In particular the ftp site I was installing Debian from worked, although the apt-get repositories were only sometimes resolved.

My solution was very heavyhanded--I used apt-get to install a DNS server (apt-get not only installs the daemon software, but also sets it up to run). Mysteriously, this solved ALL of my problems. After some initial sluggishness with taking many seconds to resolve domains, it got zippy with domain name resolution.

I believe that the linksys router is somewhat glitchy, and there must be some particular circumstances under which it simply gets overwhelmed. I was using bittorrent to download the GamesKnoppix iso when the problems started happening, so perhaps the sheer number of open connections made the router unable to happily take on the new computer's NIC.

Installing the DNS server software reduced the number of DNS resolution requests to the linksys router, and also bypassed the strict necessity for the linksys router to perform DNS by going straight to the default nameservers after a timeout (accounting for the initial sluggishness).
 
Old 02-16-2005, 10:56 AM   #13
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
run /sbin/route, and let us see the result

something like:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.1.0        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.1.1.1        0.0.0.0         UG    1      0        0 eth0
--in particular, i'm interested to see if you have a default gateway
 
Old 02-17-2005, 08:47 AM   #14
HKJGN
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
k, i cant code so i have to type this:


localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
 
Old 02-17-2005, 09:04 AM   #15
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
but no default gateway?

use:
/sbin/route add default gw 192.168.1.1

where the IP above is, in fact, your default gateway...
 
  


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
Networking in Linux with Linksys Router dsai Linux - Networking 1 06-15-2005 09:49 AM
linksys router in linux reefa Linux - Networking 7 03-14-2005 02:19 AM
linux slow behind linksys router pfunk Linux - Networking 8 02-28-2005 06:43 PM
LINKSYS vs LINUX Router? bryan1138 Linux - Security 1 01-19-2004 03:53 PM
Linux box can't see linksys router mjohns63 Linux - Networking 0 07-23-2003 11:51 PM

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

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