Owner's Manual
Chapter 14. Routing Policies | 349
NETGEAR 8800 User Manual
Note: When entering an AS number in a policy file, you must enter a
unique 2-byte or 4-byte AS number. The transition AS number, AS
23456, is not supported in policy files.
Autonomous system expressions
The AS-path keyword uses a regular expression string to match against the autonomous
system (AS) path.
Table 38 lists the regular expressions that can be used in the match
conditions for Border Gateway Path (BGP) AS path and community. Table 39 shows
examples of regular expressions and the AS paths they match.
tag <number>; Where <number> is a 4-byte unsigned number.
route-origin [direct | static | icmp | egp | ggp | hello |
rip | isis | esis | cisco-igrp | ospf | bgp | idrp | dvmrp |
mospf | pim-dm | pim-sm | ospf-intra | ospf-inter |
ospf-extern1 | ospf-extern2 | bootp | e-bgp | i-bgp |
mbgp | i-mbgp | e-mbgp]
Matches the origin (different from BGP route origin) of a
route.
A match statement "route-origin bgp" will match routes
whose origin are "I-bgp" or "e-bgp" or "I-mbgp" or
"e-mbgp". Similarly, the match statement "route-origin
ospf" will match routes whose origin is "ospf-inta" or
"ospf-inter" or "ospf-as-external" or "ospf-extern-1" or
"ospf-extern-2"
Table 38. AS Regular Expression Notation
Character Definition
N As number
N
1
- N
2
Range of AS numbers, where N
1
and N
2
are AS numbers and N
1
< N
2
[N
x
... N
y
] Group of AS numbers, where N
x
and N
y
are AS numbers or a range of AS numbers
[^N
x
... N
y
] Any AS numbers other than the ones in the group
. 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
Table 37. Policy Match Conditions (Continued)
Match Condition Description










