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?
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