Chapter3OSPFConguration
StubAreaandTotallyStubbyArea
Whenanon-backboneareadoesnothaveanASBR,arouteronlyhasonepatharriving
toanASexternalnetwork,thatis,apathpassingthroughanABR.Therefore,therouters
belongingtotheseareaswillsendtheLSAssendingtotheunknownhostsoutsidetheAS
toABR.
Inthisway,itisnotrequiredthatoodLSAsoftype5tothearea.Theareadoesnothave
theLSAsoftype4either.Theareaiscalledstubarea.
Inastubarea,allroutersmustbeconguredasstubrouters.AHELLOpacketcontains
a"stubarea"agbit.Theagbitmustbeconsistentamongneighbors.
TheABRinastubareacanlterLSAsoftype5topreventthemfrombeingadvertisedto
stubarea.Inmeantime,theABRgeneratesanLSAoftype3toadvertiseadefaultroute
arrivingtoanASexternaldestinationaddress.
IftheABRalsolterstheLSAoftype3andadvertisesadefaultroutearrivingtoanAS
externaldestinationaddress,theareaiscalledtotallystubbyarea.
Not-So-StubbyArea
ArouterinastubarearefusesLSAsoftype5,soASBRisnotapartofthestubarea.
However,itishopedthatastubareawithanASBRcanbegenerated.Inthisway,routers
intheareacanreceiveASexternalroutesfromtheASBRbelongingtothesamearea,but
theexternalroutinginformationfromotherareaswillbeblocked.
Torealizesuchanarea,OSPFdenesNSSA.InaNSSA,anASBRgeneratesLSAsof
type7insteadtheLSAsoftype5.TheABRcannotsendtheLSAsoftype7toother
OSPFareas.Ontheonehand,itblocksexternalroutestoarrivetheNSSAareaatthe
areaborder.Ontheotherhand,itconvertstheLSAsoftyoe7intotheLSAsoftype5and
sendsthemtootherareas.
OSPFAuthentication
AuthenticationisusedtoexchangepacketsbetweentwoOSPFneighbors.The
authenticationtypeshouldbeconsistentontheOSPFneighbors.Authenticationtypeis
containedbyallpackets.
Authenticationtype"0"indicatesnoauthentication,"1"indicatessimplepassword
authenticationand"2"indicatesMD5encryptionauthentication.
Forplaintextauthentication,aninterfaceonlyallowsapassword.Thepasswordofeach
interfacecanbedifferent,buttheinterfacesinaspecialnetworkmusthavethesame
passwords.ThesimplepasswordissentthroughOSPFpacketsinplaintextmode.
DownBit
WhenMultiprotocolBGP(MP-BGP)routesareredistributedtoOSPFvrfinstanceto
generateLSAs,theoptioneldsoftype-3andtype-5LSAsmustbemarkedasdownbit.
TheLSAsaredisplayedasDownward.Thisisamethodtopreventroutingloopback.
3-7
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential