09-25-2012 12:40 AM - edited 03-07-2019 09:05 AM
Hi
Could anyone help me?
My simplified scenario is:
I have two iBGP neighbor
neighbor X.X.X.X
and
neighbor Y.Y.Y.Y
I am redistributing BGP into OSPF
and I need neighbor X.X.X.X to have lower metric than Y.Y.Y.Y in OSPF domain
how can I solve this?
thank you in advance
Solved! Go to Solution.
09-25-2012 01:57 AM
Hello Giorgi,
you can use an ACL to define BGP next-hop(s) to be matched
access-list 11 permit host A.B.C:D
route-map BGP-to-OSPF permit 10
match ip next-hop 11
set metric-type type-1
set metric 10
see match ip next-hop in command reference
I have used this successfully in the past
Hope to help
Giuseppe
09-25-2012 01:35 AM
Hello Giorgi,
you can use a route-map where you will set the seed metric
route-map BGP-to-OSPF permit 10
! match conditions here as needed
set metric-type type-1
set metric 10
on second router you set an higher seed metric like 100, with two ASBR nodes the use of O E1 metric-type type-1 is recommended
router ospf 10
redistribute bgp
The subnets keyword is also important to avoid automatic summarization during redistribution
You may need a specifc command under router bgp to allow redistribution of iBGP into OSPF
router bgp
bgp redistribute-internal
see
Hope to help
Giuseppe
09-25-2012 01:51 AM
I want to match only routes from certain neighbors, this routes may change and because of this I can not define routes in access-list.
09-25-2012 01:57 AM
Hello Giorgi,
you can use an ACL to define BGP next-hop(s) to be matched
access-list 11 permit host A.B.C:D
route-map BGP-to-OSPF permit 10
match ip next-hop 11
set metric-type type-1
set metric 10
see match ip next-hop in command reference
I have used this successfully in the past
Hope to help
Giuseppe
09-25-2012 02:44 AM
thank you
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