Community discussions

MikroTik App
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

bgp multihop error " no route to host "

Fri Oct 05, 2007 5:23 am

hi guys,

help me to solve this :

09:11:49 route,bgp,info Failed to open TCP connection: No route to host
09:11:49 route,bgp,info RemoteAddr= x.x.x.x
09:11:49 route,bgp,info RemotePort=179

i use bgp multihop for this.
 
ste
Forum Guru
Forum Guru
Posts: 1932
Joined: Sun Feb 13, 2005 11:21 pm

Re: bgp multihop error " no route to host "

Fri Oct 05, 2007 8:20 am

Tried a traceroute to the bgp-peer ?

Stefan
 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

Re: bgp multihop error " no route to host "

Fri Oct 05, 2007 11:52 am

i can ping and trace to my ip bgp peer. i ever face this problem was long time ago but i forget,
i remember change the value of scope and target scope... please someone could help me please. this urgent
regards
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Fri Oct 05, 2007 8:37 pm

Do you have a direct route to the peer instead of only the default gateway? I believe you need a route in the route table rather than just using the default gateway.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7169
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: bgp multihop error " no route to host "

Fri Oct 05, 2007 8:50 pm

 
hajid
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 96
Joined: Wed Mar 30, 2005 10:04 am

Re: bgp multihop error " no route to host "

Tue Oct 09, 2007 3:46 am

hi all,

my bgp multihop still not work. i have add static routing to my bgp peer. this my bgp configuration

name="peer" instance=default remote-address=x.x.x.x
remote-as=xxxxx tcp-md5-key="" nexthop-choice=default multihop=yes
route-reflect=no hold-time=3m ttl=255 in-filter=in-peer
out-filter=out-peer

at log i didn't see anymore error "no router to host" but bgp still not established.
 
BelWave
Member Candidate
Member Candidate
Posts: 184
Joined: Wed Aug 04, 2004 12:49 am

Re: bgp multihop error " no route to host "

Tue Oct 16, 2007 11:29 pm

Try adjusting the BGP peer TTL to better reflect the number of hops. MikroTk support suggested this and it worked for us recently.

Best,

Brad
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Thu Oct 18, 2007 12:34 am

I've seen the same thing on our BGP router before, it cleared it's self up in a few moments after reboot. on the other side of the connection the upstream BGP peer was showing MD5 auth error's on our BGP session while it was happening.

to fix i've done, either wait ~90 seconds for it to clear up automatically, or disable the peer and re-enable, either way it came back online immeaditly.
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Re: bgp multihop error " no route to host "

Fri Oct 19, 2007 9:23 am

what version are you using? maybe send support-output to support?
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Sat Oct 20, 2007 12:21 am

what version are you using? maybe send support-output to support?
2.9.43... it's been working too good to upgrade yet, the issue is way too minor to make a big deal over for now. I'd rather wait a few moments for it to clear up the MD5 problem at boot, and see improvments done on the wireless speed and stability in v3... I'll send supout if it's still doing it when and if there are no other issues that are more important for me to see fixed...
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Fri Oct 26, 2007 9:20 am

ok, it did it to me again a few minutes ago, so I upgraded to 2.9.46 (don't trust 48 yet for something this critical, I think I found a bug earlier today in the interface graphing)

after the upgrade it still does it. I send into to support along with a supout

error on upstream provider's router
01:55:51.260 EDT: %TCP-6-BADAUTH: No MD5 digest
error on MikroTik
01:54:44 route,bgp,info Failed to open TCP connection: No route to host 
after disableing the peer and re-enableing it a few seconds later, everything came up fine.
 
plucchetti
newbie
Posts: 33
Joined: Sat Jun 18, 2005 6:57 pm

Re: bgp multihop error " no route to host "

Fri Oct 26, 2007 6:08 pm

Try adjusting the BGP peer TTL to better reflect the number of hops. MikroTk support suggested this and it worked for us recently.

Best,

Brad
I have same problem and I did change TTL, now working Ok.
Thaks!
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Mon Oct 29, 2007 9:10 pm

I'm not using multihop, I'm directly connected to the same subnet as my upstream via fiber...
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Mon Oct 29, 2007 9:37 pm

i have had this happen with a cisco peer as well... i think it has something to do with the remote end still having a session open (ip:port pair) and so it thinks it's part of the same conversation. Leaving the peer disabled more than the hold timer will cure that, but it's a pain. I believe if the remote end (cisco?) doesnt get a RST packet then it's confused. Not quite sure, just my guess.
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Tue Oct 30, 2007 5:37 am

if I understand what you're meaning correctly, say I reboot my router for reason X, and it boots back up and attempts to reconnect the BGP session to my upstream provider before the hold time my provider has programmed in has been reached, their system will reject the connection because it has not received a rst command?

if that is correct, first off, on shutdown or reboot, RouterOS needs to make sure to send a reset command to all peers.

and second, contacting my upstream provider to shorten the hold time may also take care of the issue in the mean time.

does all that sound correct?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Tue Oct 30, 2007 5:30 pm

That sounds right. I don't think its a matter of the BGP hold timer, I think its a TCP established session thing... it just happens that if the remote sides hold timer expires then the connection is removed and you can start over. I don't know very much about the MD5 passwords, but possibly for security reasons they are used as part of the tcp establishment as well. This problem doesn't seem to occur when there are no MD5 passwords. In reality you want the hold timer to last a few minutes because you want to be able to reboot without your routes flapping. Just not sure what a good workaround is (other than not using MD5?).
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Tue Oct 30, 2007 9:05 pm

In reality you want the hold timer to last a few minutes because you want to be able to reboot without your routes flapping.
why would you want that? if you are rebooting a router, then the routes should be invalid otherwise anyone trying to route to your network would not be able to, effectivly you would then be down (going under the assumption that you are running BGP because you have more then one provider, and more then one router)
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Tue Oct 30, 2007 9:15 pm

true. in some cases the 30 seconds of a reboot might be better to not flap your routes, in some cases you want them to. anyhow, i think it has to do with mikrotik not closing its bgp peer sessions (and closing tcp session) before it shuts down or something. next time try disabling the peer, then rebooting, and reenabling the peer and see if you have the same problems. it that works then maybe you can script a reboot that includes that - who knows ... : )
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Tue Oct 30, 2007 9:18 pm

here is some info on why I think MD5 works at the TCP level, and therefore probably why the sessions don't close properly:

http://bgphints.ruud.org/articles/bgp-md5.html

http://www.postel.org/pipermail/end2end ... 05078.html

http://www.faqs.org/rfcs/rfc2385.html

It would be interesting to packet sniff one of these MD5 sessions from RouterOS to Cisco IOS ... and see if the TCP RST packet contains the MD5 password in it. Maybe it's closing out improperly and can be fixed by pointing it out to mt staff.

Sam
 
User avatar
BrianHiggins
Forum Veteran
Forum Veteran
Posts: 720
Joined: Mon Jan 16, 2006 6:07 am
Location: Norwalk, CT
Contact:

Re: bgp multihop error " no route to host "

Thu Nov 01, 2007 3:09 am

true. in some cases the 30 seconds of a reboot might be better to not flap your routes, in some cases you want them to. anyhow, i think it has to do with mikrotik not closing its bgp peer sessions (and closing tcp session) before it shuts down or something. next time try disabling the peer, then rebooting, and reenabling the peer and see if you have the same problems. it that works then maybe you can script a reboot that includes that - who knows ... : )
i tried that last night, disable the peer, reboot, enable the peer, it came up immeaditly without any md5 errors...
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: bgp multihop error " no route to host "

Thu Nov 01, 2007 7:23 am

i dont know what a '/system reboot' performs before it does its thing. If it doesn't cleanly shutdown bgp peers then it will take a few minutes up to a day for it to reestablish. I've seen this many times yet just realizing this is why since you posted. Perhaps you can email support and find if there is a way to shut down bgp peers cleanly during a reboot. It is _only_ in the case of MD5 and BGP.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 37 guests