Configuring gated

Configuring the OSPF Protocol

Figure 3-9 shows an example of an area border router that is connected to area 0.0.0.2 through interface 193.2.1.20. Because all traffic in and out of the 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 3-9

 

Area Border Router Configuration Example

 

 

 

 

 

 

 

 

 

 

Area 0.0.0.1

 

 

 

Area 0.0.0.2

 

 

 

 

 

 

 

 

 

 

193.2.1.16 mask 0xfffffff0

 

 

 

Router

 

 

 

Router

193.2.1.17

B

A193.2.1.20

193.2.1.18

193.2.1.19

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.17eligible ;

};

priority 5 ; hellointerval 5 ; routerdeadinterval 20 ; retransmitinterval 10 ; pollinterval 20 ;

} ;

} ;

};

Chapter 3

75