Allied Telesis VERSION 5.4.3-2.6 Switch User Manual


 
BGP and BGP4+ Commands
Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches
3.66 AlliedWare Plus
TM
Operating System - Software Version 5.4.3-2.6 C613-50032-01 REV D
ip as-path access-list (BGP and BGP4+)
This command defines a BGP and BGP4+ Autonomous System (AS) path access list.
The named AS path list is a filter based on regular expressions. If the regular expression
matches the AS path in a BGP update message, then the permit or deny condition applies
to that update. Use this command to define the BGP access list globally, then use
neighbor configuration commands to apply the list to a particular neighbor.
The no variant of this command disables the use of the access list
Syntax [BGP/BGP4+] ip as-path access-list <listname> {deny|permit} <reg-exp>
no ip as-path access-list <listname> {deny|permit} <reg-exp>
Regular expressions listed below can be used with the ip as-path-access-list command:
Mode [BGP/BGP4+] Global Configuration
Example
[BGP/BGP4+]
Parameter Description
<listname> Specifies the name of the access list.
deny Denies access to matching conditions.
permit Permits access to matching conditions.
<reg-exp> Specifies a regular expression to match the BGP AS paths.
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).
* Asterisk 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.
_Underscor
e
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.
awplus#
configure terminal
awplus(config)#
ip as-path access-list mylist deny ^65535$