ZXR105900ESeriesCongurationGuide(IPv4Routing)
AsshowninFigure5-8,S1advertisesthenetworksegments192.168.0.0/24,
192.168.1.0/24and192.168.2.0/24,192.168.3.0/24toS2belongingtoAS300.
RunOSPFroutingprotocolbetweenS1andS3.
Figure5-8RouteAggregationCongurationExample
CongurationonS1:
S1(config)#interfacevlan10
S1(config-if-vlan10)#ipaddress2.2.2.2255.255.255.0
S1(config-if-vlan10)#exit
S1(config)#routerbgp100
S1(config-bgp)#neighbor2.2.2.1remote-as300
S1(config-bgp)#aggregate-address192.168.0.0255.255.252.0count0summary-only
S1(config-bgp)#redistributeospf-int
S1(config-bgp)#redistributeconnected
S1(config-bgp)#exit
S1(config)#routerospf1
S1(config-ospfv2)#network192.168.3.00.0.0.255area0
S1(config-ospfv2)#network10.1.1.00.0.0.3area0
S1(config-ospfv2)#exit
S1learnsfourroutes192.168.0.0/24,192.168.1.0/24,192.168.2.0/24
and192.168.3.0/24throughIBGP ,butitadvertisestheaggregatedroute
192.168.0.0/22toS2runningEBGPonly.Ifthecommandisusedwithoutthe
parametersummary-only,S2willadvertisetheaggregatedrouteandthedetailed
routes.
UseshowipbgprouteonS2toviewtheroutingtable.
5-22
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential