ZXR105900ESeriesCongurationGuide(IPv4Routing)
S1(config)#routerospf1
S1(config-ospf-1)#network11.22.1.00.0.0.255area255
S1(config-ospf-1)#area255nssa
S1(config-ospf-1)#redistributeconnected
S1(config-ospf-1)#exit
CongurationonS2:
S2(config)#interfacevlan20
S2(config-if-vlan20)#ipaddress11.22.1.2255.255.255.0
S2(config-if-vlan20)#exit
S2(config)#interfacevlan40
S2(config-if-vlan40)#ipaddress33.22.1.2255.255.255.0
S2(config-if-vlan40)#exit
S2(config)#routerospf1
S2(config-ospf-1)#network11.22.1.00.0.0.255area255
S2(config-ospf-1)#area255nssadefault-information-originate
S2(config-ospf-1)#network33.22.1.00.0.0.255area0
S2(config-ospf-1)#exit
CongurationonS3:
S3(config)#interfacevlan50
S3(config-if-vlan50)#ipaddress33.22.1.1255.255.255.0
S3(config-if-vlan50)#exit
S3(config)#interfaceloopback1
S3(config-if-loopback1)#ipaddress1.1.1.33255.255.255.255
S3(config-if-loopback1)#exit
S3(config)#routerospf1
S3(config-ospf-1)#redistributeconnected
S3(config-ospf-1)#exit
CongurationCheck
Useshowipforwardingroute1.1.1.33onS1toviewwhetherS1learnsthedetailedroute
ofS3.
S1(config)#showipforwardingroute1.1.1.33
IPv4RoutingTable:
DestGwInterfaceOwnerPriMetric
Useshowipforwardingroute0.0.0.0onS1toviewwhetherthereisadefaultroutepointing
toS2.
S1(config)#showipforwardingroute0.0.0.0
IPv4RoutingTable:
DestGwInterfaceOwnerPriMetric
0.0.0.0/011.22.1.2vlan20OSPF1102
Useshowipforwardingroute1.1.1.11toinspectwhetherS3learnsthedetailedrouteof
S1.
3-48
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential