09-10-2019 01:50 PM
Hello.
I need to have a route-map that will advertise only a default route (0.0.0.0) and set MED to a neighbor.
Is there an easy way to do this (combine both route maps into 1)
These are my 2 route-maps:
! Under BGP area
neighbor 1.1.1.1 route-map route-map-name out
! Main area
route-map def-rout-only permit 10
match ip address 1
!
route-map set-med-25 permit 10
match ip address 2
set metric 25
!
access-list 1 permit 0.0.0.0
access-list 2 permit any
Thanks.
09-10-2019 02:34 PM
Hello,
try the below:
route-map R_MAP permit 10
match ip address 1
continue 20
exit
route-map R_MAP permit 20
match ip address 2
set metric 25
09-10-2019 03:36 PM
HI.
I did that and my MED values and prepending are getting pushed to the peer my routes summarisation isn't working. I can see all routes at the peer and from this Router sh ip bgp neigh x.x.x.x adv I can see all routes are getting advertised out.
09-11-2019 12:55 AM
Hello
@James L wrote:
HI.
I did that and my MED values and prepending are getting pushed to the peer my routes summarisation isn't working. I can see all routes at the peer and from this Router sh ip bgp neigh x.x.x.x adv I can see all routes are getting advertised out.
Note sure what you mean by route summerization isnt working, However note when you set bgp metric this is ONLY advertised to the neighboring ASN and if that ASN advertises the same prefix to another ASN then that MED you initially set isnt carried in that update.
09-11-2019 02:26 AM
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