I have an RB4011isG+RM. I'm using it for my internet cafe running diskless on client PC's, with one server and one timer PC. I have two ISP's. I want to run two ISP's in one network so my customers can manually change ISP whichever they prefer since some games have high ping on the other ISP.
Is running two ISP's in one network possible without merging? For example, ISP1 = 128.0.0.1, ISP2 = 128.0.0.2.
Is it possible to config load balancing for this type of config?
The easiest way of dealing with TWO WAN connections for customers is the following:
a. WIFI - one can dedicate an SSID for WAN1 connectivity and SSID2 for WAN2 connectivity.
b. WIRED - Supply desktop switches with labels for connectivity to appropriate WAN. ( would entail different subnets).
Yes, failover is possible to setup such that one WAN takes the entire load if the other WAN is not available, but only works if the ISPs are different etc.
My only issue is the wired ones. I want to use two ISP's in one network(ISP1 = 128.0.0.1, ISP2 = 128.0.0.1) and I want my customers to manually change gateway as they pleased. I made a .bat script for this.
Yep, but if I get it right there are three different things at play:
failover
load balance
user choice of the appropriate WAN
The first two can be automated inside the Mikrotik device, but the third cannot, because it is a manual choice and would imply that the users have access to the router settings.
I presume that your batch file changes IP of the gateway of the PC client,
so that it connects through one of two existing gateways, one "going out" through WAN1 and the other through WAN2?
Or if you still want to use stable version of RouterOS, such as 7.19.4, you'll need to move your LAN subnet to a VLAN interface or a stand-alone ethernet port first, then create the MACVLAN interface as described above. Current stable versions of RouterOS do not allow adding MACVLAN interfaces to bridges yet!
Add an IP address to this MACVLAN interface in the same subnet as your LAN subnet. For example, if the router has 192.168.88.1/24 on the main VLAN/bridge/ether-port, then set 192.168.88.2 for macvlan1:
Add this interface to the LAN interface list if you use defconf, or do whatever needed so that macvlan1 has the same firewall setup as your main LAN interface (the VLAN/bridge/ether-port above).
/interface list member
add interface=macvlan1 list=LAN
Assuming that you have already setup your routing tables with the main table using ISP1 as default route and you have a second table isp2 that has the ISP2 as default route. You'll need to add this routing rule:
This ensures that packets coming through the macvlan1 interface are routed using the isp2 routing table.
That's all you need on the router. Now, on the client devices in the LAN subnet, if they use 192.168.88.1 as default gateway, their packets will be routed through ISP1, but if they change the gateway address to 192.168.88.2, they'll use ISP2 to go out to the internet.
I forwarded this thread to my technician. I guess he got it upon reading everything here. My internet cafe is now running smoothly thou still in the process adding Mangle routing to dozens of games.