Chapter3OSPFConguration
S1(config-ospf-1)#exit
RunthefollowingcommandsonS2:
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)#interfacevlan30
S2(config-if-vlan30)#ipaddress2.2.2.5255.255.255.252
S2(config-if-vlan30)#exit
S2(config)#routerospf1
S2(config-ospf-1)#router-id1.1.1.2
S2(config-ospf-1)#network30.0.0.00.0.0.3area0
S2(config-ospf-1)#network30.0.1.00.0.0.3area0
S2(config-ospf-1)#network2.2.2.40.0.0.3area0
S2(config-ospf-1)#maximum-paths2
/*Setsthemaximumnumberofroutesthatcanbesupportedby
OSPFwhentheloadissharedinbalancedmodetotwo*/
S2(config-ospf-1)#exit
RunthefollowingcommandtochecktheroutingtableofS1.TwoOSPFroutes2.2.2.4/30
withthesamedestinationsaredisplayed.
S1(config)#showipforwardingroute
IPv4RoutingTable:
DestGwInterfaceOwnerprimetric
1.1.1.21.1.1.2loopback1address00
2.2.2.02.2.2.2vlan30direct00
2.2.2.22.2.2.2vlan30address00
2.2.2.430.0.1.2vlan20ospf1102
2.2.2.430.0.0.2vlan10ospf1102
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
ThesimilarrouteentriescanbeviewedonS2.
ConguringOSPFRouteRedistribution
BymeansofadvertisingroutinginformationofotherrouteprotocolstoOSPFrouters,
differentdynamicrouteprotocolscansharetheroutinginformation.
3-29
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential