Installing and Administering Internet Services

Chapter 8 273
Configuring gated
Configuring the OSPF Protocol
Figure 8-11 Simple Password Authentication
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.16 mask 0xfffffff0 ;
193.2.1.32 mask 0xfffffff0 ;
} ;
interface 193.2.1.35 nonbroadcast cost 5 {
routers {
193.2.1.33 eligible ;
193.2.1.46 eligible ;
} ;
priority 15 ;
enable ;
hellointerval 5 ;
routerdeadinterval 20 ;
retransmitinterval 10 ;
pollinterval 20 ;
authkey " travis " ;
} ;
} ;
A
C
B
LAN 1
LAN 2
authkey "travis"
authkey "pepe"