Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Configuring Match Clauses and Values for a Route Map

    This topic describes how to configure the match clauses and values for a route map.

    To configure match clauses and values for a route map:

    • Match an AS-path access list. The implemented weight is based on the first matched AS path.
      host1(config-route-map)#match as-path pathlist5

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match a community list.
      host1(config-route-map)#match community comm5

      This command supports inbound and outbound route maps.

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match any routes being redistributed out of the routing table that have the specified administrative distance. A distance of 255 prevents the route from being installed in the routing table.
      host1(config-route-map)#match distance 25

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match an extended community list in a route map. (For more information, see Matching an Extended Community List on a Route Map.)
      host1(config-route-map)#match extcommunity topeka10

      Use the no version to remove the match clause from a route map or a specified value from the match clause.

    • Match any route that has a destination network number that is permitted by an access list, a prefix list, or a prefix tree, or that performs policy routing on packets. (For more information, see Matching Routes on the Basis of the Destination IP or IPv6 Address Permitted by the Prefix List and Matching Routes on the Basis of the Destination IP Address Permitted by the Prefix Tree.)
      host1(config-route-map)#match ip address prefix-tree boston

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match any routes that have a next-hop router address passed by the specified access list, prefix list, or prefix tree. (For more information, see Matching Routes on the Basis of the Next-Hop Router IP or IPv6 Address Passed by the Prefix List and Matching Routes on the Basis of the Next-Hop Router IP Address Passed by the Prefix Tree.)
      host1(config-route-map)#match ip next-hop 5 acl_192_54_24_1

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match any routes that have a destination network number address that is permitted by the specified prefix list. (For more information, see Matching Routes on the Basis of the Destination IP or IPv6 Address Permitted by the Prefix List.)
      host1(config-route-map)#match ipv6 address prefix-list boston

      Use the no version to delete all address match clauses from a route map unless you specify a prefix list, in which case only that prefix list match is removed from the route map.

    • Match any routes that have a next-hop router address passed by the specified prefix list. (For more information, see Matching Routes on the Basis of the Next-Hop Router IP or IPv6 Address Passed by the Prefix List.)
      host1(config-route-map)#match ipv6 next-hop prefix-list next1

      Use the no version to delete all next-hop match clauses from a route map unless you specify a prefix list, in which case only that prefix list match is removed from the route map.

    • Match any routes that are advertised from addresses contained in the specified prefix list.
      host1(config-route-map)#match ipv6 route-source prefix-list source

      Use the no version to delete all route-source match clauses from a route map unless you specify a prefix list, in which case only that prefix list match is removed from the route map.

    • Match routes for the specified level.
      host1(config-route-map)#match level level-1

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match a route for the specified metric value.
      host1(config-route-map)#match metric 10

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Match a route for the specified metric type.
      host1(config-route-map)#match metric-type external

      Use the no version to delete the match clause from a route map.

    • Reference a policy list that has the specified name.
      host1(config-route-map)#match policy-list list1

      Use the no version to remove the match clause from a route map.

    • Match a route for the specified route type.
      host1(config-route-map)#match route-type level-1

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    • Specify the prefix tree that summarizes routes for a particular route map. (For more information, see Summarizing Matched Routes on the Basis of the Network Base Address Set in the Prefix Tree.)
      host1(config-route-map)#match-set summary prefix-tree boston

      Use the no version to disable the use of the prefix tree by the route map.

    • Match the tag value of the destination routing protocol.
      host1(config-route-map)#match tag 25

      Use the no version to delete the match clause from a route map or a specified value from the match clause.

    Published: 2014-08-12