Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.18 Control Statements
Routes that match the route filters are called contributing routes. They are
ordered according to the aggregation preference that applies to them. If there
are more than one contributing routes with the same aggregating preference,
the route’s own preferences are used to order the routes. The preference of the
aggregate route will be that of contributing route with the lowest aggregate
preference.
preference
specifies the preference to assign to the resulting aggregate route.
The default preference is 130.
brief
used to specify that the AS path should be truncated to the longest
common AS path. The default is to build an AS path consisting of SETs and
SEQUENCEs of all contributing AS paths.
proto
specifies, in addition to the special protocols listed, the contributing
protocol may be chosen from among any of the ones supported (and currently
configured into) GATED.
as
restricts selection of routes to those learned from the specified autonomous
system.
tag
restricts selection of routes to those with the specified tag.
aspath
restricts selection of routes to those that match the specified AS path.
restrict
indicates that these routes are not to be considered as contributors
of the specified aggregate. The specified protocol may be any of the protocols
supported by GATED.
A route may only contribute to an aggregate route which is more general than
itself; it must match the aggregate under its mask. Any given route may only
contribute to one aggregate route, which will be the most specific configured, but
an aggregate route may contribute to a more general aggregate.
Route Filters
All the formats allow route filters as shown below. See Section A.18.4.2 for a
detailed explaination of how they work. When no route filtering is specified (that
is, when restrict is specified on the first line of a statement), all routes from the
specified source will match that statement. If any filters are specified, only routes
that match the specified filters will be considered as contributors. That is, if any
filters are specified, an
all restrict ;
statement is assumed at the end of the
list.
network [exact | refines | between number and number ]
network mask mask [exact | refines | between number and number ]
network masklen number [ exact | refines | between number and number ]]
default
host host
A.19 Sample Host Configurations
The configuration file for end systems is simple, usually containing only two
configuration statements.
The following sample configuration file emulates ROUTED. It runs RIP and
only sends updates if there is more than one interface up and IP forwarding
is enabled in the kernel:
#
rip yes ;
#
Gateway Routing Daemon (GATED) Configuration Reference A–43