cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1658
Views
0
Helpful
2
Replies

Prepend default route

scottmanzie1
Level 1
Level 1

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

 

1 Accepted Solution

Accepted Solutions

Hi

It works for route-maps applied to neighbors. 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

View solution in original post

2 Replies 2

Hi

It works for route-maps applied to neighbors. 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

bersoare
Cisco Employee
Cisco Employee

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. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: