You can apply an extended community filter to a neighbor through a route map.
device# configure terminal
device(config)# ip extcommunity-list standard mylist permit rt 123:2
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 in extComRmapt
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out sendExtComRmap
device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 send-community both
The following example summarizes the commands in this procedure.
device# configure terminal device(config)# ip extcommunity-list standard mylist permit rt 123:2 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 in extComRmap device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 route-map out sendExtComRmap device(config-bgp-ipv6u)# neighbor fe80:4398:ab30:45de::1 send-community both