match aspath-list

Syntax

match aspath-list <ASPATH-LIST-NAME>

no match aspath-list <ASPATH-LIST-NAME>

Description

Matches the AS path attribute of the route with one or more regular expressions in the AS path list.

The no form of this command restores the default behavior of not matching the AS path attribute of the route.

Command context

config-route-map

Parameters

<ASPATH-LIST-NAME>

Specifies the name of the AS path list to match the AS path attribute of the route.

Authority

Administrators

Example

Configuring a match clause in the route map to match the AS path list:

switch(config)# ip aspath-list ASLst permit 1001
switch(config)# route-map GlobalMap permit seq 11
switch(config-route-map-GlobalMap-11)# match aspath-list ASLst