Community discussions

MikroTik App
 
OlofL
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Mon Oct 12, 2015 2:37 pm

resolve ibgp routes recursively from ebgp?

Fri Mar 05, 2021 9:06 pm

I have a eBGP peer, and one iBGP peer
[my router] <-linknetwork1-> [eBGP peer] <- linknetwork2(172.31.23.8/30) -> [my iBGP peer](192.168.13.0/24)
My eBGP peer advertises linknetwork2 to my router. (172.31.23.8/30) and is Active
My iBGP peer advertises 192.168.13.0/24 with nexthop linknetwork2. My router marks this as not active.

So, since I have a valid, active route to the next-hop, why doesn't it recursively resolve my iBGP route?
[admin@core-65001] /ip route> print
Flags: X - disabled, A - active, D - dynamic, 
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
...
 9 ADb  172.31.23.8/30                     172.31.23.1              20
10  Db  172.31.23.8/30                     172.31.23.5             200
11  Db  172.31.23.8/30                     172.31.23.17            200
...
17  Db  192.168.13.0/24                    172.31.23.10            200
If I add a default route over the ip address on linknetwork1, the 192.168.13.0 route becomes active. Now, I don't want to default route over linknetwork1, because its not supposed to be my default gateway.
So then I'd have to add a static route to that specific network over my linknetwork1 ip. But that defeats the purpose of having a dynamic routing protocol.
So what am I doing wrong, I started reading about scopes, but Im not sure that would apply to this?
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: resolve ibgp routes recursively from ebgp?  [SOLVED]

Fri Mar 05, 2021 11:05 pm

Recursive routing for iBGP next hops in MikroTik only works with IGPs (OSPF and RIP) and static routes.

Who is online

Users browsing this forum: AshuGite and 21 guests