Page 1 of 1
how to enter the pages of the modem?
Posted: Wed Apr 20, 2011 10:27 am
by namo
I have network that is shown in the picture below
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.
Re: how to enter the pages of the modem?
Posted: Wed Apr 20, 2011 2:11 pm
by mrz
You can do it either by policy routing or using mangle. Similar examples can be found in wiki
http://wiki.mikrotik.com/wiki/User/Routing
Re: how to enter the pages of the modem?
Posted: Wed Apr 20, 2011 2:42 pm
by namo
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
Re: how to enter the pages of the modem?
Posted: Wed Apr 20, 2011 11:32 pm
by leonet45
add next hop or gateways on all router to reach your network
something like 192.168.5.0/24 GW 192.168.4.100 on R2
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 10:42 am
by namo
add next hop or gateways on all router to reach your network
something like 192.168.5.0/24 GW 192.168.4.100 on R2
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
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 1:58 pm
by SurferTim
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.
set X dst-address=!192.168.0.0/16
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 5:26 pm
by namo
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.
set X dst-address=!192.168.0.0/16
I am using pcc scheme.
what is X?
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 6:12 pm
by SurferTim
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".
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 7:58 pm
by WirelessRudy
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.
Re: how to enter the pages of the modem?
Posted: Thu Apr 21, 2011 8:09 pm
by fewi
Or just accept the traffic in those rules before PCC. That way the traffic is exempted from PCC and the normal routing table is used.
Re: how to enter the pages of the modem?
Posted: Fri Apr 22, 2011 8:35 pm
by namo
thank you. But I am not expert in networking and Mikrotik.
Can you give the scripts that I should add ? Or where should I edit in Winbox?
Note: I used the PCC code that I got from fewi before.
Re: how to enter the pages of the modem?
Posted: Fri Apr 22, 2011 8:43 pm
by fewi
/ip firewall address-list
add list=exempt-from-pcc address=192.168.1.1/32
add list=exempt-from-pcc address=192.168.2.1/32
/ip firewall mangle
add chain=prerouting dst-address-list=exempt-from-pcc action=accept
Re: how to enter the pages of the modem?
Posted: Mon May 16, 2011 8:05 pm
by namo
nothing change. it still slow to enter the modem. and when I tracert to 192.168.3.168, it goes to 192.168.9.168 path
Re: how to enter the pages of the modem?
Posted: Mon May 16, 2011 8:16 pm
by fewi
Do you have the exemption accept rule above the rules that mark routing?
Re: how to enter the pages of the modem?
Posted: Fri May 20, 2011 2:38 pm
by namo
Do you have the exemption accept rule above the rules that mark routing?
I put the mangle rule at the top and it is working now. thank you