ZXR105900ESeriesCongurationGuide(IPv4Routing)
S2(config-ospf-1)#exit
S2(config-ospf-1)#interfacevlan20
S2(config-ospf-1-if-vlan20)#authentication
S2(config-ospf-1-if-vlan20)#authentication-keyzte
S2(config-ospf-1-if-vlan20)#exit
Tocheckwhethertheauthenticationfunctioniseffectiveinarea0,runtheshowipospf
command.
S2(config)#showipospf
OSPF10RouterID1.1.1.2enable
Enabledfor02:37:38,Debugon
Numberofareas1,Stub0,Transit0
......
Area0.0.0.0enable
Enabledfor02:37:38
Areahassimplepasswordauthentication
Timesspfhasbeenrun32
Numberofinterfaces1.Up1
NumberofASBRlocaltothisarea0
NumberofABRlocaltothisarea1
......
EnabletheMD5authenticationfunctiononinterfacesthatbelongtoarea1.ThekeyIDis
1,andtheauthenticationpasswordiszte.
RunthefollowingcommandsonS2:
S2(config)#routerospf10
S2(config-ospf-10)#area1authenticationmessage-digest
S2(config-ospf-10)#interfacevlan20
S2(config-ospf-10-if-vlan20)#authenticationmessage-digest
S2(config-ospf-10-if-vlan20)#message-digest-key1md5zte
S2(config-ospf-10-if-vlan20)#exit
RunthefollowingcommandsonS3:
S3(config)#routerospf1
S3(config-ospf-1)#area1authenticationmessage-digest
S3(config-ospf-1)#interfacevlan10
S3(config-ospf-1-if-vlan10)#authenticationmessage-digest
S3(config-ospf-1-if-vlan10)#message-digest-key1md5zte
S3(config-ospf-1-if-vlan10)#exit
RunthefollowingcommandonS3tochecktheinformationoftheOSPFinterface.The
resultshowsthattheauthenticationmodeisMD5.
S3(config)#showipospfinterfacevlan10
OSPFRouterwithID(1.1.1.4)(ProcessID10)
vlan1isup
3-16
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential