You can apply route maps in BGP in one of two ways:
• Filter routes from BGP into Zebra
• Filter routes from Zebra into the Linux kernel
Filter Routes from BGP into Zebra
You can apply a route map on route updates from BGP to Zebra. All the applicable match operations are allowed, such as match on prefix, next hop, communities, and so on. Set operations are limited to metric and next hop only. Applying a route map on route updates from BGP to Zebra does not
affect the BGP internal RIB.
Both IPv4 and IPv6 address families are supported. Route maps work on multi-paths; however, the metric setting is based on the best path only.
The following example command applies a route map called routemap1 to filter route updates from BGP into Zebra:
Filter Routes from Zebra into the Linux Kernel
The following example commands apply a route map called routemap1 to filter route updates from Zebra into the Linux kernel: