ZXR105900ESeriesCongurationGuide(IPv4Routing)
......
Area0.0.0.0enable
Enabledfor00:00:05
Areahasnoauthentication
Timesspfhasbeenrun1
Numberofinterfaces1.Up1
TheOSPFprotocolisenabledandconguredonS1.TherouterIDistheIPaddressof
interfacevlan1.
RunthefollowingcommandsonS2.T osetupanOSPFconnectionbyusingtheloopback
address,theloopbackaddressneedstobeconguredrst,andthenyouneedtoenable
theOSPFprocess.
S2(config)#interfaceloopback1
S2(config-if-loopback1)#ipadderss1.1.1.3255.255.255.255
S2(config-if-loopback1)#exit
S2(config)#interfacevlan10
S2(config-if-vlan10)#ipaddress30.0.0.2255.255.255.252
S2(config-if-vlan10)#exit
S2(config)#interfacevlan20
S2(config-if-vlan20)#ipaddress30.0.1.2255.255.255.252
S2(config-if-vlan20)#exit
S2(config)#routerospf10
S2(config-ospf-10)#network30.0.0.00.0.0.3area0
S2(config-ospf-10)#network30.0.1.00.0.0.3area0
S2(config-ospf-10)#exit
RunthefollowingcommandtochecktheOSPFinformation.OSPFselectstheIPaddress
ofloopback1astherouterIDautomatically.
S2(config)#showipospf
OSPF10RouterID1.1.1.3enable
Enabledfor00:00:09,Debugon
Numberofareas0,Normal0,Stub0,NSSA0
RunthefollowingcommandsonS3:
S3(config)#interfaceloopback1
S3(config-if-loopback1)#ipadderss1.1.1.4255.255.255.255
S3(config-if-loopback1)#exit
S3(config)#interfacevlan10
S3(config-if-vlan10)#ipaddress30.0.1.1255.255.255.252
S3(config-if-vlan10)#exit
S3(config)#routerospf10
S3(config-ospf-10)#network30.0.1.00.0.0.3area0
S3(config-ospf-10)#exit
RunthefollowingcommandtochecktheroutingtableonS3:
S3(config)#showipprotocolrouting
3-10
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential