ZXR105900ESeriesCongurationGuide(IPv4Routing)
WhenIGPranbyS1conrmsthatthethreeroutes192.168.1.0/24,
192.168.2.0/24and192.168.3.0/24existintheroutingtable,itwillsendthe
aggregatedroute192.168.0.0/22toS2.
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.0
count3summary-only
S1(config-bgp)#aggregate-address192.168.0.0255.255.252.0
subnet192.168.1.0255.255.255.0
S1(config-bgp)#aggregate-address192.168.0.0255.255.252.0
subnet192.168.2.0255.255.255.0
S1(config-bgp)#aggregate-address192.168.0.0255.255.252.0
subnet192.168.3.0255.255.255.0
S1(config-bgp)#redistributeospf-int
S1(config-bgp)#redistributeconnected
S1(config-bgp)#exit
S1(config)#routerospf1
S1(config-ospfv2)#network192.168.3.00.255.255.255area0
S1(config-ospfv2)#network10.1.1.00.0.0.3area0
S1(config-ospfv2)#exit
Forthatmoment,aslongasthesethreeroutes192.168.1.0/24,192.168.2.0/24
and192.168.3.0/24arenormal,S2willsendanaggregatedroute192.168.0.0/22
toS1nomatterwhether192.168.0.0/22normalornot.However,ifanyone
ofthesethreeroutesisabnormal,S2willnotadvertisetheaggregatedroute
192.168.0.0/22.
ConguringBGPRouteAttributeandRouteFiltering
lTheconceptofBGPAttributes
BGPdenesvariousattributes.eachattributehasitsownfunction,thatiswhyBGP
isthemostexiblerouteprotocolwiththebestexpansibilityandhighcontrollability.
BGProutINGattributeisthecoreconceptofBGProuteprotocol.Itisagroupof
parameterssenttotheconnectedpeerinUPDATEpackets.Theseparameters
recordsBGProutinginformationforrouteselectionandlter,whichcanbeconsidered
asMetric.
Routeattributesaredividedintofourtypes:
àWell-knownmandatoryattributes
àWell-knowndiscretionaryattributes
5-24
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential