How to exclude subnets in BGP


Hi Guys,

I configured my VyOS with multiple subnets for tow sites the first site assigned with subnet and the site B have, Now I configured BGP to the next-hop (VMware NSX ESG) in each site, I want to exclude the subnets for site B to appear in site A Next-hop and to just have the connectivity to site A subnets Only, and same for site B.

I tried to configure distributed-list in BGP but didn’t work, maybe I did it in wrong way !

Anyone knows how can I achieve the required separation?


Hi Raeed,
Can you post a diagram of the network and your current BGP configuration?
That will help us help you.