Community discussions

MikroTik App
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

how to enter the pages of the modem?

Wed Apr 20, 2011 10:27 am

I have network that is shown in the picture below

Image

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.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7188
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: how to enter the pages of the modem?

Wed Apr 20, 2011 2:11 pm

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
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Wed Apr 20, 2011 2:42 pm

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
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
 
leonet45
just joined
Posts: 23
Joined: Fri Dec 17, 2010 2:18 am

Re: how to enter the pages of the modem?

Wed Apr 20, 2011 11:32 pm

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
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 10:42 am

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
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 1:58 pm

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
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 5:26 pm

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?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 6:12 pm

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".
 
WirelessRudy
Forum Guru
Forum Guru
Posts: 3119
Joined: Tue Aug 08, 2006 5:54 pm
Location: Spain

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 7:58 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: how to enter the pages of the modem?

Thu Apr 21, 2011 8:09 pm

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.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Fri Apr 22, 2011 8:35 pm

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: how to enter the pages of the modem?

Fri Apr 22, 2011 8:43 pm

/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
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Mon May 16, 2011 8:05 pm

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
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: how to enter the pages of the modem?

Mon May 16, 2011 8:16 pm

Do you have the exemption accept rule above the rules that mark routing?
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: how to enter the pages of the modem?

Fri May 20, 2011 2:38 pm

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

Who is online

Users browsing this forum: ech1965 and 43 guests