! bgp send-extra-data zebra ! router bgp 65002 no bgp ebgp-requires-policy neighbor 192.168.1.1 remote-as external address-family ipv4 unicast redistribute connected neighbor 192.168.1.1 route-map r1 out exit-address-family ! ip prefix-list p1 permit 172.16.16.1/32 ip prefix-list p2 permit 172.16.16.2/32 ip prefix-list p3 permit 172.16.16.3/32 ! route-map r1 permit 10 match ip address prefix-list p1 set community 65001:1 65001:2 set large-community 65001:1:1 65001:1:2 route-map r1 permit 20 match ip address prefix-list p2 set community 65002:1 65002:2 route-map r1 permit 30 match ip address prefix-list p3 !