Welcome to the most active Linux Forum on the web.
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, 07: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-25-2008, 11:35 PM   #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, 12: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, 07: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 07:18 AM
Destination Host Unreachable susankhya Linux - Networking 3 06-14-2006 02:14 AM
destination host unreachable mundacho Linux - Networking 1 03-10-2006 01:59 PM
destination host unreachable javpra Linux - Networking 1 03-30-2005 05:44 AM
destination host unreachable!!! katana Linux - General 7 07-20-2001 01:25 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:41 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
Open Source Consulting | Domain Registration