Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-13-2005, 07:53 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Rep:
|
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
|
|
|
02-13-2005, 08:11 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
edit /etc/resolv.conf
put in
nameserver 123.123.123.123
(get your nameservers from the status page on your router)
|
|
|
02-13-2005, 08:48 PM
|
#3
|
Member
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104
Rep:
|
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...
|
|
|
02-14-2005, 12:20 PM
|
#4
|
Member
Registered: Jun 2004
Location: NYC
Distribution: Fedora Core 1
Posts: 64
Rep:
|
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
|
|
|
02-14-2005, 07:27 PM
|
#5
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Original Poster
Rep:
|
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 ^^*
|
|
|
02-15-2005, 07:11 AM
|
#6
|
Member
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465
Rep:
|
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
|
|
|
02-15-2005, 08:51 AM
|
#7
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Original Poster
Rep:
|
unfortunately the nameserver on resolv.conf is correct Oo.. so i am still stuck..
|
|
|
02-15-2005, 09:01 AM
|
#8
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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
|
|
|
02-15-2005, 10:51 PM
|
#9
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Original Poster
Rep:
|
any ping to googles dns or ip resolves:
network unreachable.
wereas pinging anything on the lan is totally clear
|
|
|
02-15-2005, 11:05 PM
|
#10
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
/sbin/route
|
|
|
02-16-2005, 08:50 AM
|
#11
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Original Poster
Rep:
|
/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.
|
|
|
02-16-2005, 09:52 AM
|
#12
|
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
|
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).
|
|
|
02-16-2005, 10:56 AM
|
#13
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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
|
|
|
02-17-2005, 08:47 AM
|
#14
|
LQ Newbie
Registered: Feb 2005
Posts: 27
Original Poster
Rep:
|
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
|
|
|
02-17-2005, 09:04 AM
|
#15
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
but no default gateway?
use:
/sbin/route add default gw 192.168.1.1
where the IP above is, in fact, your default gateway...
|
|
|
All times are GMT -5. The time now is 07:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|