Configuring Route Maps for Route Updates
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:
admin@XorPlus# set protocols bgp ipv4-unicast table-map map1 admin@XorPlus# commit
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:
admin@XorPlus# set routing protocol bgp route-map routemap1 admin@XorPlus# commit
Copyright © 2024 Pica8 Inc. All Rights Reserved.