Friday, May 8, 2009

Load-balancing & Fail-over in Mikrotik

Condition: ISP where we use the Administrator to work as more than a gateway to connect to the Internet. All services must be able to serve Upstream & downstream. Because the case will be different when one of them can only serve downstream, for example, if using VSAT DVB One-way. For this case dimisalkan ISP has 2 routes to the Internet. One access to DSL (256 Kbps) and the other using the Wireless (512 Kbps). With the ratio of the DSL: Wireless = 1:2.
That will be done:


  1. Using all channels available to the gateway load-balancing techniques.
  2. Making one of them as back-up techniques with the fail-over
OK, let us just start eksperimennya:
  1. IP address for access to the LAN: > / Ip address add address = 192.168.0.1/28 interface = LAN
  2. IP address for access to the DSL: > / Ip address add address = 10.32.57.253/29 interface = DSL
  3. IP address for access to the Wireless: > / Ip address add address = 10.9.8.2/29 interface = WIRELESS
  4. Define the gateway and rasionya each: > / Ip route add gateway = 10.32.57.254,10.9.8.1,10.9.8.1
2. In the case of techniques to fail-over. Assumed that the main route through Wireless with DSL lines as a back-up when the primary path can not be passed. To check whether the main path can be passed or not, use the ping command.
> / Ip firewall mangle add chain = prerouting src-address = 192.168.0.0/28 action = mark-routing new-routing-mark = SUBNET1-RM
> / Ip route add gateway = 10.9.8.1 routing-mark = SUBNET1-RM check-gateway = ping
> / Ip route add gateway = 10.32.57.254
3. Good Luck!

No comments:

Post a Comment