gated.conf.4 (2010 09)
g
gated.conf(4) gated.conf(4)
aspath aspath_regexp origin any |([igp ][egp ][incomplete ])
This specifies that an AS matching the aspath_regexp with the specified origin is matched.
AS path regular expressions
Technically, an AS path regular expression is a regular expression with the alphabet being the set of AS
numbers. An AS path regular expression is composed of one or more AS paths expressions. An AS path
expressions is composed of AS path terms and AS path operators.
AS path terms
An AS path term is one of the following three objects:
autonomous_system
.
( aspath_regexp )
where
autonomous_system Any valid autonomous system number, from one through 65534
inclusive.
. Matches any autonomous system number.
( aspath_regexp ) Parentheses group subexpressions--an operator, such as * or ? works
on a single element or on a regular expression enclosed in parentheses
AS path operators
An AS path operator is one of the following:
aspath_term {m,n}
aspath_term {m}
aspath_term {m,}
aspath_term *
aspath_term +
aspath_term ?
aspath_term | aspath_term
aspath_term {m,n}
a regular expression followed by {m,n} (where m and n are both nonnegative integers and m <= n)
means at least m and at most n repetitions.
aspath_term {m}
a regular expression followed by {m} (where m is a positive integer) means exactly m repetitions.
aspath_term {m,}
a regular expression followed by {m,} (where m is a positive integer) means m or more repetitions.
aspath_term *
an AS path term followed by * means zero or more repetitions. This is shorthand for {0,}.
aspath_term +
a regular expression followed by + means one or more repetitions. This is shorthand for {1,}.
aspath_term ?
a regular expression followed by ? means zero or one repetition. This is shorthand for {0,1}.
aspath_term | aspath_term
matches the AS term on the left, or the AS term on the right.
The Import Statement
Importation of routes from routing protocols and installation of the routes in the GateD routing database
is controlled by import statements. The format of an import statement varies depending on the source
protocol.
Specifying preferences
In all cases, one of two keywords may be specified to control how routes compete with other protocols:
restrict
preference preference
HP-UX 11i Version 3: September 2010 − 43 − Hewlett-Packard Company 43