Chapter9IPv6Route-MapPolicyConguration
CongurationFlow
1.EnableIPv6andsetIPv6addressesonthecorrespondinginterfacesofR1,R2and
R3.
2.CreateanEBGPneighborrelationshipbetweenR1andR2,andcreateanIBGPneigh-
borrelationshipbetweenR2andR3.
3.R1advertisesitsseveralBGP4+routestoR2.IfR2andR3canlearntheseroutes,
proceedto3.
4.Congureipv6-access-list1,ipv6-access-list2,route-maptest1androute-maptest2
onR2
5.Applyroute-maptest1totheindirectionofR2’sinterfaceconnectingtoR1,andapply
route-maptest2totheoutdirectionofR2’sinterfaceconnectingtoR3.
Note:
Theroute-mapcanbeusedbyincominginterfaceandoutgoinginterface.Otherattributes
areeffectiveexcepttheattributeofnext-hop.
ForaBGP4+route-map,thespecicattributesareasfollows:
lset:community-list,dampening,local-preference,origin,as-pathandnext-hop.
lMatch:as-pathandcommunity-list.
CongurationCommands
1.CreateanEBGPneighborrelationshipbyconguringthedirectly-connectedinterfaces
betweenR1,R2,andR3.
CongurationonR1:
R1(config)#interfacegei-1/3
R1(config-if-gei-1/3)#noshutdown
R1(config-if-gei-1/3)#ipv6enable
R1(config-if-gei-1/3)#ipv6address1:2::1/64
R1(config-if-gei-1/3)#exit
R1(config)#routerbgp1011
R1(config-bgp)#neighbor1:2::2remote-as200
R1(config-bgp)#address-familyipv6
R1(config-bgp-af-ipv6)#neighbor1:2::2activate
R1(config-bgp-af-ipv6)#exit
R1(config-bgp)#exit
CongurationonR2:
R2(config)#interfacegei-1/3
R2(config-if-gei-1/3)#noshutdown
R2(config-if-gei-1/3)#ipv6enable
R2(config-if-gei-1/3)#ipv6address1:2::2/64
9-17
SJ-20140504150128-018|2014-05-10(R1.0)ZTEProprietaryandCondential