Cisco Cisco ASR 5700

Page of 8994
  Context Configuration Mode Commands I-M 
ip as-path access-list  ▀   
 
Command Line Interface Reference, StarOS Release 17  ▄  
 
   
2519 
ip as-path access-list 
Defines Border Gateway Protocol (BGP) Autonomous System (AS) Path access lists. 
Product
 
HA 
Privilege
 
Security Administrator, Administrator 
Mode
 
Exec > Global Configuration > Context Configuration 
configure > context context_name
 
Entering the above command sequence results in the following prompt: 
[context_name]host_name(config-ctx)# 
Syntax
 
[ no ] ip as-path access-list list_name [ { deny | permit } reg_expr ] 
no
 
Remove the specified regular expression from the AS path access list. 
list_name
 
Specifies the name of an AS path list as an alphanumeric string of 1 through 79 characters. 
{ deny | permit }
 
deny
: Denies access to AS paths that match the regular expression. 
permit
: Allows access to AS paths that match the regular expression. 
reg_expr
 
A regular expression to define the AS paths to match. 
reg_expr
 is an alphanumeric string of 1 through 254 
characters. 
Important:
  The ? (question mark) character is not supported in regular expressions for this command. 
Usage 
Use this command to define AS path access lists for the BGP router in the current context. The chassis 
supports a maximum of 64 access lists per context. 
Example
 
The following command creates an AS access list named 
ASlist1
 and permits access to AS paths: 
ip as-path access-list ASlist1 permit