Chapter3OSPFConguration
S1(config)#routerospf1
S1(config-ospfv2-1)#interfacevlan10
S1(config-ospfv2-1-if-vlan10)#hello-interval20
/*SetstheintervalforsendingHELLOpacketsonthe
specifiedinterfaceto20seconds.*/
S1(config-ospfv2-1-if-vlan10)#dead-interval80
/*Setsthedurationforconsideringaneighbortobedead
to80seconds.*/
S1(config-ospfv2-1-if-vlan10)#retransmit-interval10
/*SetstheintervalforretransmittingLSAto10seconds.*/
S1(config-ospfv2-1-if-vlan10)#retransmit-delay2
/*Setsthedelayfortransmittingalinkstateupdate
packetto2seconds.*/
S1(config-ospfv2-1-if-vlan10)#cost10
/*Setsthecostto100.*/
S1(config-ospfv2-1-if-vlan10)#priority10
/*Setstheinterfacepriorityto10.*/
ConguringOSPFAuthentication
Toenhanceroutingsafetyonanetwork,performthefollowingstepstocongurethe
authenticationfunction.ThepasswordsusedbyOSPFneighborsmustbethesame.
StepCommandFunction
ZXR10(config)#routerospf<process-id>[vrf<vrf-name>]EntersOSPFroutingmode. 1
ZXR10(config-ospfv2)#area<area-id>authentication
[message-digest]
Enablestheauthentication
functionforinterfacesthatrun
theOSPFprotocol.
2ZXR10(config)#routerospf<process-id>EntersOSPFroutingmode.
ZXR10(config-ospfv2)#interface<interface-name>Entersinterfaceconguration
mode.
3
ZXR10(config-ospfv2-if)#authentication
[null|message-digest]
Setstheauthenticationfunction
oninterfaces.
ZXR10(config-ospfv2-if)#authentication-key{<word>|
encrypted<encrypted_password>}
Setsapasswordforthe
interfacethatisconguredwith
theauthenticationfunction.
4
ZXR10(config-ospfv2-if)#message-digest-key<keyid>
md5{<word>|encrypted<encrypted_password>[delay
<time>]}
SetsakeyIDoran
authenticationpassword
fortheinterfacethatusesMD5
authenticationmode.
ForadescriptionoftheparametersinStep1,refertothefollowingtable:
3-13
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential