
Routing and Routing Protocols 185
ip ospf authentication-key key
This command would be placed under a specific interface. One would also
need to add the following area command under the router ospf <process-
id> area:
area area-id authentication
The following example illustrates the assignment of the password hard2get
to the prior OSPF configuration example for area 0 and the password treblig5
for area 23.
interface Ethernet0
ip address 205.131.176.2 255.255.255.0
ip ospf authentication-key hard2get
interface Ethernet1
ip address 205.131.176.1 255.255.255.0
ip ospf authentication-key hard2get
interface seriol0
ip address 198.78.46.1 255.255.255.0
ip ospf authentication-key ...