Chapter3OSPFConguration
1.1.1.22/3211.22.10.2vlan40OSPF1102
Usepingtotesttheconnectivity.
S1#ping1.1.1.22
sending5,100-byteICMPechoesto1.1.1.22,timeoutis2seconds.
!!!!!
Successrateis100percent(5/5),round-tripmin/avg/max=1/1/2ms.
3.4.2OSPFConfigurationExampleTwo
CongurationDescription
AsshowninFigure3-14,S1doesnotneedtolearntheexternalrouteofbackbonearea,
whileitneedstoadvertiseitselfexternalroute.Here,establishNSSAareabetweenS1
andS2,setuplinkbetweenS2andS3inbackbonearea.
Figure3-14OSPFCongurationExampleTwo
CongurationThought
1.SetuplinkbetweenS1andS2inNSSAarea255,andsetuplinkbetweenS2andS3
inarea0.
2.Redistributedirect-connectedrouteonS3andS1respectively.
3.CongureNSSAdefaultrouteadvertisementonS2.
4.Asaresult,S1cannotlearnthedetailedrouteofS3address,butthereisadefault
routepointingtoS2.S3canlearnthedirect-connectedrouteredistributedbyS1.
CongurationProcess
CongurationonS1:
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress11.22.1.1255.255.255.0
S1(config-if-vlan10)#exit
S1(config)#interfaceloopback1
S1(config-if-loopback1)#ipaddress1.1.1.11255.255.255.255
S1(config-if-loopback1)#exit
3-47
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential