Chapter 9 IPv6 Route-Map Policy Configuration
PE2#show ipv6 protocol routing vrf test1
Vrf test1 IPv6 Routing Table
Codes: D - Direct, A - Address, S - Static, R - RIP, UI - USER_IPADDR,
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS static,
O - OSPF intra, OI - OSPF inter, E1 - OSPF ext 1, E2 - OSPF ext 2, N - ND,
B - BGP, IB - IBGP, EB - EBGP, AG - BGP AGG, V - VRRP, P - PPP, D6 - DHCPv6,
SFN - Stateful NAT64, SLN - Stateless NAT64, AF - AFTR
Time: The time of last modified!
D
22::/64
via ::, loopback22, 21h02m55s
A
22::1/128
via ::, loopback22, 21h02m55s
IB
33::/64 [200/0]
via ::ffff:10.10.1.1, loopback1, IPv6-mpls, 08h33m39s
IB
1001::20:0/120 [200/0]
via ::ffff:10.10.1.1, loopback1, IPv6-mpls, 08h47m18s
D
2002::20:0/120
via ::, gei-1/10.1, 06h22m11s
A
2002::20:2/128
via ::, gei-1/10.1, 06h22m11s
3.
Create a route-map on PE1, and apply it to VRF.
Create route-map test1 for restricting exporting routes.
PE1(config)#ipv6-access-list test1
PE1(config-ipv6-acl)#rule 1 permit ipv6 1001::20:0/120 any
PE1(config-ipv6-acl)#exit
PE1(config)#route-map test1
PE1(config-route-map)#match ipv6 address test1
PE1(config-route-map)#exit
Create route-map test2 for restricting importing routes.
PE1(config)#ipv6-access-list test2
PE1(config-ipv6-acl)#rule 1 permit ipv6 2002::20:0/120 any
PE1(config-ipv6-acl)#exit
PE1(config)#route-map test2
PE1(config-route-map)#match ipv6 address test2
PE1(config-route-map)#exit
Apply the route-maps to vrf test1.
PE1(config)#ip vrf test1
PE1(config-vrf-test1)#address-family ipv6
PE1(config-vrf-test1-af-ipv6)#export map test1
PE1(config-vrf-test1-af-ipv6)#import map test2
4.
Check the VRF routing table on PE1 and PE2, and verify that the routing policy has
been enabled.
9-25
SJ-20140504150128-018|2014-05-10 (R1.0)
ZTE Proprietary and Confidential