You can configure a route map instance to filter the additional-paths that are advertised.
Before completing this task, the set of paths eligible for selection as additional-paths must be configured by using the additional-paths select command, under the relevant address family. An example is provided at the end of this task that shows all the configuration steps in order.
Perform the following task to configure a route-map instance to filter the additional-paths advertised.
device# configure terminal
device(config)# route-map rm-1 permit 123
device(config-route-map/permit/123)# match additional-paths advertise-set best-range 2 13
Note
Only one match additional-paths advertise-set configuration is allowed for a route map instance; any subsequent additional-paths advertise-set configuration overwrites the previous configuration.Note
You cannot use a route map that is configured with an additional-paths match statement for incoming routes (routes that are configured by using the neighbor route-map command specifying the in option.The following example first shows how to configure all paths to be eligible for selection as additional-paths, under the IPv4 address family. It then configures a route map (rm-1) to advertise paths marked in the range from 2 through 14.
device# configure terminal device(config)# router bgp device(config-bgp)# address-family ipv4 unicast device(config-bgp-ipv4u)# additional-paths select all device(config-bgp-ipv4u)# end device(config)# route-map rm-1 permit 123 device(config-route-map/permit/123)# match additional-paths advertise-set best-range 2 13