Hi guys,
I was wondering if anyone could point me in the right direction.
I have two links coming into my switch, both advertising the same set of routes via bgp.
I've also been assigned two subnets, 192.168.1.0/24 and 192.168.2.0/24 to expose to my servers, and two seperate subnets to do my bgp peering, for example purposes lets make that 172.16.1.0/24 and 172.16.2.0/24 respectively.
My switch has ips 192.168.1.1, 192.168.2.1, 172.16.1.1 and 172.16.2.1
My peers are 172.16.1.2 and 172.16.2.2
I advertise 192.168.1.0/24 to 172.16.1.2 and 192.16.2.0/24 to 172.16.2.2
Alright, the problem is that hosts originating in the 192.168.1.0/24 subnet must take routes advertised via 172.16.1.2 and hosts originating in 192.168.2.0/24 must take paths advertised by 172.16.2.2. There are acls on the remote side which prevent both subnets from being routeable via both paths. Right now I have one routing table with local preference one way or the other, but then I lose the active/active nature of this connection.
What is the preferred way to solve this? Should I use routing instances and set up separate routing domains? Is there an easy way to use policy routing to make a source range take a less preferred route? In the default scenario one path or the other ultimately gets preference and half of my hosts become unroutable.
Any advice would be much appreciated!
Thanks,
movingbits.
#source#routing#JUNOS#BGP#preference