Command:

match as-path


Mode:

Router(config-route-map)#


Syntax:

match as-path path-list-number
no match as-path [path-list-number] ...[path-list-number]

 

Syntax Description:

path-list-number Autonomous system path access list. An integer from 1 to 199.

 

Command Description:

To match a BGP autonomous system path access list, use the match as-path command in route-map configuration mode. To remove a path list entry, use the no form of this command.

The values set by the match as-path and set weight commands override global values. For example, the weights assigned with the match as-path and set weight route-map configuration commands override the weight assigned using the neighbor weight command.

A route map can have several parts. Any route that does not match at least one match clause relating to a route-map command will be ignored; that is, the route will not be advertised for outbound route maps and will not be accepted for inbound route maps. If you want to modify only some data, you must configure a second route-map section with an explicit match specified.


Example:

The following example sets the autonomous system path to match BGP autonomous system path access list 20:

Router(config-route-map)# match as-path 20


Misconceptions:

None


Related Commands:

match community
match interface
match ip address
match ip next-hop
match ip route-source
match metric
match route-type
match tag
neighbor weight
route-map
set as-path
set automatic-tag
set community
set level
set local-preference
set metric BGP OSPF RIP
set metric-type
set origin BGP
set tag
set weight

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)