Filtering additional-paths advertised at route-map level

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.

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
    
  2. Create a route map instance and enter configuration mode for the route map instance.
    device(config)# route-map rm-1 permit 123
    
    This example creates instance 123 of a route map named rm-1 and enters configuration mode for the instance.
  3. Configure filtering of additional-paths advertised for the route-map instance.
    device(config-route-map/permit/123)# match additional-paths advertise-set best-range 2 13
    
    This example configures the route-map instance to advertise paths with a path marking (tag) in the range from 2 through 13.
    Note

    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

    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