02-10-2010 11:08 AM - edited 03-04-2019 07:28 AM
I am trying to configure a scenario where we are BGP peering with the same provider in two locations, our main location and our DRC. We want to advertise
10.10.10.0/26 out of our HQ and
10.10.10.128/26 out of our DRC.
At the same time we want to ensure failover by advertising
10.10.10.128/26 out of our HQ with an as-path prepend and
10.10.10.0/26 out of the DRC with an as-path prepend.
How can I make that happen? I can only choose one route-map for out going advertisements, so if I use a as-path prepend it applies it to all advertisements.
Is there a way to make this possible?
Thanks
Joerg
Solved! Go to Solution.
02-10-2010 02:15 PM
Hello Jeorg,
route-maps can be made of multiple blocks each with its own match and set commands so this is the way to go
route-map toISP permit 10
match ip address 10
set as-path-prepend MyAS MYAS
route-map toISP permit 20
match ip asddress 11
! no set action is allowed
even an empty final block can be used
you can use an ACL or a prefix-list for each block
Hope to help
Giuseppe
02-10-2010 11:24 AM
Hello Joerg,
Have a look at this paper for some config examples
HTH
Reza
02-10-2010 02:15 PM
Hello Jeorg,
route-maps can be made of multiple blocks each with its own match and set commands so this is the way to go
route-map toISP permit 10
match ip address 10
set as-path-prepend MyAS MYAS
route-map toISP permit 20
match ip asddress 11
! no set action is allowed
even an empty final block can be used
you can use an ACL or a prefix-list for each block
Hope to help
Giuseppe
02-10-2010 02:34 PM
Yep. that works.
Thanks a lot.
Now I need to figure out how to get these kinds of routes injected into either eigrp or ibgp and to retain the weights...
I'll go and play. Will let you guys know if I need some more pointers.
Thanks
Joerg
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