Chapter3OSPFConguration
S2(config)#interfacevlan10
S2(config-if-vlan10)#ipaddress30.0.0.1255.255.255.252
S2(config-if-vlan10)#exit
S2(config)#interfacevlan20
S2(config-if-vlan20)#ipaddress30.0.1.1255.255.255.252
S2(config-if-vlan20)#exit
S2(config)#routerospf1
S2(config-ospf-1)#router-id1.1.1.3
S2(config-ospf-1)#network30.0.0.00.0.0.3area1
S2(config-ospf-1)#network30.0.1.00.0.0.3area0
S2(config-ospf-1)#exit
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.2255.255.255.252
S3(config-if-vlan10)#exit
S3(config)#routerospf1
S3(config-ospf-1)#router-id1.1.1.4
S3(config-ospf-1)#network30.0.1.00.0.0.3area0
S3(config-ospf-1)#exit
RunthefollowingcommandtochecktheS2routingtable.Anaggregatednetworksegment
2.2.2.0/29existsintheroutingtable.
S2(config)#showipforwardingroute
IPv4RoutingTable:
DestGwInterfaceOwnerprimetric
1.1.1.230.0.0.2vlan10ospf11020
1.1.1.31.1.1.3loopback1address00
2.2.2.030.0.0.2vlan10ospf11020
30.0.0.030.0.0.1vlan10direct00
30.0.0.130.0.0.1vlan10address00
30.0.1.030.0.1.1vlan20direct00
30.0.1.130.0.1.1vlan20address00
ConguringOSPFRouteLoadBalancing
TocongureloadbalancingontrafcwhenmanypathsexistinanOSPFroutingtablewith
thesamelowestmetricvalues,performthefollowingsteps.
StepCommandFunction
1ZXR10(config)#routerospf<process-id>[vrf<vrf-name>]EntersOSPFroutingmode.
3-27
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential