View previous topic :: View next topic |
Author |
Message |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Thu Oct 22, 2009 2:14 pm Post subject: [SOLVED] LAN But No Internet problem [mostly solved] |
|
|
I have spent a week solid now trying to solve this problem, serching forum after forum. My Gentoo box will not connect to the internet (cant even ping IP addresses or domain names) but if the machine is rebooted into WinXP, it works fine. My wife's XP box is also on the same 2WIRE AT&T router/adsl modem and has internet. I do not have AT&T service anymore, I just use the modem/router until I can afford a new standalone modem.
The two computers can find eachother just fine, network shares and all. But my Gentoo install has no internet.
resolv.conf:
nameserver 10.0.0.1 - (my 2wire router's gateway address)
conf.d/net:
config_eth0 = ( "dhcp" )
dhcp_eth0 = "nodns nontp nonis"
This just started when I tried to setup SSH so I could work on my KDE problem while my wife used her computer which uses the same monitor as mine so it's always been one-at-a-time.
First i emerged ssh, then sshd, then openssh. Then i messed with my router and laptop and wife's PC for a couple days trying to connect with PUTTY, only to get network timeouts over the internet but connect fine over LAN. It was then, on my install Gentoo with another emerge command, i realized my gentoo machine was not reaching the internet. "Network Unreachable" it says. I'm trying to figure out why I'm getting an INFURIATING KDE Config error when compiling compizconfig-backend-kconfig (8.2), but withouth the internet i'm completly stuck... HELP!!!!!
thanks, all!
colin
Last edited by ilikebeer on Sun Oct 25, 2009 9:59 pm; edited 2 times in total |
|
Back to top |
|
 |
malern Apprentice


Joined: 19 Oct 2006 Posts: 170
|
Posted: Thu Oct 22, 2009 6:12 pm Post subject: |
|
|
Can you post the output of "ifconfig -a" and "route" |
|
Back to top |
|
 |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Fri Oct 23, 2009 5:21 am Post subject: |
|
|
Thanks for the reply! So far nobody's been able to help, and none of the other "network but no internet" posts have been much assistance. I'm about at my wit's end!
Quote: | poopdawg ~ # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:e0:4d:6c:dd:74
inet addr:10.0.1.33 Bcast:10.0.255.255 Mask:255.255.0.0
inet6 addr: fe80::2e0:4dff:fe6c:dd74/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6289 errors:0 dropped:0 overruns:0 frame:0
TX packets:3012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:321643 (314.1 KiB) TX bytes:128521 (125.5 KiB)
Interrupt:19
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1400 (1.3 KiB) TX bytes:1400 (1.3 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
Quote: | poopdawg ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.0.0 U 2 0 0 eth0
loopback - 255.0.0.0 ! 0 - 0 -
loopback poopdawg.doomne 255.0.0.0 UG 0 0 0 lo |
-colin |
|
Back to top |
|
 |
malern Apprentice


Joined: 19 Oct 2006 Posts: 170
|
Posted: Fri Oct 23, 2009 12:01 pm Post subject: |
|
|
For some reason you don't have a default route. Try adding one manually
Code: | route add default gw 10.0.0.1 |
(this assumes that your gateway is actually 10.0.0.1) |
|
Back to top |
|
 |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Fri Oct 23, 2009 1:23 pm Post subject: |
|
|
can i do that as a command, or does that go in etc/resolv.conf, or /etc/default/tcp, or...?
thanks again! |
|
Back to top |
|
 |
Veldrin Veteran


Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Fri Oct 23, 2009 1:26 pm Post subject: |
|
|
this was meant as a command, but later on - if I works - it should be move (in some way) to conf.d/net |
|
Back to top |
|
 |
ndse2112 Tux's lil' helper


Joined: 21 May 2007 Posts: 100
|
Posted: Fri Oct 23, 2009 1:31 pm Post subject: |
|
|
run that from the command line as root |
|
Back to top |
|
 |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Fri Oct 23, 2009 5:38 pm Post subject: |
|
|
OK, so as i was running out the door for work I ran that as a command and then pinged www.google.com... worked! Had no time to test further, but would guess that I'm back online now.
Now what I need to know is: If I am using DHCP, why would I need to define a route to the gateway that supplied my IP address in the first place, just to be able to see the internet? |
|
Back to top |
|
 |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Fri Oct 23, 2009 5:39 pm Post subject: |
|
|
Oh, and by the way: THANKS! These forums are great, thanks a million for the tip. |
|
Back to top |
|
 |
malern Apprentice


Joined: 19 Oct 2006 Posts: 170
|
Posted: Fri Oct 23, 2009 7:29 pm Post subject: |
|
|
There's no requirement that a DHCP server must advertise a default route. Check your router configuration and see if you need to enable it.
It might also be a good idea to watch the network traffic with something like tcpdump or wireshark, just to double check it is sending one. |
|
Back to top |
|
 |
ilikebeer n00b

Joined: 22 Oct 2009 Posts: 10 Location: Tejas
|
Posted: Sun Oct 25, 2009 9:58 pm Post subject: |
|
|
I'm getting ready to ignore this until I get a new router... I still can't find a place in this thing to have it advertise a default route, and I still don't understand how I've never seen this before with all the times I've setup Gentoo in the last year, but I'm going to mark it as solved cause it did get me back online =-) |
|
Back to top |
|
 |
|