Technical data

Gateway Routing Daemon (GATED) Configuration Reference
A.19 Sample Host Configurations
# generate a default route if an EGP neighbor is acquired
#
options gendefault ;
#
# define the autonomous system number for EGP
#
autonomoussystem 303 ;
#
# enable RIP
#
rip yes ;
#
# enable EGP with hello interval 1 1/2 minute, poll
# interval 10 minutes, neighbors 26.6.0.103 and 26.20.0.72
#
egp yes {
packetsize 24488 ;
group minhello 1:30 minpoll 10:00 {
neighbor 26.6.0.103 ;
neighbor 26.20.0.72 ;
};
};
#
# announce 136.66 to AS 183
#
export proto egp as 183 {
proto direct {
136.66 metric 0 ;
};
};
#
# announce default through RIP with a metric of 3
#
export proto rip interface 136.66.12.1 {
proto default {
announce 0.0.0.0 metric 3 ;
};
};
The AS number 303 is defined early because it is a definition statement and must
occur before the first protocol statement. EGP is enabled by the yes keyword in
the EGP statement. This statement also defines the following EGP parameters:
Packetsize
parameter, which defines the initial size of update packets
accepted.
Group
clause, which sets parameters for all of the EGP neighbors in the
group.
Minhello
and
minpoll
, which set the protocol timers.
The first
export
statement directs GATED to use EGP to advertise the network
(136.66.0.0) to the Internet. This is the address of the network, not of a gateway.
The second
export
statement is used to announce the default route to subnet
136.66.12.0 with a metric of 3.
Gateway Routing Daemon (GATED) Configuration Reference A–45