LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 12-23-2009, 04:42 AM   #1
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Rep: Reputation: 15
Question destination host unreachable.. while its reachable for first few minutes


Hi guys..!!
I am a new user for Ubuntu machine... and i am facing a problem in network connectivity please help me out.
I got one D-link router with one ISP and 2nd Pronet ADSL2 router.. right now i am using 2nd ISP through pronet router by addressing to DHCP settings for 2nd ISP.. when i switch it on 1st ISP then for first few minutes it works fine but then it becomes unreachable

I have restarted D-link router several times but again after few minutes it ends in destination unreachable... any possible cause and guidance for overcoming this problem? m nt gating what to do coz, as its reachable initially when restarted means physical connections are fine and working properly... any help??
 
Old 12-23-2009, 09:10 PM   #2
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
Post the result of route
 
Old 12-23-2009, 10:19 PM   #3
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX
Posts: 565

Rep: Reputation: 57
When it becomes unreachable can you do the following and post the results

Code:
ifconfig
Code:
route
Code:
ping 127.0.0.1
Code:
ping google.com
Code:
ping 74.125.45.105
 
Old 12-24-2009, 01:43 AM   #4
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
Exclamation

this is the ping reply after 5-10min connectivity

Code:
test@test-desktop:~$ ping 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
From 192.168.1.8 icmp_seq=2 Destination Host Unreachable
From 192.168.1.8 icmp_seq=3 Destination Host Unreachable
From 192.168.1.8 icmp_seq=4 Destination Host Unreachable
From 192.168.1.8 icmp_seq=5 Destination Host Unreachable
From 192.168.1.8 icmp_seq=6 Destination Host Unreachable
From 192.168.1.8 icmp_seq=7 Destination Host Unreachable
From 192.168.1.8 icmp_seq=8 Destination Host Unreachable
From 192.168.1.8 icmp_seq=9 Destination Host Unreachable
From 192.168.1.8 icmp_seq=10 Destination Host Unreachable
^C
--- 192.168.1.3 ping statistics ---
12 packets transmitted, 0 received, +9 errors, 100% packet loss, time 11024ms
, pipe 4
test@test-desktop:~$


ifconfig :
Code:
test@test-desktop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:24:01:08:85:66
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:19 Base address:0x4c00

eth1      Link encap:Ethernet  HWaddr 00:24:01:05:85:9b
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:18 Base address:0x8800

eth2      Link encap:Ethernet  HWaddr 00:26:18:40:e8:c1
          inet addr:192.168.1.8  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:18ff:fe40:e8c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:365465 errors:0 dropped:0 overruns:0 frame:0
          TX packets:339818 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:130778908 (130.7 MB)  TX bytes:76585046 (76.5 MB)
          Interrupt:27 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:104821 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104821 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15330565 (15.3 MB)  TX bytes:15330565 (15.3 MB)

route:
Code:
test@test-desktop:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     1      0        0 eth2
link-local      *               255.255.0.0     U     1000   0        0 eth2
default         192.168.1.3     0.0.0.0         UG    0      0        0 eth2
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth2

ping:
Code:
test@test-desktop:~$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.036 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.036 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.031 ms
^C
--- 127.0.0.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6000ms
rtt min/avg/max/mdev = 0.024/0.031/0.036/0.005 ms
ping google.com
Quote:
test@test-desktop:~$ ping google.com
PING google.com (74.125.19.106) 56(84) bytes of data.
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=1 ttl=44 time=519 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=2 ttl=44 time=763 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=3 ttl=44 time=744 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=4 ttl=44 time=520 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=5 ttl=44 time=530 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=6 ttl=44 time=760 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=7 ttl=44 time=744 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=8 ttl=44 time=739 ms
64 bytes from nuq04s01-in-f106.1e100.net (74.125.19.106): icmp_seq=9 ttl=44 time=528 ms
^C
--- google.com ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8227ms
rtt min/avg/max/mdev = 519.687/650.195/763.880/112.397 ms
Code:
test@test-desktop:~$ ping 74.125.45.105
PING 74.125.45.105 (74.125.45.105) 56(84) bytes of data.
64 bytes from 74.125.45.105: icmp_seq=1 ttl=43 time=313 ms
64 bytes from 74.125.45.105: icmp_seq=2 ttl=43 time=313 ms
64 bytes from 74.125.45.105: icmp_seq=3 ttl=43 time=327 ms
64 bytes from 74.125.45.105: icmp_seq=4 ttl=43 time=310 ms
64 bytes from 74.125.45.105: icmp_seq=5 ttl=43 time=316 ms
64 bytes from 74.125.45.105: icmp_seq=6 ttl=43 time=336 ms
^C
--- 74.125.45.105 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5005ms
rtt min/avg/max/mdev = 310.155/319.583/336.438/9.319 ms


problem is i am able to ping and connect over internet through another gateway as well as through 1.3 gateway but after 5 - 10 min this gateways goes down.. please help me for resolving this issue
 
Old 12-24-2009, 04:28 AM   #5
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
Those are the results of route after it goes down or before it goes down?
 
Old 12-24-2009, 04:37 AM   #6
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
after it goes down
 
Old 12-24-2009, 04:38 AM   #7
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
after that i need to change pronet routers DHCP so that i can change default gateway and can access internet...
 
Old 12-24-2009, 05:39 AM   #8
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
I have a feeling I know the solution to your problem. I faced the same problem, but it never connected in the first place.

route add default gw <your ip> (Assuming you have an ip. Check with ifconfig. Enter that ip if it's there)
route add default gw <your gateway>

I will elaborate if it works.

Last edited by gregorian; 12-24-2009 at 05:44 AM.
 
Old 12-24-2009, 06:33 AM   #9
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
no its still unreachable.. i have added both routers ip as default gateway and now added machines ip also as a def gw... 1 point i just noticed that all the lights of D-link router are constantly in on condition while normally they are supposed to be in blinking mode... is that any problem with router itself? but if the problem is with router then how come initially it allows the connection?
 
Old 12-24-2009, 06:34 AM   #10
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
Did you add your own address before adding the router's address? The order is important.
 
Old 12-24-2009, 01:10 PM   #11
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
no i have added both def gws first n then after concerning here hv added my machines ip as a def gw.. :-o shd i supposed to change tht order? n if yes then how? coz i dnt know h to change tht order.. :'(
 
Old 12-24-2009, 02:13 PM   #12
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
Easiest way is to restart, wait for it to fail, and then add in order. Those additions were temporary so they'll go when you restart.
 
Old 12-26-2009, 01:22 AM   #13
raj.darkmystery
LQ Newbie
 
Registered: Oct 2009
Posts: 28

Original Poster
Rep: Reputation: 15
have tried this also... but it goes down after some time..
 
Old 12-26-2009, 02:30 AM   #14
gregorian
Member
 
Registered: Apr 2006
Location: India
Posts: 473

Rep: Reputation: 33
After it disconnects, did you follow the steps, see it connect for the second time and then watch it go down?
 
Old 12-26-2009, 02:55 AM   #15
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
DSL internet is supposed to disconnect if it isn't active. If you reconnect, it should work again. If you are using a web browser, surfing the web, the dsl carrier probably wont drop the connection. If it does, call the isp. DSL is not always on. When the dsl drops, it might hang the router. This would make reconnecting impossible without booting the router.
 
  


Reply

Tags
dlink, ubuntu


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
Yet another Destination Host Unreachable huntercheif Linux - Networking 8 08-12-2008 10:46 AM
destination host unreachable unikgila Linux - Networking 3 07-27-2008 07:03 AM
Destination Host Unreachable danka Linux - Networking 8 01-01-2005 05:29 PM
destination host unreachable Santanu1963 Linux - Networking 7 03-09-2004 02:24 PM
destination host unreachable jb1 Linux - Networking 3 11-27-2002 01:36 PM


All times are GMT -5. The time now is 11:41 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