BGP filter

I have a router bgp and 2 providers (A and B).
From one (A) I get a full routing table, from the second (B) only 40 000 prefixes.

I have a client that wants me to buy only these 40 000 prefixes get from neighbor B.
How to write a filter to capture only the prefixes from the neighbor (B) and send only those prefixes to the customer.


MK

You can do it with BGP communities. Set BGP community for those 40k prefixes. And advertise to the client only those prefixes which has community set.

so i try:

/routing filter
add action=passthrough chain=Neighbour_B-in disabled=no invert-match=no
set-bgp-communities=111:111
add action=passthrough bgp-communities=111:111 chain=Client1-out disabled=no
invert-match=no


but it is only my improvisation

MK

Can I expect to have any “step by step” ?

MK