Community discussions

MikroTik App
 
Dinskuns
just joined
Topic Author
Posts: 6
Joined: Mon Feb 07, 2011 11:20 pm

Load balancing?

Mon Feb 07, 2011 11:36 pm

Sorry for a newbie question. Want to place a mikrotik (pc) router as a border gateway for a felon network. We need to setup bgp(AS), NAT and pppoe. Can we setup 2 or 3 mikrotik routers with single connection to upstream and load balancing between all of them for redundancy? I.e. Load balance all traffic (and thus NAT and pppoe) between 3, so that if any one will fail, other two will keep the work. idea is to replace the costly Cisco 7600 with several mikrotik routers and cover the risk of failure of a cheap pc router. Hope I explained it correctly)) thank you all in advance.
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: Load balancing?

Tue Feb 08, 2011 1:12 am

How many routers are you planning to have speaking BGP with your upstream?

Depending on your network design you could "load balance" or manually distribute PPPoE sessions between multiple routers. That would at least eliminate a single point of failure on the aggregation side. Could you post a diagram of what layout you're trying to achieve? That'd better assist people in coming up with a solution to your problem.
 
Dinskuns
just joined
Topic Author
Posts: 6
Joined: Mon Feb 07, 2011 11:20 pm

Re: Load balancing?

Tue Feb 08, 2011 4:31 pm

 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: Load balancing?

Tue Feb 08, 2011 10:20 pm

Which router is going to speaking BGP? Will your provider let you create BGP peering sessions from all three routers?

Refer to this thread regarding redundant PPPoE. You'll have to route separate customer IP blocks to each PPPoE AC.
 
Dinskuns
just joined
Topic Author
Posts: 6
Joined: Mon Feb 07, 2011 11:20 pm

Re: Load balancing?

Wed Feb 09, 2011 12:56 am

Should I have 3 different peering addresses from an upstream for 3 different bgp routers?
If I will get 3 different peering addresses for the full view bgp can I concurrently use all three routers for a single ripe assigned AS? Thank you for your response.
 
User avatar
mihaimikrotik
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Oct 27, 2010 3:51 pm
Location: Romania
Contact:

Re: Load balancing?

Mon Feb 14, 2011 2:07 pm

What you need is VRRP. You need:

- to set up vvrp on internal network for redundancy (you can use 2 masters and one slave, but i would suggest using just one master and 2 slaves with different priorities)
- to set up bgp peering sessions on same table (default) on all routers
- to set up IGP with connected, static and full bgp route redistribution (default table) between your 2 routers so that vrrp will work accordingly and you won't get in a network loop
- if you use only one provider the setup can be done in a matter of days, if you have multiple providers the setup will prove more difficult
- you also need vlans on the upstream switch

It can be done, but if you will have multiple providers get ready for hell, as mikrotik is a lot different from cisco in what is active route and load balancing selection.
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: Load balancing?

Mon Feb 14, 2011 10:35 pm

You could do something like this to handle inbound BGP redundancy.

http://www.vyatta.org/forum/viewtopic.p ... 04ac6221ae

And here's a sample config to implement that config in MikroTik.

### Router 1 ###
/interface vrrp
add interface=ether1 name=vrrp1 vrid=1 priority=254 authentication=ah password=somepass

/ip address
add interface=ether1 address=192.168.111.2/29
add interface=vrrp1 address=192.168.111.4/29

/routing bgp instance
set default as=65001 router-id=192.168.111.2

/routing filter
add chain=set-next-hop locally-originated-bgp=yes set-out-nexthop=192.168.111.4 action=accept
add chain=set-next-hop action=reject comment="Deny any other routes"

/routing bgp peer
add instance=default name=upstream remote-address=192.168.111.1 remote-as=65000 update-source=192.168.111.2 nexthop-choice=propagate out-filter=set-next-hop

/routing bgp network
add network=192.168.110.0/24 synchronize=no
### Router 2 ###
/interface vrrp
add interface=ether1 name=vrrp1 vrid=1 priority=100 authentication=ah password=somepass

/ip address
add interface=ether1 address=192.168.111.3/29
add interface=vrrp1 address=192.168.111.4/29

/routing bgp instance
set default as=65001 router-id=192.168.111.3

/routing filter
add chain=set-next-hop locally-originated-bgp=yes set-out-nexthop=192.168.111.4 action=accept
add chain=set-next-hop action=reject comment="Deny any other routes"

/routing bgp peer
add instance=default name=upstream remote-address=192.168.111.1 remote-as=65000 update-source=192.168.111.3 nexthop-choice=propagate out-filter=set-next-hop

/routing bgp network
add network=192.168.110.0/24 synchronize=no

Who is online

Users browsing this forum: No registered users and 8 guests