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


  Search this Thread
Old 07-25-2008, 08:50 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 27

Rep: Reputation: 15
destination host unreachable

hi all,

May be this is the same case for many people, however i have tried several ways, but nothing.

I have two NIC:
eth0 (connect to internet), gateway

DNS Server

I can ping to eth0 and eth1, but cannot ping even for gateway (

I use several ways from many last thread forum but still nothing, may be you guys can give me step by step problem solving

I use linux 2.4.7-10
Old 07-26-2008, 12:35 AM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
You might not have a default route defined. You can look at the route table with the command
netstat -rn
A good example is this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface   U         0 0          0 eth0   U         0 0          0 eth1         UG        0 0          0 eth0
The default route is the last entry, and its gateway address in your case would be

If your route table does not look like this, you can add the default route temporarily with the command
# route add default gw
To make this change permanent, you will have to alter your system configuration. How to do that depends on which distribution you are using.
Old 07-26-2008, 01:38 AM   #3
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

Rep: Reputation: 34
Originally Posted by unikgila View Post
hi all,

I can ping to eth0 and eth1, but cannot ping even for gateway (

I use linux 2.4.7-10
1. Check your firewall settings. Disable firewall (ipchains?) for the time being
2. Some servers block ping. So, don't bother much if ping does not work
3. Set the default gateway as told in the last post.
4. Try "nslookup" or something similar
5. If that fails, try accessing (That is on of the ip of google)
6. If 4 fails and 5 succeeds, then there is a problem with your dns.
If 4 & 5 succeeds, then things are fine.
If 4 succeeds and 5 fails, check if you may have to set some proxy server for your network.

Anyway, post what you see after each stage and someone will be able to help you.
Old 07-27-2008, 08:03 AM   #4
LQ Newbie
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15

Hi all,

i found what my mistake is. it's very stupid mistake i think. It is about cable. I put the eth0 for internet but i plug my it with my local network. So i can solve my problem just changing the cable from eth0 to eth1, vice versa.

Thanks for you guys that try to suggest me


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Destination host unreachable hanifn9 Ubuntu 8 03-24-2008 08:18 AM
Destination Host Unreachable susankhya Linux - Networking 3 06-14-2006 03:14 AM
destination host unreachable mundacho Linux - Networking 1 03-10-2006 02:59 PM
destination host unreachable javpra Linux - Networking 1 03-30-2005 06:44 AM
destination host unreachable!!! katana Linux - General 7 07-20-2001 02:25 AM

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

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