Chapter 9 IPv6 Route-Map Policy Configuration
Configuration Flow
1.
Enable IPv6 and set IPv6 addresses on the corresponding interfaces of R1, R2 and
R3.
2.
Create an EBGP neighbor relationship between R1 and R2, and create an IBGP neigh-
bor relationship between R2 and R3.
3.
R1 advertises its several BGP4+ routes to R2. If R2 and R3 can learn these routes,
proceed to 3.
4.
Configure ipv6-access-list 1, ipv6-access-list 2, route-map test1 and route-map test2
on R2
5.
Apply route-map test1 to the in direction of R2’s interface connecting to R1, and apply
route-map test2 to the out direction of R2’s interface connecting to R3.
Note:
The route-map can be used by incoming interface and outgoing interface. Other attributes
are effective except the attribute of next-hop.
For a BGP4+ route-map, the specific attributes are as follows:
l
set
: community-list, dampening, local-preference, origin, as-path and next-hop.
l
Match
: as-path and community-list.
Configuration Commands
1.
Create an EBGP neighbor relationship by configuring the directly-connected interfaces
between R1, R2, and R3.
Configuration on R1:
R1(config)#interface gei-1/3
R1(config-if-gei-1/3)#no shutdown
R1(config-if-gei-1/3)#ipv6 enable
R1(config-if-gei-1/3)#ipv6 address 1:2::1/64
R1(config-if-gei-1/3)#exit
R1(config)#router bgp 1011
R1(config-bgp)#neighbor 1:2::2 remote-as 200
R1(config-bgp)#address-family ipv6
R1(config-bgp-af-ipv6)#neighbor 1:2::2 activate
R1(config-bgp-af-ipv6)#exit
R1(config-bgp)#exit
Configuration on R2:
R2(config)#interface gei-1/3
R2(config-if-gei-1/3)#no shutdown
R2(config-if-gei-1/3)#ipv6 enable
R2(config-if-gei-1/3)#ipv6 address 1:2::2/64
9-17
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential