Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LAN works, no internet, routing problem [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
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 14, 2008 10:07 pm    Post subject: LAN works, no internet, routing problem [Solved] Reply with quote

I use my wife's PC as distcc helper. A couple hours ago I noticed it's down. I couldn't start it any more, "attempting to kill init" was as far as I got. OK, PSU was expired, I replaced it. Booted from HDD. Everything looks nice. Except direct internet connection does not work! Firefox through proxy - works fine. NFS volume mounts fine. I can ssh into that box. I can ssh out from that box - but only locally. Every address outside results in "network is unreachable" message. :? (No firewall)
I started it up with GRML and ran fsck. All clean. Network works like it should. :!:
I even do not know where to look, any ideas are welcome.


Last edited by Jaglover on Tue Jan 15, 2008 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
rokstar83
Guru
Guru


Joined: 09 Apr 2005
Posts: 423
Location: MD

PostPosted: Mon Jan 14, 2008 10:48 pm    Post subject: Re: Mysterious network problem Reply with quote

Jaglover wrote:
I use my wife's PC as distcc helper. A couple hours ago I noticed it's down. I couldn't start it any more, "attempting to kill init" was as far as I got. OK, PSU was expired, I replaced it. Booted from HDD. Everything looks nice. Except direct internet connection does not work! Firefox through proxy - works fine. NFS volume mounts fine. I can ssh into that box. I can ssh out from that box - but only locally. Every address outside results in "network is unreachable" message. :? (No firewall)
I started it up with GRML and ran fsck. All clean. Network works like it should. :!:
I even do not know where to look, any ideas are welcome.


DNS issue? Have you tried pinging something outside your local network by ip instead of name?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 14, 2008 10:52 pm    Post subject: Reply with quote

Nope, names resolve, I run local DNS cache. "Network is unreachable" comes with IP address as well. :roll:
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Jan 15, 2008 3:59 am    Post subject: Reply with quote

Code:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.2.254   255.255.255.255 UGH   0      0        0 eth0
192.168.2.0     0.0.0.0        255.255.255.0    U     0      0        0 eth0
127.0.0.0       0.0.0.0       255.0.0.0         U     0      0        0 lo

As you can see with this mask connection is not possible. I wonder where it comes from :?
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Tue Jan 15, 2008 5:17 am    Post subject: Reply with quote

Let's see /etc/conf.d/net.
_________________
Saving the world, one kilobyte at a time.
Back to top
View user's profile Send private message
vktgz
n00b
n00b


Joined: 21 Jun 2004
Posts: 65
Location: Gentown, Tuxland

PostPosted: Tue Jan 15, 2008 7:11 am    Post subject: Reply with quote

I have the same problem. Yesterday i upgraded system and world. Everything was working fine until i rebooted - after reboot internet is not working. LAN is working fine, i can ping router, but I cant ping anything outside - "network is unreachable". I think the problem is with init scripts, emerge upgraded baselayout. I try to downgrade baselayout when I get back home.
Back to top
View user's profile Send private message
Emopig
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 188

PostPosted: Tue Jan 15, 2008 9:10 am    Post subject: Reply with quote

Had the same problem here. New baselayout fscked over my networking over when I rebooted.

I could an ping my router and another machine on said router (basically any machine in my subnet). I had to manually fix the route table, not impressive. The base layout update was a minor release and there I was with a static IP on a single Ethernet interface and no network access.

It took me half an hour this morning to fix it, I have no idea how it could mess up when the masking is explicitly specified in /etc/conf.d/net
Code:
andrew@ziggy ~ $ cat /etc/conf.d/net
modules=("ifconfig")
config_eth0=("192.168.1.2 netmask 255.255.255.0")
routes_eth0=("default via 192.168.1.1")

_________________
2.6.35 / Gnome 2.30
Athlon64 3500+ / 1.5 GB / Asus A8N VM CSM
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 988
Location: The Village, Portmeirion

PostPosted: Tue Jan 15, 2008 10:28 am    Post subject: Reply with quote

Yeah, me too. :lol:
Bug 205894 net.eth0 improperly adds default gateway.
Back to top
View user's profile Send private message
gigli
n00b
n00b


Joined: 18 Sep 2005
Posts: 17

PostPosted: Tue Jan 15, 2008 11:43 am    Post subject: thanks Reply with quote

Hi just wanted to say thanks, this solved my problem for now, i would never have found it on my own. I downgraded my baselayout.
Back to top
View user's profile Send private message
gemini91
Guru
Guru


Joined: 27 Nov 2003
Posts: 317
Location: Naples, Fl

PostPosted: Tue Jan 15, 2008 11:58 am    Post subject: Reply with quote

From past experience any time I have problems with my wireless,
the first thing I check is baselayout, So i did not waste much time
on this before backing it off. The problem was telling me that the key
was not right for the ESSID. I didn't record the whole message but
it was real strange. Its been quite awhile since baselayout caused me
a problem
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Jan 15, 2008 2:51 pm    Post subject: Reply with quote

Rainskellr, thanks for bugzilla link. They had solution there.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Jan 15, 2008 3:08 pm    Post subject: Reply with quote

Jaglover wrote:
Rainskellr, thanks for bugzilla link. They had solution there.


You might want to comment on the bug to let the developers know the patch works then :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Fri Jan 18, 2008 2:10 pm    Post subject: Reply with quote

And I thought I was the one the screw things up;)
Thanx for the link to bugzilla.
_________________

------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1139
Location: Sofia/Bulgaria

PostPosted: Sat Jan 19, 2008 5:47 pm    Post subject: Reply with quote

DOOOHHHHH, i almost killed my ISP 8O

Thanx guys :wink:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
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