Chapter5BGPConguration
S2#showipbgproute
Statuscodes:*valid,>best,i-internal
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>192.168.0.0/222.2.2.220100i
S2#showipbgproutedetail192.168.0.0255.255.252.0
BGProutingtableentryfor192.168.0.0/22
01:02:19receivedfrom2.2.2.2
Origin?,nexthop2.2.2.2,atomic,aggr1002.2.2.2,
Aspath[100]
As4path
Receivedlabelnotag
Aftertheaggregation,thereisonlyonerouteinBGProutingtableofS2belonging
toAS300.Itreducesthesizeofroutingtable.
Ifthecommandisusedwithoutsummary-only,S2willadvertisethedetailedroutes
withtheaggregatedroute.
S2#showipbgproute
Statuscodes:*valid,>best,i-internal
Origincodes:i-IGP,e-EGP,?-incomplete
NetworkNextHopMetricLocPrfRtPrfPath
*>192.168.0.0/222.2.2.220100i
*>192.168.0.0/242.2.2.220100i
*>192.168.1.0/242.2.2.220100i
*>192.168.2.0/242.2.2.220100i
*>192.168.3.0/242.2.2.220100i
InBGProutingtable,therearefourroutes192.168.0.0/24,192.168.1.0/24and
192.168.2.0/24,192.168.3.0/24excepttheaggregatedroute192.168.0.0/22.
Theparametercount<count>indicatesthenumberofsubnetworkswhich
arewaitingtoimplementaggregation.<count>rangesfrom0to255andthe
defaultvalueis1,whichmeansthenumberofsubnetworkshastoexistin
IGP .Iftheparameteris0,thatmeansadvertisetheroute192.168.0.0/22when
anysubnetworkof192.168.0.0255.255.252.0appearsinIGProutes.Ifthe
parameteris1orothervalue,thefollowingcommandisrequiredusingtospecify
therelatedsubnetworksegment.
aggregate-address<ip-address><net-mask>subnet<subnet-address><subnet-mask>
Theabovecommandmeansthattheroutinginformationcanbeaggregatedand
advertisedonlywhenthespeciedsubnetworkroutinginformationappearsinIGP
routingtableandtheroutenumbersatisesthedenedcountnumber.
2.AggregateRoutesusingtheParametercountandsubnet
5-23
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential