Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Forwarding Protocols • BGP Default Route Disappearing

$
0
0
Hi all. New to Mikrotik, but not new to routing. Trying to learn the nuances of the platform.

I have three router eBGP peers configured as follows, each with their own AS. R2 is the Mikrotik. The others are different vendors.

R1 <-> R2 <-> R3

R1 is originating default and injecting into eBGP. R2, the Mikrotik, is receiving it passing it to R3 with no problems. R1 & R2 are peered over a shared /29, R1 being 192.168.68.209 and R2's being 192.168.68.210.

However R2, the Mikrotik, doesn't seem to want to use the default route learned via BGP. It only works if I configure a static entry with the same info. For example:
Code:
[localadmin@MikroTik] /ip/route> prFlags: D - DYNAMIC; A - ACTIVE; c - CONNECT, s - STATIC, b - BGP, o - OSPFColumns: DST-ADDRESS, GATEWAY, DISTANCE#     DST-ADDRESS        GATEWAY                           DISTANCE  D b 0.0.0.0/0          192.168.68.209                          200  As 0.0.0.0/0          192.168.68.209                          10[localadmin@MikroTik] /ip/route> /ping 1.1.1.1  SEQ HOST                                     SIZE TTL TIME       STATUS    0 1.1.1.1                                    56  50 20ms24us    1 1.1.1.1                                    56  50 19ms960us
Note the static distance, I can ping 1.1.1.1 just fine.

Now, if I make the static distance longer so BGP is selected, it go boom.
Code:
[localadmin@MikroTik] /ip/route> prFlags: D - DYNAMIC; A - ACTIVE; c - CONNECT, s - STATIC, b - BGP, o - OSPFColumns: DST-ADDRESS, GATEWAY, DISTANCE#     DST-ADDRESS        GATEWAY                           DISTANCE  DAb 0.0.0.0/0          192.168.68.209                          200   s 0.0.0.0/0          192.168.68.209                          25[localadmin@MikroTik] /ip/route> /ping 1.1.1.1  SEQ HOST                                     SIZE TTL TIME       STATUS    0 1.1.1.1                                                      timeout    1 1.1.1.1                                                      timeout
Doing more debug, I see strange behavior if I disable the static outright. The BGP route briefly goes 'Active' but then disappears leaving no default route in the FIB.
Code:
[localadmin@MikroTik] /ip/route> print detail where dst-address=0.0.0.0/0Flags: D - dynamic; X - disabled, I - inactive, A - active;c - connect, s - static, r - rip, b - bgp, o - ospf, i - is-is, d - dhcp, v - vpn, m - modem, y - bgp-mpls-vpn;H - hw-offloaded; + - ecmp 0  Xs   dst-address=0.0.0.0/0 gateway=192.168.68.209 distance=10   DAb   dst-address=0.0.0.0/0 routing-table=main gateway=192.168.68.209 immediate-gw=192.168.68.209%ether1         distance=20 scope=40 target-scope=10 suppress-hw-offload=no 
Then a few moments later...
Code:
[localadmin@MikroTik] /ip/route> print detail where dst-address=0.0.0.0/0Flags: D - dynamic; X - disabled, I - inactive, A - active;c - connect, s - static, r - rip, b - bgp, o - ospf, i - is-is, d - dhcp, v - vpn, m - modem, y - bgp-mpls-vpn;H - hw-offloaded; + - ecmp 0  Xs   dst-address=0.0.0.0/0 gateway=192.168.68.209 distance=10 
I've reviewed the route selection documentation and understanding anything that explains the behavior. Where am I going wrong?

Statistics: Posted by bdowne01 — Sun Jan 28, 2024 10:09 pm



Viewing all articles
Browse latest Browse all 15394

Trending Articles