Installing and Administering Internet Services

Chapter 8 333
Configuring gated
Configuring the RIP Protocol
};
static {
default interface 121.1.0.10 preference 255 ;
};
With one interface, A can listen to RIP traffic on the network but does
not forward routing information. Routers must be multicasting RIP
packets on this network for A to learn about them and update its routing
table. The first syntax statement enables RIP on node A’s interface
(121.1.0.10). The second statement specifies a static local default route,
to prevent gated from deleting it.
B: RIP Router
Set up /etc/gated.conf as follows:
rip yes {
interface all version 2 multicast ;
};
This enables the RIP protocol on all interfaces.
RIP Protocol Statement
The syntax for the RIP protocol statement is:
rip yes|no | on|off [ {
broadcast|nobroadcast ;
nocheckzero ;
preference
preference
;
defaultmetric
metric
;
query authentication [none|[[simple|md5]
password
]] ;
interface
interface_list
[noripin]|[ripin] [noripout]|[ripout]
[metricin
metric
] [metricout
metric
]
[version 1]|[version 2 [multicast|broadcast]]
[[secondary] authentication [none|[simple|md5]
password
]]
;
[interface ...]
trustedgateways
router_list
;
sourcegateways
router_list
;
traceoptions
traceoptions
;
} ] ;
Curly braces ({}) are part of the syntax for the RIP protocol statement.
Square brackets ([]) are not part of the syntax; they are used here to
indicate optional parameters.