09-26-2012 04:06 AM - edited 03-04-2019 05:40 PM
Can some one explain to me the expected default action on a route map like this:
router bgp 64516
neighbour x.x.x.x route-map Prepend out
route-map Prepend permit 10
match ip address ACL (10.0.0.0/24)
set as-path prepend 64516
What i found today is that all other networks weren't be advertised
I had to change my config to
router bgp 64516
neighbour x.x.x.x route-map Prepend out
route-map Prepend permit 10
match ip address ACL (10.0.0.0/24)
set as-path prepend 64516
route-map Prepend permit 20
Then the other networks were advertised correctly.
Solved! Go to Solution.
09-26-2012 04:25 AM
Hello Martin,
the way in which route-maps have to be terminated depends on their use:
route-maps used for PBR do not need a last empty clause because the implicit action in this case is normal destination based routing
A route-map used on a BGP session both inbound or outbound is a route filter that decides what routes can be advertised/received to/from the neighbor and allows also to perform some BGP attributes manipulation.
In this case a last empty clause matching anything else is needed if all other routes have to be advertised/received, because otherwise the filtering action blocks all routes not matching the previous route-map clauses.
So your findings are correct and the way we terminate a route-map is a key point to be taken in account.
Also route-maps used for redistribution are route filters and have to be terminated accordingly.
Hope to help
Giuseppe
09-26-2012 04:25 AM
Hello Martin,
the way in which route-maps have to be terminated depends on their use:
route-maps used for PBR do not need a last empty clause because the implicit action in this case is normal destination based routing
A route-map used on a BGP session both inbound or outbound is a route filter that decides what routes can be advertised/received to/from the neighbor and allows also to perform some BGP attributes manipulation.
In this case a last empty clause matching anything else is needed if all other routes have to be advertised/received, because otherwise the filtering action blocks all routes not matching the previous route-map clauses.
So your findings are correct and the way we terminate a route-map is a key point to be taken in account.
Also route-maps used for redistribution are route filters and have to be terminated accordingly.
Hope to help
Giuseppe
09-26-2012 04:40 AM
Martin ,
You just need to remember the route-map logic i-e
The route-map command includes an implied deny all clause at the end; to configure a permit all, use the route-map command, with a permit action, but without a match command.
Hope this helps you.
Regards.
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