Installing and Administering Internet Services

270 Chapter 8
Configuring gated
Configuring the OSPF Protocol
Figure 8-9 shows an example of an area border router that is connected
to area 0.0.0.2 through interface 193.2.1.20. Since all traffic in and out of
area 0.0.0.2 must pass through router A, it is not necessary for the area’s
internal routers, such as router B, to receive inter-area routing
information.
Figure 8-9 Area Border Router Configuration Example
The following is an example of the stub area definition in the router’s
/etc/gated.conf file:
OSPF yes {
area 0.0.0.2 {
stub cost 5 ;
networks {
193.2.1.16 mask 0xfffffff0 ;
} ;
interface 193.2.1.20 nonbroadcast cost 5 {
enable ;
routers {
193.2.1.17 eligible ;
} ;
priority 5 ;
hellointerval 5 ;
routerdeadinterval 20 ;
retransmitinterval 10 ;
pollinterval 20 ;
} ;
} ;
} ;
Router
193.2.1.20
193.2.1.16 mask 0xfffffff0
193.2.1.17
193.2.1.18
193.2.1.19
Area 0.0.0.2Area 0.0.0.1
Router
B
A