cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2087
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

Julio E. Moisa
VIP Alumni
VIP Alumni

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

Julio E. Moisa
VIP Alumni
VIP Alumni

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.