Chapter 9 IPv6 Route-Map Policy Configuration
R2(config-ipv6-acl)#rule 1 permit ipv6 7:7::/64 any
R2(config-ipv6-acl)#exit
R2(config)#route-map test1 permit 10
R2(config-route-map)#match ipv6 address 1
R2(config-route-map)#match ipv6 address 2
R2(config-route-map)# set local-preference 30000
R2(config-route-map)#exit
R2(config)#route-map test2 permit 10
R2(config-route-map)#match ipv6 address 1
R2(config-route-map)#match ipv6 metric 5
R2(config-route-map)#match as-path 1
R2(config-route-map)#match community-list 1
R2(config-route-map)#exit
R2(config)#route-map test2 permit 20
R2(config-route-map)#match ipv6 address 2
R2(config-route-map)#set as-path prepend 2
R2(config-route-map)#set local-preference 200
R2(config-route-map)#set origin incomplete
R2(config-route-map)#exit
4.
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.
R2(config)#router bgp 200
R2(config-bgp)#address-family ipv6
R2(config-bgp-af-ipv6)#neighbor 1:2::1 route-map test1 in
R2(config-bgp-af-ipv6)#neighbor 2:3::3 route-map test2 out
R2(config-bgp-af-ipv6)#exit
Configuration Verification
After R1 advertises its five routes, run the following commands to verify that R2 and R3
can learn these routes.
R2#show bgp ipv6 unicast
Status codes: * valid, > best, i - internal, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
Metric
LocPrf
RtPrf
Path
*> 4:4::/64
1:2::1
20
1011 i
*> 5:5::/64
1:2::1
20
1011 i
*> 6:6::/64
1:2::1
20
1011 i
*> 7:7::/64
1:2::1
20
1011 i
*> 8:8::/64
1:2::1
20
1011 i
R3#show bgp ipv6 unicast
Status codes: * valid, > best, i - internal, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
9-19
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential
Содержание ZXR10 ZSR
Страница 12: ...This page intentionally left blank IV SJ 20140504150128 018 2014 05 10 R1 0 ZTE Proprietary and Confidential ...
Страница 306: ...Figures This page intentionally left blank IV SJ 20140504150128 018 2014 05 10 R1 0 ZTE Proprietary and Confidential ...
Страница 308: ...This page intentionally left blank VI SJ 20140504150128 018 2014 05 10 R1 0 ZTE Proprietary and Confidential ...