LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2004, 04:11 PM   #1
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Rep: Reputation: 15
Question Getting message "connect: Network is unreachable" trying to access the Internet


Hi, here's the problem.
I moved my computers around for dusting purpose. Before moving, everything was working fine. I use my main computer (Windows XP) to play games and SSH on my Linux box (Red Hat 8).
My Linux has apache, proftp, etc.
My computers are linked together with a router which is cable connected to my modem.

What works :
- Windows can access my Linux's web pages.
- Windows can access router's administration web page.
- Windows can access the web.
- Linux box can access it's own web pages via LAN address.
- Linux can ssh connect to Windows XP CygWin.
- Linux can access router's administration web page.

What doesn't work :
- Linux Box CAN'T access the web ... except for one thing, i can retrieve address from traceroute :
root:~ $ traceroute www.google.com
traceroute: Warning: www.google.com has multiple addresses; using 64.233.161.147
socket: Network is unreachable

I looked at my /etc/resolv.conf and the address of my router is correctly set as default gateway :
root:~ $ less /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 192.168.0.1

I tried to run the script to rebuilt this file but i had to use another one :
root:~ $ /sbin/dhclient-script
/sbin/dhclient-script: configuration for not found.
root:~ $ /sbin/dhclient eth0
Internet Software Consortium DHCP Client V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.

Listening on LPF/eth0/00:05:5d:07:f7:46
Sending on LPF/eth0/00:05:5d:07:f7:46
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
/sbin/dhclient-script: line 190: route: command not found
bound to 192.168.0.127 -- renewal in 269356 seconds.

I tried to look at that file but I get the following message :
root:~ $ ls -al /sbin/route
ls: /sbin/route: Input/output error

Can anyone give me a hint ?

Last edited by denver1980; 12-28-2004 at 11:28 PM.
 
Old 12-28-2004, 04:19 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Flush DNS? maybe bad data?
 
Old 12-28-2004, 04:24 PM   #3
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Original Poster
Rep: Reputation: 15
Hmmmm, the only way I know to get my routing table is to route -n ... but I get the following :
root:~ $ /sbin/route -n
-bash: /sbin/route: Input/output error
 
Old 12-28-2004, 10:11 PM   #4
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Original Poster
Rep: Reputation: 15
Now I'm totally lost ... the file re-appered :
root:~ $ ls -la /sbin/route
srw-rw-rw- 1 root root 0 dec 28 18:31 /sbin/route

But that is supposed to be an executable binary ... no ?
 
Old 12-29-2004, 05:11 PM   #5
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Original Poster
Rep: Reputation: 15
Ok ... giving up... guess I'll take the opportunity to move to Feudora C1 or Slackware ...

--------------------------------------
I didn't lose or win , I got an opportunity.
Ce n'est pas une perte ou un gain, c'est une opportunitée.
 
Old 12-29-2004, 05:22 PM   #6
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
This message is a typical message that either the default gateway cannot be found, or maybe your router doesn;t allow you linux box to access the outside world.....
What do you get when you do an ifconfig ???
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SiS900 Ethernet Problem "Network is unreachable" mertos Linux - Networking 7 04-04-2005 09:01 AM
aMSN "Unreachable host" message BladeRunner Linux - General 2 07-14-2004 04:40 AM
MA-311 on eth0 inaccessible via Linux, "Network Unreachable" error, no localhost ping LGMike Linux - Networking 14 09-21-2003 11:11 PM
"Destination Host Unreachable" on local network radupastia Linux - Networking 0 08-13-2003 09:46 AM
tftp - "Destination Unreachable" due to "Port Unreachable" renjithgopal Linux - Security 5 07-24-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration