cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
467
Views
0
Helpful
3
Replies

bgp route-map modification

gnijs
Level 4
Level 4

My question is regarding the impact of filters or redistibution while modifying a route-map:

For example: suppose i have a redistibution route-map with a DENY 10 statement that denies all routes.
Suppose i want to allow some routes.

I type:

route-map x permit 5 <enter>

What happens now, in fact, before i type any match statement ?

Does the router now allow all routes in ?
Or is nothing additionally allowed until a match statement is given ?
Or are all routes blocked until i exit config mode ?

In fact, when is the new route-map first evaluated ?

(if it might be important: for example on an ASR platform.)

regards,

GN

3 Replies 3

Harold Ritter
Level 12
Level 12

Hi @gnijs ,

If there is no match statement under the "route-map xxx permit", everything is matched.

Regards, 

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

route-map without match meaning match all prefix 
second 
if you config route-map with bgp neighbor then you need to end it with 
for IOS XR
route-policy allow_all
pass
end-policy
for IOS 
route-map x permit 10 


to include all prefix not match in first route-map line.

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @gnijs ,

the safer approach is to create a new route-map with a different name that you configure with both route-map clauses the permit and the deny blocks ,  then you change the redistribution statement to use the new route-map name instead of the old one .

Hope to help

Giuseppe

 

Review Cisco Networking for a $25 gift card