Chapter3OSPFConguration
StepCommandFunction
3ZXR10(config-ospfv2)#router-id<ip-address>ConguresanrouterIDfora
router.
Youarerecommendedtouse
theLoopbackaddressasthe
routerID.
ZXR10(config-ospfv2)#endReturnstoprivilegedmode. 4
ZXR10#clearipospfprocess<process-id>RestartstheOSPFprocess.
CongurationExample
EnabletheOSPFprotocolonS1,S2andS3,seeFigure3-2.
RouterIDsarelistedbelow:
DeviceRouterID
S11.1.1.2
S21.1.1.3
S31.1.1.4
Figure3-2OSPFBasicCongurationExample
RunthefollowingcommandsonS1:
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress30.0.0.1255.255.255.252
S1(config-if-vlan10)#exit
S1(config)#routerospf10
S1(config-ospf-10)#network30.0.0.00.0.0.3area0
S1(config-ospf-10)#exit
RunthefollowingcommandtochecktheOSPFinformation:
S1(config)#showipospf
OSPF10RouterID30.0.0.1enable
Enabledfor00:00:21,Debugon
Numberofareas1,Stub0,Transit0
Numberofinterfaces1
3-9
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential