ā07-01-2023
09:36 AM
- last edited on
ā07-06-2023
10:27 PM
by
Translator
Hi everyone.
The last days i have been struggling with the following case:
Lets assume that we have two directly connected routers R1 ----> R2 . Among them there is eBGP Peering. R2 advertises some prefixes to R1 through BGP. Moreover on R1 i have configured some static routes as well as i have
redistributed
those routes into ospf
(redistribute static)
on R1. When the eBGP Peering is down, i am able to see the
redistributed
static routes as ospf type 5 (
show ip ospf
database summary). But, in case where eBGP peering is up, ospf type 5 routes are removed from ospf database.
Could someone explain me why this happens ?
Thanks a lot,
Nikos
Solved! Go to Solution.
ā07-02-2023
05:57 AM
- last edited on
ā07-06-2023
11:18 PM
by
Translator
Hi,
the reason is
redistribution
happens through routing table. If there is no route in routing table with
redistributing
protocol, then it can not be
redistributed
to another protocol.
In your case, you have static, ospf and BGP. You learn the same routes from BGP and static. When BGP is UP, routes installed to routing table as BGP route. Since you don't have BGP>OSPF
redistribution
you don't see any external
(redistributed)
route in OSPF (type5).
When BGP is down, BGP routes are gone from routing table and now for prefixes static routes are installed. You have
STATIC> OSPF
thus rotues are
redistributed
and you see type5 LSA for external prefixes.
ā07-01-2023 09:38 AM
That not complete story R must ibgp with other router which make this issue
ā07-01-2023 09:41 AM
The static routes and the routes which are advertised over eBGP are the same.
ā07-01-2023
09:43 AM
- last edited on
ā07-06-2023
10:29 PM
by
Translator
Hi
Do you have
redistribute
static on BGP ?
ā07-01-2023 09:45 AM
Hi,
Yes on R1. Essentially the static routes on R1 are advertised over eBGP from R2
ā07-01-2023 09:48 AM
This can be due the protocol preference as router selects the route with the highest preference. eBGP preference is 255 while OSPF is 10.
when the BGP is down the OSPF routes is installed but when eBGP come up , it has the preference
ā07-01-2023
09:49 AM
- last edited on
ā07-06-2023
10:31 PM
by
Translator
Jul 1 16:33:18.246: RIB Redist, Topo Base, dest x.x.x.x, mask 255.255.224.0, Down
ā07-01-2023 09:54 AM
what was that sorry?
ā07-01-2023
09:58 AM
- last edited on
ā07-06-2023
10:31 PM
by
Translator
The message i get (
show ip ospf
events) when the eBGP peering goes up
ā07-01-2023
10:02 AM
- last edited on
ā07-06-2023
10:32 PM
by
Translator
Run this command with and without the BGP:
show ip ospf X rib redistribution x.x.x.x
ā07-01-2023 10:15 AM
I will check it. Thanks al lot Flavio
ā07-01-2023 10:21 AM
You“re welcome.
But, it seems it is related to protocol preference.
ā07-01-2023 09:44 AM - edited ā07-01-2023 09:47 AM
can I see config of R1
R1-R2
both have eBGP and in same time there is OSPF between two routers ?
If Yes then eBGP have AD=20 and it prefer than OSPF=110
ā07-01-2023 09:52 AM
no, R1-R2 have only eBGP peering. R1 has ospf peering with other router.
ā07-01-2023
09:54 AM
- last edited on
ā07-06-2023
10:33 PM
by
Translator
OK your static route have AD upper than 20 ?
show me config and show me show ip bgp and show ip route
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide