The following steps configure an IPv6 PBR by setting NULL0 interface as the next hop in the route map.
device# configure terminal
device(config)# ipv6 access-list standard 99 device(conf-ip6acl-std)# permit any
device(conf-ip6acl-std)# exit
device(config)# route-map test-route permit 99
device(config-route-map-test-route/permit/99)# match ipv6 address acl 99
device(config-route-map-test-route/permit/99)# set ipv6 interface null0
device(config-routemap-test-route/permit/99)# exit
device(config)# interface ethernet 1/1
device(conf-if-eth-1/1)# ipv6 policy route-map test-route
The following example shows the configuration steps to configure an IPv6 PBR to send the IPv6 traffic to the null interface, thus dropping the traffic instead of forwarding it.
device# configure terminal device(config)# ipv6 access-list standard 99 device(conf-ip6acl-std)# permit any device(conf-ip6acl-std)# exit device(config)# route-map test-route permit 99 device(config-route-map-test-route/permit/99)# match ipv6 address acl 99 device(config-route-map-test-route/permit/99)# set ipv6 interface null0 device(config-route-map-test-route/permit/99)# exit device(config)# interface ethernet 1/1 device(conf-if-eth-1/1)# ipv6 policy route-map test-route device(conf-if-eth-1/1)# end