Configure BGP4 Route Map Matching on an AS-path

You can configure a route map that matches on a specified AS-path access control list (ACL).

Before you begin

The AS-path ACL must be configured using the ip as-path access-list command.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Create a route map instance and allow a matching pattern.
    device(config)# route-map myaclroutemap1 permit 10
    This example creates a route map instance called myaclroutemap1 and allows a matching pattern of 10.
  3. Configure the route map to match on an AS-path ACL.
    device(config-route-map-myaclroutemap1/permit/10)# match as-path myaspath
    This example configures the route map to match on the AS-path ACL called myaspath.

Example

The following example summarizes the commands in this procedure.

device# configure termnial
device(config)# route-map myaclroutemap1 permit 10
device(config-route-map-myaclroutemap1/permit/10)# match as-path myaspath