Chapter 9 IPv6 Route-Map Policy Configuration
ZXR10(config-if-gei-2/2)#ipv6 address 200::2/64
ZXR10(config-if-gei-2/2)#exit
ZXR10(config)#show running-config-interface gei-2/2
! <Interface>
interface gei-2/2
no shutdown
description To ISP2
ipv6 enable
ipv6 address 200::2/64
$
! </Interface>
Configure the default route.
ZXR10(config)#ipv6 route 0:0::0:0/0 100::1
Configure the route-map:
/*Configure the ACL applied in
the route-map*/
ZXR10(config)#ipv6-access-list 1
ZXR10(config-ipv6-acl)#rule 1 permit ipv6 10::1/64 any
ZXR10(config-ipv6-acl)#exit
ZXR10(config)#show ipv6-access-lists name 1
ipv6-access-list 1
1/1 (showed/total)
1 permit ipv6 10::1/64 any
ZXR10(config)#ipv6-access-list 2
ZXR10(config-ipv6-acl)#rule 1 permit ipv6 20::1/64 any
ZXR10(config-ipv6-acl)#exit
ZXR10(config)#show ipv6-access-lists name 2
ipv6-access-list 2
1/1 (showed/total)
1 permit ipv6 20::1/64 any
/*Configure the route-map information with the sequence
numbers being 10 and 20*/
ZXR10(config)#route-map v6-pbr permit 10
ZXR10(config-route-map)#match ipv6 address 1
ZXR10(config-route-map)#set ipv6 next-hop 100::1
ZXR10(config-route-map)#exit
ZXR10(config)#route-map v6-pbr permit 20
ZXR10(config-route-map)#match ipv6 address 2
ZXR10(config-route-map)#set ipv6 next-hop 200::1
ZXR10(config-route-map)#exit
ZXR10(config)#show route-map v6-pbr
9-33
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential