2 ISP - 1 LAN - 2 GATEWAYS

Hello,

I have a very basic question but i’m not sure what is the best option.

I don’t need Load balancing.

I have a router (CCR2004 cloud) with two interface for two ISP.

I have a only one LAN (192.134.133.0/24 with 2 gateway ( GW1: 192.134.133.1 et GW2: 192.134.133.254). IPs are fictitious :wink:

Some devices are connected to the LAN with GW1 as GATEWAY and some with GW2 as GATEWAY.

How to send internet trafic from devices to ISP1 if the device has gateway = GW1 or to ISP 2 if the device has gateway = GW2.

Thank for advices.

felix34

Question is posed funny but do you mean you wish to
a. send one or more subnets through ISP1 for internet and other subnets through ISP2 for internet?
b. some users but not a whole subnet to ISP1, and some users but not a whole subnet to ISP2
c. users from various subnets to ISP1, users from various subnets to ISP2
d. combination of the above.

Is there any incoming external traffic ?

Hello Anav,

I haven’t subnets. Depending on the GW of each device GW1 or GW2 I want to send the internet traffic to ISP1 or to ISP2.

Devices having GW1 ----> ISP1


Devices having GW2 ----> ISP2

BR. felix34

I dont have the acument to answer that, in other words I dont see a clear and easy way to accomplish what you want.
However a smart budgy informed me that, this approach is made difficult due to ARP responses (mac address of interface is not distinguishable regardless of which gateway is used) and thus wont work without some devious functionality. what you should look at is a solution using VRRP.