Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Route-map Access-list Q

Hello All,

Can someone please clarify as to why and when a second line of route-map requires a permit statement when the first line is already a permit statement?

I have seen this in many books but confuses me.

As for an access-list i know if the first statement is deny, there is a need for a second line to permit if one desires other prefixes to do otherwise.

Hope someone can help me sooner?.

Thanks

1 REPLY
Hall of Fame Super Bronze

Re: Route-map Access-list Q

A second route-map line is needed since there is an implicit deny.

For instance, on BGP - you may have routes you want to change the AS_PATH so you create a route-map permit 10 with a match against those routes but other routes should also be sent by BGP with the AS_PATH unchanged so you create another route-map with permit 20. If you don't create a second route-map, routes not matching on permit 10 won't be advertised by BGP.

HTH,

__

Edison.

108
Views
0
Helpful
1
Replies