Switch Protection
ExtremeWare XOS 10.1 Concepts Guide
123
Here are some additional examples of using regular expressions in the AS-Path statement.
The following AS-Path statement matches AS paths that contain only (begin and end with) AS number
65535:
as-path "^65535$"
The following AS-Path statement matches AS paths beginning with AS number 65535, ending with AS
number 14490, and containing no other AS paths:
as-path "^65535 14490$"
The following AS-Path statement matches 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:
as-path "^1 2-8 [11 13 15]$"
The following AS-Path statement matches AS paths beginning with AS number 111 and ending with
any AS number from 2 - 8:
as-path "111 [2-8]"
The following AS-Path statement matches AS paths beginning with AS number 111 and ending with
any additional AS number, or beginning and ending with AS number 111:
as-path "111 .?"
Zero or more occurrences
of AS number 1234
“1234*”
1234
1234 1234
Start of As path set
“10 12 { 34”
10 12 34 { 99
33 10 12 { 34 37
End of As path set
“12 } 34”
12 } 34 56
Path that starts with 99
followed by 34
“^99 34 “
99 34 45
Path that ends with 99
“99 $”
45 66 99
Path of any length that
begins with AS numbers 4,
5, 6
“4 5 6 .*”
4 5 6 4 5 6 7 8 9
Path of any length that
ends with AS numbers 4,
5, 6
“.* 4 5 6”
4 5 6
1 2 3 4 5 6
Table 25: Policy Regular Expression Examples
Attribute
Regular Expression
Example Matches
Summary of Contents for ExtremeWare XOS 10.1
Page 12: ...12 ExtremeWare XOS 10 1 Concepts Guide Contents...
Page 15: ...Part 1 Using ExtremeWare XOS...
Page 16: ......
Page 20: ...20 ExtremeWare XOS 10 1 Concepts Guide ExtremeWare XOS Overview...
Page 32: ...32 ExtremeWare XOS 10 1 Concepts Guide Accessing the Switch...
Page 74: ...74 ExtremeWare XOS 10 1 Concepts Guide Virtual LANs VLANs...
Page 80: ...80 ExtremeWare XOS 10 1 Concepts Guide Forwarding Database FDB...
Page 112: ...112 ExtremeWare XOS 10 1 Concepts Guide Status Monitoring and Statistics...
Page 133: ...Part 2 Using Switching and Routing Protocols...
Page 134: ......
Page 174: ...174 ExtremeWare XOS 10 1 Concepts Guide Virtual Router Redundancy Protocol...
Page 184: ...184 ExtremeWare XOS 10 1 Concepts Guide IP Unicast Routing...
Page 202: ...202 ExtremeWare XOS 10 1 Concepts Guide Interior Gateway Protocols...
Page 216: ...216 ExtremeWare XOS 10 1 Concepts Guide Exterior Gateway Routing Protocols...
Page 224: ...224 ExtremeWare XOS 10 1 Concepts Guide IP Multicast Routing...
Page 225: ...Part 3 Appendixes...
Page 226: ......
Page 234: ...234 ExtremeWare XOS 10 1 Concepts Guide Software Upgrade and Boot Options...
Page 242: ...242 ExtremeWare XOS 10 1 Concepts Guide Troubleshooting...
Page 256: ...4 ExtremeWare XOS 10 1 Concepts Guide Index of Commands...