LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-25-2008, 07:50 AM   #1
unikgila
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 210.119.34.184 (connect to internet), gateway 210.119.34.254
eth1 192.168.47.2

DNS Server 134.75.217.2

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

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
dkm999
Member
 
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
Code:
netstat -rn
A good example is this:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
216.39.145.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
0.0.0.0         216.39.145.1    0.0.0.0         UG        0 0          0 eth0
The default route is the last entry, and its gateway address in your case would be 210.119.34.254.

If your route table does not look like this, you can add the default route temporarily with the command
Code:
# route add default gw 210.119.34.254
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
sarin
Member
 
Registered: May 2001
Location: India, Kerala, Thrissur
Distribution: FC 7-10
Posts: 354
Blog Entries: 2

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

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

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 www.google.com" or something similar
5. If that fails, try accessing http://209.85.153.104 (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
unikgila
LQ Newbie
 
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
[solve]

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
 
  


Reply


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


All times are GMT -5. The time now is 06:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration