Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.11 Definition Statements
A.11 Definition Statements
Definition statements are general configuration statements that relate to all of
GATED, or at least to more than one protocol. The three definition statements
are
autonomoussystem
,
routerid
, and
martians
. If used,
autonomoussystem
,
routerid
, and
martians
, must appear before any other type of configuration
statement in TCPIP$GATED.CONF file.
A.11.1 Autonomous System Configuration
The statement
autonomoussystem as_number [loops number];
sets the AS
number of this router used by BGP EGP. The AS number is the official
autonomous system number assigned to you by the Network Information Center
(NIC).
The loops parameter is only for protocols supporting AS paths, such as BGP. It
controls the number of times this autonomous system may appear in an AS path
and defaults to 1 (one).
A.11.2 Router ID Configuration
The statement
routerid host;
sets the router identifier for use by the BGP and
OSPF protocols. The default is the address of the first interface encountered by
GATED. The address of a non-point-to-point interface is preferred over the local
address of a point-to-point interface, and an address on a loopback interface that
is not the loopback address (127.0.0.1) is most preferred.
A.11.3 Martian Configuration
Sometimes a misconfigured system sends out invalid destination addresses.
These invalid addresses, called martians, are rejected by the routing software. A
martian configuration defines a list of martian addresses from which all routing
information is ignored. A martian configuration is structured as follows:
martians {
host host [allow] ;
network [allow] ;
network mask mask [allow] ;
network masklen number [allow] ;
default [allow] ;
};
The
martians martian_list
statement adds martian addresses to a martian
address list. Routing information will not be accepted from the addresses
specified in this list.
You can specify the allow parameter to explicitly allow a subset of a range that
was disallowed.
A.11.4 Sample Definition Statements
The following sample shows definition statements for a system:
options gendefault ;
autonomoussystem 249 ;
interface 128.66.12.2 passive ;
martians {
0.0.0.26
};
Gateway Routing Daemon (GATED) Configuration Reference A–15