match as-path

Matches a BGP autonomous system path (AS-path) ACL in a route map instance.
Syntax
match as-path aspath-name …
no match as-path aspath-name
Command Default

By default, match statements are not configured.

Parameters
aspath-name
Specifies an AS-path access list.
Modes

Route-map configuration mode

Usage Guidelines

You can specify up to five AS-path ACLs.

The no form of the command removes the configuration.

Examples

The following example configures a route map that matches based on AS-path “myas-path”.

device# configure termnial
device(config)# route-map myroutemap permit 1
device(config-routemap myroutemap)# match as-path myas-path