View previous topic :: View next topic |
Author |
Message |
podollb Apprentice

Joined: 05 May 2005 Posts: 190
|
Posted: Fri Feb 24, 2006 2:04 pm Post subject: install went great but ping doesn't work [SOLVED] |
|
|
Ok my Gentoo install went great and I have an IP address from my router BUT I can't ping anything outside my LAN. I know the problem is probably with the /etc/resolv.conf but I have NO IDEA how to fix it. Please advise. Thanks!
Last edited by podollb on Sun Feb 26, 2006 4:07 pm; edited 1 time in total |
|
Back to top |
|
 |
Abraxa Apprentice

Joined: 14 Jun 2005 Posts: 174 Location: Germany
|
Posted: Fri Feb 24, 2006 2:09 pm Post subject: |
|
|
You can either use the nameserver provided by your ISP by adding
Code: | nameserver IP_OF_YOUR_ROUTER | to /etc/resolv.conf or you can make use of the ORSN by following this guide - I'd recommend the latter.
Also, are you using DHCP or did you set up your IP address in /etc/conf.d/net?
-Soeren |
|
Back to top |
|
 |
podollb Apprentice

Joined: 05 May 2005 Posts: 190
|
Posted: Fri Feb 24, 2006 2:56 pm Post subject: |
|
|
I am using a static IP addresss. So no dhcp.
I figured my problem was the resolv.conf but I had no way of figuring out the nameserver of the ISP because I am at my buddies house and don't have access to his router password -- which I thought would help me determine it.
I have never ran into this problem before so maybe his ISP act differently than mine. I have always just followed the Gentoo handbook and copied over the resolv.conf file during installation and everything was peachy...
So when I get home I will try your idea, but won't that be pointing to a name server in Europe? Or doesn't that matter too much since the internet is so quick now-a-days... |
|
Back to top |
|
 |
Abraxa Apprentice

Joined: 14 Jun 2005 Posts: 174 Location: Germany
|
Posted: Fri Feb 24, 2006 3:22 pm Post subject: |
|
|
Since you're using a static IP I figure I should mention that you need to tell Gentoo where to route the packages to, too - so you'll need an entry in /etc/conf.d/net that matches your router:
Code: | routes_eth0=( "default via IP_OF_YOUR_ROUTER" ) |
Maybe you already have it, dunno :)
As about ORSN: it doesn't really matter, those servers are really fast. If you still want to use an American server you should be able to use L.ORSN-SERVERS.NET according to this map.
-Soeren |
|
Back to top |
|
 |
padoor Advocate


Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Sat Feb 25, 2006 3:53 am Post subject: |
|
|
put the
nameserver xxxx.xxxx.xxxx.xxxx
nameserver xxxx.xxxx.xxxx.xxxx
in /etc/resolv.conf
they are dns of ur ip _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
 |
podollb Apprentice

Joined: 05 May 2005 Posts: 190
|
Posted: Sat Feb 25, 2006 4:30 am Post subject: |
|
|
ok well none of that worked for some reason...
And I have another baffling discovery. I had been messing with the linux server trying to get access to the web when a few other people in the house started having network problems. They were running windows and they really didn't have anything to do with my problems.
Then I shut down the linux machine in question and they had their network to the outside world back in a few minutes.
What could be doing that?
The one hint is that they all could access LAN stuff no problem but none of them could get to the web and they couldn't ping anything outside the LAN.
Would the Gentoo box be trying to take over as the domain or name or dns server??
I have never had anything like this happen before so I am puzzled. More over I don't have anything but the basic installation from the Gentoo handbook installed on this system.
Any the linux system can't even get outside the network, but when that box is off everyone in the house doesn't have any problems...
Any ideas? |
|
Back to top |
|
 |
cyrillic Watchman


Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Sat Feb 25, 2006 5:56 pm Post subject: |
|
|
podollb wrote: | I shut down the linux machine in question and they had their network to the outside world back in a few minutes.
What could be doing that?
The one hint is that they all could access LAN stuff no problem but none of them could get to the web and they couldn't ping anything outside the LAN. |
It sounds like you configured the NIC on your Linux machine to have the same IP address as your router.
When using static IPs, it helps to know what you are doing ... (you really should configure your router for DHCP) |
|
Back to top |
|
 |
podollb Apprentice

Joined: 05 May 2005 Posts: 190
|
Posted: Sat Feb 25, 2006 10:34 pm Post subject: |
|
|
Yeah I had figured out that I had 192.168.2.1 set as my machine IP for some reason when it shouldn't have been... Sorry I didn't post the resolution of this problem. Actually I have many machines on the network that I port forward to for things such as ssh, mail server, web, etc. etc. but this stupid mistake cost me almost an hour of headache before I figured it out. And yes, DHCP is enabled for those wireless people (and machines running non-server systems) but I don't usually like to dynamically give out IPs obviously due to the dependence of the port forwarding. |
|
Back to top |
|
 |
nixnut Bodhisattva


Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Sun Feb 26, 2006 1:02 pm Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
 |
|