
BGP Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
31.41
ip as-path access-list
This command defines a BGP Autonomous System (AS) path access list.
The named AS path list is a filter based on regular expressions. If the regular expression
matches the specified string representing the AS path of the route, then the permit or deny
condition applies. Use this command to define the BGP access list globally, use the neighbor
router configuration command to apply a specific access list.
Regular expressions listed below can be used with the
ip as-path-access-list
command:
The
no
form disables the use of the access list
Syntax
ip as-path access-list
<listname>
{
deny
|
permit
}
<line>
no ip as-path access-list
<listname>
{
deny
|
permit
}
<line>
Mode
Configure mode
Examples
awplus#
configure terminal
awplus(config)#
ip as-path access-list mylist deny ^65535$
Symbol Character
Meaning
^
Caret
Used to match the beginning of the input string. When used at the
beginning of a string of characters, it negates a pattern match.
$
Dollar sign
Used to match the end of the input string.
.
Period
Used to match a single character (white spaces included).
*
Asterix
Used to match none or more sequences of a pattern.
+
Plus sign
Used to match one or more sequences of a pattern.
?
Question
mark
Used to match none or one occurrence of a pattern.
_
Underscore Used to match spaces, commas, braces, parenthesis, or the beginning
and end of an input string.
[]
Brackets
Specifies a range of single-characters.
-
Hyphen
Separates the end points of a range.
Parameter
Description
<listname>
Specifies the name of the access list.
deny
Denies access to matching conditions.
permit
Permits access to matching conditions.
<line>
Specifies a regular expression to match the BGP AS paths.