Community discussions

MikroTik App
 
mazari
just joined
Topic Author
Posts: 10
Joined: Tue Sep 28, 2010 9:53 pm

Multiple WANs with dynamic IPs -Failover-

Wed Sep 29, 2010 7:16 pm

Hello

I recently got a couple of RB493 boards and I need some help with the configuration. I am a newbie on Mikrotik boards but I can see how capable these little boards are.

I want to be able to setup 3 ports as LAN ports for my clients with DHCP server and I want to be able to configure 3 ports to work as WAN ports as DCHP Clients (dynamic IPs from ISPs). After doing my homework and a lot of reading I was able to configure my RB493 with the following configuration:

3 LAN ports working as a switch and DHCP server: IP address:192.168.1.1, pool 192.168.1.2/192.168.1.50
3 WAN ports (named WAN1, WAN2 and WAN3) working as WANs (DHCP Client) to get access to the internet.

Every WAN port (WAN1, WAN2 and WAN3) gets an IP address and a gateway from different ISPs, the problem is that all the traffic is going throughout a single network and if I disconnect the active network it doesn't recognize that there are 2 other options available. Can anyone help me to configure my RB493 in such a way that it automatically uses any active WAN port to route the traffic?. Basically I would like to router to route my traffic using 3 WANs if available or 2 WANs or only 1 WAN if it is the only one available.

Note:very important, the WAN ports are DCHP clients I don't have fixed IPs.

Any help would be greatly appreciated!!!!
Last edited by mazari on Thu Sep 30, 2010 9:44 pm, edited 1 time in total.
 
mazari
just joined
Topic Author
Posts: 10
Joined: Tue Sep 28, 2010 9:53 pm

Re: Multiple WANs with dynamic IPs

Thu Sep 30, 2010 9:29 pm

After some more reading I discovered that what I actually need is a WAN failover except that I don't have static IPs for my WANs. Ideally, I would like load balancing and failover but load balancing seems to be a different monster. Here is my setup:

LAN port: 192.168.1.1
WAN1: Dynamic IP (ISP provider) configured as DCHP Client
WAN2: Dynamic IP (ISP provider) configured as DCHP Client
WAN3: Dynamic IP (ISP provider) configured as DCHP Client

Right now the router picks one of the WAN ports (when the networks are up) and sends all the traffic through that port but if the network goes down it doesn't route the traffic through another live WAN port.

I read some posts that talk about netwatch and scripting to check the port availability and then decide what port to use to route the traffic (http://wiki.mikrotik.com/wiki/ECMP_Failover_Script) except that they use static IPs to ping and see if the network is up. Can anyone give some direction on how to setup a failover for my 3 WAN ports with dynamic IPs?

Thanks