LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "network is unreachable" but I can ping local machines (https://www.linuxquestions.org/questions/linux-newbie-8/network-is-unreachable-but-i-can-ping-local-machines-427721/)

MrGaiters 03-23-2006 12:40 PM

"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?

pljvaldez 03-23-2006 12:49 PM

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.

MrGaiters 03-23-2006 10:42 PM

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.

timmeke 03-24-2006 02:38 AM

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).


All times are GMT -5. The time now is 08:14 AM.