LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2006, 12:40 PM   #1
MrGaiters
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.1
Posts: 5

Rep: Reputation: 0
"network is unreachable" but I can ping local machines


I installed Slackware 10.2 a couple of days ago. I have run through various options with netconfig; DHCP vs. static IP, with and without a gateway entered, etc. I can not connect to the internet with any of these options.

Here is my setup:
  • Cable broadband connection.
  • Linux box is connected via ethernet cable to one of the ports of a Netgear wireless router.
  • Kingston KNE110TX NIC.

From reading posts and searching the web I have gotten the following diagnostics:
  • #lspci shows my Ethernet controller as a Lite-On LNE100TX (not a Kingston KNE11TX)
  • #lsmod lists the module tulip and just below it the module crc32 with [tulip] in the last column
  • If I ping any local machine I get no packet loss
  • If I ping my router I get no packet loss
  • If I ping my default gateway (67.169.34.1) I get the message "connect: Network is unreachable"
  • If I ping any www address or "outside" IP address I get the message "connect: Network is unreachable"

The output of lsmod and lspci as well as the pings indicate that the card is working and recognized. I assume that I am missing some network configuration tweak, setting, conf file entry, etc.

Any suggestions?
 
Old 03-23-2006, 12:49 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I believe your router should be your default gateway. I'm assuming that what you're using as a default gateway must live on a different subnet from your machines, thus unless you have the router as the default gateway, your machine can't see any other subnets.
 
Old 03-23-2006, 10:42 PM   #3
MrGaiters
LQ Newbie
 
Registered: Mar 2006
Distribution: Slackware 10.1
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
I believe your router should be your default gateway. I'm assuming that what you're using as a default gateway must live on a different subnet from your machines, thus unless you have the router as the default gateway, your machine can't see any other subnets.
It is even simpler than that. I have a single router and only one subnet. Per your hint I used my router's IP address (192.168.0.1) for the default gateway and nameserver and I am connected. What confused me was the external IP address (69.nn.nn.nn, I forgot it already) that came up in my Netgear router configuration. This is Comcast's (my broadband provider) gateway. But, as noted, I am now connected. Thanks.
 
Old 03-24-2006, 02:38 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You need to discriminate between an "external" IP address, like 69.*.*.* and an internal one, like "192.168.*.*". All 192.168.*.* addresses are always internal ones.

To reach the router from your computer, you need to give the router's internal IP address (192.168.0.1), not the external one (the external IP is only used for communication between your router and your ISP).
 
  


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
Ping error "Destination Host Unreachable" from the gateway cristi_ro Linux - Networking 4 10-30-2006 04:32 PM
Getting message "connect: Network is unreachable" trying to access the Internet denver1980 Linux - Networking 5 12-29-2004 05:22 PM
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 - Newbie

All times are GMT -5. The time now is 02:20 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