Community discussions

MikroTik App
 
kellogs
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sun Jan 04, 2009 10:55 am

2 peers, 4 /24 prefix and load balance outbound

Thu Dec 29, 2011 3:26 pm

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
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6045
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: 2 peers, 4 /24 prefix and load balance outbound

Thu Dec 29, 2011 5:15 pm

In this case you should use policy routing. A lot of examples can be found in wiki.
 
User avatar
guilhermeramires
Trainer
Trainer
Posts: 56
Joined: Fri Jan 22, 2010 9:06 pm

Re: 2 peers, 4 /24 prefix and load balance outbound

Fri Dec 30, 2011 6:40 pm

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.
Mikrotik Training Partner
MPLS for the Masses
 
kellogs
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sun Jan 04, 2009 10:55 am

Re: 2 peers, 4 /24 prefix and load balance outbound

Mon Jan 02, 2012 1:56 pm

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!
 
User avatar
guilhermeramires
Trainer
Trainer
Posts: 56
Joined: Fri Jan 22, 2010 9:06 pm

Re: 2 peers, 4 /24 prefix and load balance outbound

Mon Jan 02, 2012 8:35 pm

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?
Mikrotik Training Partner
MPLS for the Masses

Who is online

Users browsing this forum: No registered users and 24 guests