User guide
Using Routing Access Profiles
ExtremeWare 7.2e Installation and User Guide 159
Autonomous System Expression Example
The following example uses combinations of the autonomous system expressions to create a
complicated access profile:
create access-profile AS1 type as-path
configure access-profile AS1 mode none
These commands create the access profile.
configure access-profile AS1 add 5 permit as-path “^65535$”
This command configures the access profile to permit AS paths that contain only (begin and end with)
AS number 65535.
configure access-profile AS1 add 10 permit as-path “^65535 14490$”
This command configures the access profile to permit AS paths beginning with AS number 65535,
ending with AS number 14490, and containing no other AS paths.
configure access-profile AS1 add 15 permit as-path “^1 2-8 [11 13 15]$”
This command configures the access profile to permit AS paths beginning with AS number 1, followed
by any AS number from 2 - 8, and ending with either AS number 11, 13, or 15.
configure access-profile AS1 add 20 deny as-path “111 [2-8]”
This command configures the access profile to deny AS paths beginning with AS number 111 and
ending with any AS number from 2 - 8.
configure access-profile AS1 add 25 permit as-path “111 .?”
This command configures the access profile to permit AS paths beginning with AS number 111 and
ending with any additional AS number, or beginning and ending with AS number 111.
. Matches any number
^ Matches the beginning of the AS path
$ Matches the end of the AS path
– Matches the beginning or end, or a space
- Separates the beginning and end of a range of numbers
* Matches 0 or more instances
+ Matches 1 or more instances
? Matches 0 or 1 instance
{ Start of AS SET segment in the AS path
} End of AS SET segment in the AS path
( Start of a confederation segment in the AS path
) End of a confederation segment in the AS path
Table 30: Regular Expression Notation (Continued)
Character Definition