"network is unreachable" but I can ping local machines
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
"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.
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.
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.
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.