Configuring gated

Configuring the OSPF Protocol

configured on a per-interface basis. If a router has interfaces to more than one network, different passwords can be configured. This is illustrated in Figure 3-11.

Figure 3-11 Simple Password Authentication

A

LAN 1authkey "travis"

B

LAN 2

 

authkey "pepe"

 

C

The following example shows an authtype statement that enables a simple password authentication for the routers in the area and an authkey statement in the interface definition that defines a password (travis) to validate protocol packets received by the router:

area 0.0.0.1 { authtype simple ; networks {

193.2.1.16mask 0xfffffff0 ;

193.2.1.32mask 0xfffffff0 ;

} ;

interface 193.2.1.35 nonbroadcast cost 5 { routers {

193.2.1.33eligible ;

193.2.1.46eligible ;

};

priority 15 ; enable ; hellointerval 5 ; routerdeadinterval 20 ;

78

Chapter 3