m1 and m2 are ADSL modems.
R1 is Microtik routerboard that is set to be dual WAN router
R2 is Microtik Router x86 PC
R3 is home private router
the combination of the two line are successful and the internet is working with double speed. I can access all router from my PC but sometimes I have hard time accessing the modem pages. I am not sure the reason but I thing that when I request 192.168.2.1, the request is treated as normal request of website and it might be sometimes taken the path to m2 modem. That’s why the modem m1 is not found.
Note: the Microtik R2 is connected to APs(for hotspot) and R3 is my own private network.
Is there a code that I should add so that Dual WAN Microtik router so that if the request is 192.168.2.1, it is taken to m1 route and if the request is 192.168.1.1, it is taken to m2 route.
My combining two lines is working so what I need that if the requested ip is 192.168.1.1, it doesn’t go to the load blance but go through the second modem m2 and if the requested ip is 192.168.2.1, then it goes to the first modem m1
when there is one modem conncted, there is no problem in accessing the modem page. the problem is when two modem are connected so I think something should be added to R1 (dual WAN router which is Mikrotik router with a script for load balancing).
somtimes I can access the modem page because the request luckily went to correct path.
Note: I can access all routers normally. only the problem with the two modem. I can access their page half the times
I don’t know which load balancing scheme you are using, but maybe if you added an exclusion for localnet dst-addresses to the rule that determines the load balancing.
If you mean this scheme, fewi is probably better at this than I am. I just stopped by here to get my surfboard. The waves aren’t big, but they’re pretty! http://wiki.mikrotik.com/wiki/PCC#Policy_routing
You probably should post “/ip address” and “/ip firewall mangle” as a minimum.
ADD: If you see a reference to “set X blah blah”, that means replace X with the line number from a “print”.
Ok, if you use PCC than you know the result of PCC classifier in your mangle creates two different packet or connection markers. Each of these are than the source for two different policy routing rules.
Now all you need to do is to make sure that the destination addresses of the two modem is not passed through the PCC process but get a dedicated set packer or connection marker which as result give them the proper routing mark and route to reach the right destination.
So what you do is set a packet or connection marker rule BEFORE the PCC rules where traffic coming from (src address classifier) your PC and going TO (dst address classifier) (and for instance tcp protocol on port 80) get their own mark.
Upon this manually assigned mark the traffic hits the designed routing marker rule and gets the desired route.