Chapter3OSPFConguration
CongurationExample
ConguretheOSPFprotocolonS1,S2andS3.S2operatesastheABR.Congureroute
aggregationonS2,seeFigure3-7.
RouterIDsarelistedbelow.
DeviceRouterID
S11.1.1.2
S21.1.1.3
S31.1.1.4
Figure3-7OSPFInter-AreaRouteAggregationCongurationExample
RunthefollowingcommandsonS1:
S1(config)#interfaceloopback1
S1(config-if-loopback1)#ipadderss1.1.1.2255.255.255.255
S1(config-if-loopback1)#exit
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress30.0.0.2255.255.255.252
S1(config-if-vlan10)#exit
S1(config)#interfacevlan20
S1(config-if-vlan20)#ipaddress2.2.2.5255.255.255.252
S1(config-if-vlan20)#exit
S1(config)#interfacevlan30
S1(config-if-vlan30)#ipaddress2.2.2.1255.255.255.252
S1(config-if-vlan30)#exit
S1(config)#routerospf1
S1(config-ospf-1)#router-id1.1.1.2
S1(config-ospf-1)#network30.0.0.00.0.0.3area1
S1(config-ospf-1)#network2.2.2.00.0.0.3area1
S1(config-ospf-1)#network2.2.2.40.0.0.3area1
S1(config-ospf-1)#exit
RunthefollowingcommandsonS2:
3-23
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential