Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] LAN But No Internet problem [mostly solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Thu Oct 22, 2009 2:14 pm    Post subject: [SOLVED] LAN But No Internet problem [mostly solved] Reply with quote

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
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Thu Oct 22, 2009 6:12 pm    Post subject: Reply with quote

Can you post the output of "ifconfig -a" and "route"
Back to top
View user's profile Send private message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Fri Oct 23, 2009 5:21 am    Post subject: Reply with quote

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
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Fri Oct 23, 2009 12:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Fri Oct 23, 2009 1:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Oct 23, 2009 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
ndse2112
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2007
Posts: 100

PostPosted: Fri Oct 23, 2009 1:31 pm    Post subject: Reply with quote

run that from the command line as root
Back to top
View user's profile Send private message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Fri Oct 23, 2009 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Fri Oct 23, 2009 5:39 pm    Post subject: Reply with quote

Oh, and by the way: THANKS! These forums are great, thanks a million for the tip.
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Fri Oct 23, 2009 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
ilikebeer
n00b
n00b


Joined: 22 Oct 2009
Posts: 10
Location: Tejas

PostPosted: Sun Oct 25, 2009 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum