How to exclude subnets in BGP


#1

Hi Guys,

I configured my VyOS with multiple subnets for tow sites the first site assigned with subnet 10.20.0.0 and the site B have 10.30.0.0, 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?


#2

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