Chapter3OSPFConguration
Protocolroutes:
statuscodes:*valid,>best,i-internal,s-stale
DestNextHopRoutePrfRouteMetricProtocol
*>1.1.1.4/0192.168.14.211520isis-l2
*>30.0.1.0/3210.10.10.100connected
*>30.0.1.1/1610.10.10.210static
IfyoucanpingS1onS3,therouteisconguredcorrectly.
ConguringOSPFInterfaceAttributes
TosetupOSPFneighborhood,performthefollowingstepstomodifytheattributesofan
OSPFinterface.Theattributesneedtobeconsistentwitheachotherifdevicesprovided
bydifferentmanufactoriesneedtobeinterconnected.
StepCommandFunction
1ZXR10(config)#routerospf<process-id>[vrf<vrf-name>]EntersOSPFconguration
mode.
2ZXR10(config-ospfv2)#interface<interface-name>Entersinterfaceconguration
modeorsub-interface
congurationmode.
ZXR10(config-ospfv2-if)#hello-interval<seconds>Setstheinterval(second)for
sendingHELLOpacketsonan
interface.
Range:1-65535,default:10.
ZXR10(config-ospfv2-if)#dead-interval<seconds>Setstheduration(second)for
consideringaneighbortobe
dead.
Range:1-65535,default:40.
ZXR10(config-ospfv2-if)#retransmit-interval<seconds>Speciestheinterval(second)
forretransmittingLSApackets
onaninterface.
Range:1-65535,default:5.
ZXR10(config-ospfv2-if)#transmit-delay<seconds>Speciesthedelay(second)
forsendingalinkstateupdate
packetonaninterface.
Range:1-65535,default:1.
ZXR10(config-ospfv2-if)#cost<cost>Setstheinterfacecost.
Range:1-65535,default:100
M/interfacebandwidth.
3
ZXR10(config-ospfv2-if)#priority<priority>Setstheinterfacepriority.
Range:0-255,default:1.
CongurationExample
3-11
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential