I have two gateways to the internet using RB750
Gateway 1: 1.1.1.1 (ISP1)
Gateway 2: 2.2.2.2 (ISP2)
LAN: 192.168.16.0/24
How to route access to certain ip to a specific gateway
For example, LAN access to IP 3.3.3.3 will go through gateway 2 (ISP2)
While access to other IP and browsing to Gateway 1 (ISP1)
ONE LAN on MT router
ALL IPs to use WAN1
Specific IP to use WAN2
If WAN2 fails, then Specific IP is NOT rerouted over WAN1 (office app data replication function to head office is cut-off).
If WAN1 fails, then access for email and browsing for all users is NOT rerouted (access to browsing and email is cut-off).
So there is not fail-over required for this setup?
You do realize that IP 3.3.3.3 can reach any other IP on the LAN and anybody on the LAN can reach 3.3.3.3??
In the simple case, my assumptions then…
/ip route
add distance=1 gateway=gatewayIP of WAN2 preferred source= 3.3.3.3
add distance=2 gateway=gatewayIP of WAN1
You will need some SourceNat Rules as well.
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN2 src-address=3.3.3.3
add action=masquerade chain=srcnat comment=“SCR_NAT for LAN Users”
out-interface=WAN1
Here is my topology
LAN: 192.168.16.0/24
ISP1: 1.1.1.1
ISP2: 2.2.2.2
HO IP: 3.3.3.3
Connection to IP HO (3.3.3.3) from the LAN will be routed to ISP1
While other access (browsing and e-mail) will be routed to ISP2
If ISP1 down, then internet LAN user will be down
If ISP2 down, then connection to HO (3.3.3.3) will be down
There’s no failover at ISP1 and ISP2
If ISP1 and ISP2 down, then there will be chaos in the office ^^
I’m trying to use mark routing, hopefully it works
I dont understand why a business would not want to make use of the redundancy of a dual wan scenario or in other words why would want a potential chaos when it could be avoided.
Oh well, can lead a horse to water…
I think I understand better now, lets see if I got it.
There is only one lan.
All lan traffic headed for public IP HO IP shall use WAN2
All other lan traffic headed for the internet shall use WAN1