DSL PPPOE-CL and USB 3G PPP-CL

I am setting up a router with a PPPOE dsl line and 3G USB connection. I would like the DSL line to be primary and failover to the USB 3G if the DSL goes down. I have them both working, but I can’t find a way to set the distance. They both come up with a route distance of 1 so it is a crap shoot as to what interface is being used, depending on which one comes up first. Any ideas?
Thanks,

Uncheck the option which creates the default route automatically (in the ppp/pppoe client), and then create two default routes yourself, one pointing to pppoe-out1 with low metric, the second pointing to ppp-out1 with a higher metric.

You can then also set the ppp-out1 to be dial on demand, in order to save cost (if applicable).

Both are dynamic IP addresses, so I don’t think I can create the default route. Correct or no?
Thanks,

Point your default route to the interface rather than the gateway IP:

/ip route add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1
/ip route add dst-address=0.0.0.0/0 gateway=ppp-out1 distance=2

it will not work

and I will tell you why…
if your pppoe goes down… backup on 3g works OK… but when ppppoe comes up…you will get request time out on ping until you disable ppp-out1

so yes… it works but only in one way… and like I said when pppoe comes up…you will have NO internet out of the box

you can always try it if you do not belive me

so any help will be apreciated in how to do a real 3g failover

You are all half-correct :slight_smile:

You need to add one more setting for the preferred route: check-gateway=ping

Have a look here:
http://wiki.mikrotik.com/wiki/Two_gateways_failover

Hope that helps :slight_smile:

Ok, I am running down this same problem.
First let me say that I have never sent a default route to an interface… I guess if it is PPP, the device on the other end will defiantly be the default gateway and hopefully know what to do with it. But I have clients where the primary connection is DHCP client cable modem, I do not think a route to an interface will work at all there.. but I will give it a shot. and the backup is ppp 3G.

So I am thinking based on this thread.

/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether add-default-route=no

/interface ppp-client
add apn=internet comment="Tmobile WAN" disabled=no info-channel=3 name=ppp-out1 port=usb2 add-default-route=no

/ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=ether1 distance=1 check-gateway=ping

If that does not work… maybe I can get a static for the cable modem.
I will have to wait till later to post the results, right now I am on manual backup. In the meantime, any tips?

wow it worked!!!

Well I see why you do not set an interface as your gateway, at least on a cable modem. Loads of dropped and delayed packets. I suppose I will have to convince the cable company to hand out a static address… unless someone else can find a way to add gateway check on a dynamical assigned gateway.