OSPF Commands
5-96 Configuring the Internet Protocol

ip ospf message-digest-key

Thiscommandenables/disablesOSPFMD5authenticationonaninterfacetovalidateOSPF
routingupdatesbetweenneighboringrouters.
Syntax
ip ospf message-digest-key keyid md5 key
Syntax of the “no” Form
Thenoformofthiscommandremovesthepasswordfromthisrouter:
no ip ospf message-digest-key keyid
Mode
Interfaceconfiguration:XSR(config-if<xx>)#
Default
OSPFMD5authenticationdisabled
Example
ThefollowingexampleenablesOSPFMD5���authenticationoninterfaceSerial1/0,andsetsthekey
identifierat20,andthepasswordaspass1.
XSR(config)#interface serial 1/0
XSR(config-if<S1/0>)#ip address 172.16.77.1 255.255.255.0
XSR(config-if<S1/0>)#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

ip ospf passive

ThiscommandsuppressesOSPFpacketsfrombeingsentorreceivedoveraspecifiedinterface.
Syntax
ip ospf passive
Syntax of the “no” Form
Thiscommand’snoformremovesthepassiveactionontheinterface:
no ip ospf passive
keyid KeyidentifierontheinterfacewhereMD5authenticationisenabled.
Validvaluesareintegersfrom1to255.
key PasswordforMD5authenticationtobeusedwiththekeyid.Valid
valuesarealphanumericstringsofupto16characters.