OSPF Commands
5-84 Configuring the Internet Protocol
“VRRPClearandShowCommands”onpage 5197.

OSPF Commands

area authentication

Thiscommandenables/disablesauthenticationforanOSPFarea.
Syntax
area area-id authentication [message-digest]
Syntax of the “no” Form
ThenoformofthiscommandremovesauthenticationfromtheOSPFareaspecifiedbyareaid:
no area area-id authentication
Mode
Routerconfiguration:XSR(config-router)#
Default
ThedefaultvalueisType0authentication;thatis,noauthentication.
Example
ThisexampleenablesauthenticationonOSPFarea10.0.0.0.interfaceSerial1/1,whoseaddressis
172.16.77.1,ispartofarea10.0.0.0,soanauthenticationmechanismcouldbedefinedforit:
XSR(config)#interface serial 1/1
XSR(config-if<S1/1)#ip address 172.16.77.1 255.255.255.0
XSR(config-if<S1/1)#ip ospf message-digest-key 20 md5 pass1
XSR(config)#router ospf 1
XSR(config-router)#network 172.16.77.1 0.0.0.0 area 10.0.0.0
XSR(config-router)#area 10.0.0.0 authentication message-digest

area default-cost

ThiscommandsetsthecostvalueforthedefaultroutethatissentintoastubareabyanArea
BorderRouter(ABR).ThiscommandisrestrictedtoABRsattachedtostubareas.
Syntax
area area-id default-cost cost
area-id OSPFareatobeauthenticated,expressedindecimalsorIPaddresses.
message-digest EnablesMD5authenticationontheOSPFareaindicatedbyareaid
keyword
area-id ThestubareaexpressedindecimalsorIPaddresses.
cost Costvalueforasummaryroutethatissenttoastubareabydefault.
Validvaluesare24bitnumbers,from0to16,777,215.