device# configure terminal
device(config)# ipv6 prefix-list myprefixlist permit 2001:db8::/32
device(config)# route-map myroutemap permit 10
device(config-route-map-myroutemap/permit/10)# match ipv6 address prefix-list myprefixlist
device(config-route-map-myroutemap/permit/10)# exit
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 remote-as 1001
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 activate
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out myroutemap
This example summarizes the commands in this procedure.
device# configure terminal device(config)# ipv6 prefix-list myprefixlist seq 10 permit 2001:db8::/32 device(config)# route-map myroutemap permit 10 device(config-route-map-myroutemap/permit/10)# match ipv6 address prefix-list myprefixlist device(config-route-map-myroutemap/permit/10)# exit device(config)# router bgp device(config-bgp-router)# local-as 1000 device(config-bgp-router)# neighbor fe80:4398:ab30:45de::1 remote-as 1001 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 activate device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out myroutemap