Match criteria

You can use a variety of criteria to match a route in a route map. Some criteria, such as BGP community lists and AS-Path Lists, are applicable only to a specific routing protocol. Other criteria, such as the Prefix lists, can be used for any route.

When a routing protocol processes a route through a route map, it compares the route to each of the configured match statements. If the route or packet matches the configured criteria, the routing protocol processes it based on the permit or deny configuration for that match entry in the route map.

The match categories and parameters are as follows:
  • BGP parameters: Match based on AS-path Lists, Community Lists, or Origin code.

  • Prefix lists: Match based on an address or range of addresses.

  • Other parameters: Match based on an IP next-hop address or metric.