2 peers, 4 /24 prefix and load balance outbound

Dear Members

I have 2 Peers each with same amount of transit

I have 4 /24 prefix

I would like to configure that for the 4 prefix outbound, it would be round robin on these 2 peers and if one of the peer is down, all 4 prefixes would switch to the survival peer.

Any help is appreciated

In this case you should use policy routing. A lot of examples can be found in wiki.

Keep you balance the way you are doing and you also can announce your /22 in both peers. If one peer goes down all traffic will be redirect to the other peer.

I have announced both /22 on both peers and also 4 /24 on both peers

For incoming load sharing, each of the 2 /24 prefix has bgp prepend 4 so incoming is shared equally ±

the problem is with outgoing connection which I think i need to do policy routing. I am looking for the right documentation/wiki

anyone can share a link?

Thanks!

Upload is really easy. You need to create a ECMP route with check-gateway enabled. Just add both gateways in the same static route. The traffic will be share using round-robin every time source or destine address change. This way you can reach a good balance. Try it and tell us, ok?