12-13-2017
05:38 AM
- last edited on
07-21-2022
02:29 AM
by
Translator
Hi
Is there something wrong with this config to prepend a default route?
I've tried this:
router bgp 64521
network 0.0.0.0 route-map DEFAULT_COMMUNITY
!
route-map DEFAULT_COMMUNITY permit 10
match ip address prefix-list DEFAULT_ROUTE
set origin igp
set as-path prepend 64521 64521 64521
set community 1222:221
!
ip prefix-list DEFAULT_ROUTE seq 5 permit 0.0.0.0/0
and also this without calling the
prefix list
route-map DEFAULT_COMMUNITY permit 10
set origin igp
set as-path prepend 64521 64521 64521
set community 1222:221
The set community works fine but prepend does not
Thanks
Solved! Go to Solution.
12-13-2017 07:58 AM
Hi
It works for route-maps applied to neighbors.
12-13-2017 07:58 AM
Hi
It works for route-maps applied to neighbors.
12-13-2017 10:26 AM
Just to add to Julio's statement, you can have the route-map setting attributes when originating the default; but you would still need another route-map to set the as-path prepend. This one applied to the neighbor.
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