OpenWrt Forum Archive

Topic: Two Routers with Two Internet Connections?

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

i have a Tplink 1049 (12.09) with a cable connection and i have a tplink 4300 (barrier braker) with a dsl modem. both are connected and functional, i have the both routers in the same subnet.
the thing is that i cannot get the multiwan working. i dont know how to configure it, i dont even know if i must to configure another wan interface in the cable router (its the main router) or well, i dont know what to do.


regards!

but multiwan, if i understand correctly, its for a router with two wan connections and here i have a wan in one router and the second wan in other router.

By the way, you need create one main router (DHCP, which have route to second router). Or you can configure only one where will be two Vlans for two WAN connection and one for LAN.

Another way you need always select default route (from which router go to network) on PC manually.

As neryba states, you can cascade the 2 routers, or you can connect both of your internet feeds to 1 of them and eliminate the other.  I am not familiar with the 1049 and can't find anything online, so no idea if the cable modem is in-built and would need to be substituted for.

In a cascaded setup, 1 router is ONLY connected to the real WAN and the other router.  That 2nd router is the one where you configure 2 WAN connections, one through the 1st router and the other through it's real WAN.

WAN1-WAN_PORT-ROUTER1-LAN_PORT1   <--VLAN-->   LAN_PORT1-ROUTER2-DSL_PORT-WAN2

Disable DHCP,DNS,NAT,firewall on ROUTER2
Create VLAN on one of the LAN ports of each router (call it LAN_PORT1).
Connect them with cable.
Bridge LAN_PORT1 and DSL_PORT on ROUTER2
This way you'll have 2 wans on ROUTER1 and can use multiwan

(Last edited by bolvan on 4 Dec 2013, 09:03)

alaric wrote:

As neryba states, you can cascade the 2 routers, or you can connect both of your internet feeds to 1 of them and eliminate the other.  I am not familiar with the 1049 and can't find anything online, so no idea if the cable modem is in-built and would need to be substituted for.

In a cascaded setup, 1 router is ONLY connected to the real WAN and the other router.  That 2nd router is the one where you configure 2 WAN connections, one through the 1st router and the other through it's real WAN.


sorry you will not find it, because i wrote it wrong, its a 1043.

thanks bolvan thats very helpfull, i will try it and will be update the satus of this.



regards!

(Last edited by Rothariger on 4 Dec 2013, 20:00)

What are you trying to achieve, Equal Cost MultiPath (ECMP) routing or outgoing failover? You can not configure incoming failover unless you are routing BGP with both of your ISPs.

If you want ECMP, you'll need to install Quagga to both routers, put your default gateway IP on a virtual VLAN IP and then configure ECMP links to the real outgoing gateway IP addresses. It's a bit of a complicated setup.

If you simply want outgoing failover, then you still need to use Quagga for route monitoring:

http://doauto.wordpress.com/2013/07/31/ … -in-linux/

the thing is so, my cable connection it has a great speed (at least here in argentina) 20mb, but because i'm far off the servers (at least that told me customer service of my isp) the service is a piece of sh... so i get a dsl connection of 3mb, but its in another par of the house, where i have the 2nd router.
so, if its possible i want to merge the internet connections, if not, i want to use the dsl connection when the cable connection is down.


thanks for your time.

ECMP will be your best bet then. It will utilize both connections at the same time, unless one of them is down.

Thanks.
At least now i know what i have to do.


Regards.

The discussion might have continued from here.