Community discussions

MikroTik App
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Packets being routed out instead of local [RESOLVED]

Sun Sep 09, 2007 5:38 am

By following this example http://wiki.mikrotik.com/wiki/Load_Bala ... e_Gateways I have two distinctives LANs.
Now I want them to communicate amongst them, but they're going out to my provider's gateway.
How can I force local traffic to stay local?

Thanks,
Last edited by stuntshell on Sun Sep 09, 2007 6:46 pm, edited 1 time in total.
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Packets being routed out instead of local

Sun Sep 09, 2007 2:54 pm

Please draw a network diagram, it's difficult working blind!
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local

Sun Sep 09, 2007 3:45 pm

You sure need glasses: http://wiki.mikrotik.com/wiki/Load_Bala ... e_Gateways
I need group A to be able to communicate with group B (ping, RDP, etc.)
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Packets being routed out instead of local

Sun Sep 09, 2007 4:22 pm

The Wiki example is a little misleading, it implies but doesn't explicitly state that the LAN (note single LAN, not two) is using a 24bit netmask.

The example in the Wiki doesn't show two distinctive LANs, it shows one LAN with 192.168.100.x addresses and the devices should be using a 24bit netmask (255.255.255.0), hence all these devices will be able to communicate directly with one another.

The 25bit subnetting is only used inside the MT router as a filter to divide the LAN IPs into two groups to provide the load balancing.

As the Wiki example is using one LAN and you state you are using two LANs you obviously haven't set up your network exactly as in the example, so I say again, post a diagram of your network including all routers and addresses.
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local

Sun Sep 09, 2007 4:35 pm

The workability of this setup is not what this post is about.

How can I route the packets that are being marked !NOT to use the provider's gateway?
Thanks,
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: Packets being routed out instead of local

Sun Sep 09, 2007 4:51 pm

???????????????!!!!!!!!!!!!!!!!!!!
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local

Sun Sep 09, 2007 4:57 pm

10.1.1.1 10.1.2.1
| |
-------------
|
192.168.100.254
| |
192.168.100.0 192.168.200.0
GroupA GroupB

They can see the router and the router sees them, but if I'm on groupA I cannot reach groupB.

Thanks,
 
User avatar
tgrand
Long time Member
Long time Member
Posts: 667
Joined: Mon Aug 21, 2006 2:57 am
Location: Winnipeg, Manitoba, Canada

Re: Packets being routed out instead of local

Sun Sep 09, 2007 5:42 pm

Router should see the address in the default route and forward the traffic accordingly.

If the address is beyond any routing marking then you have to create rules to forward the traffic beyond that marking.

This is why a diagram was requested.

If this is just a stand alone router and you are referring to the wireless clients, then you should be sure that forwarding is turned on.
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local

Sun Sep 09, 2007 6:00 pm

Router should see the address in the default route and forward the traffic accordingly.
And it's doing it, the packets are being marked and being sent to the propper gateway.
If the address is beyond any routing marking then you have to create rules to forward the traffic beyond that marking.

The address obviously is within my network and should not be needed to go out to any of my gateways, it should remain local.
This is why a diagram was requested.
NET1.gif
If this is just a stand alone router and you are referring to the wireless clients, then you should be sure that forwarding is turned on.
LAN only


Thanks,
You do not have the required permissions to view the files attached to this post.
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: Packets being routed out instead of local

Sun Sep 09, 2007 6:41 pm

post your routes (detail w/ marks) and mangle chains.
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local [RESOLVED]

Sun Sep 09, 2007 6:48 pm

Thanks all that repplied!

I managed to fix the problem by creating a rule in IP>Route>Rules to lookup the table of each network segment.
I knew it was something simple, but I was blind by looking at the wrong section.

Regards,
 
unlimitedme
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Tue Apr 24, 2007 1:01 pm

Re: Packets being routed out instead of local [RESOLVED]

Tue Sep 11, 2007 5:21 pm

stuntshell,

what do you mean by looking the table of each network segment?
please explain in config.

thanks
 
User avatar
stuntshell
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 57
Joined: Sun Feb 27, 2005 5:15 pm

Re: Packets being routed out instead of local [RESOLVED]

Wed Sep 12, 2007 7:31 pm

Hi,
In IP > Route > Rules
You can set rules of how your routing checks, in my case I'm marking each network by it's source IP, so in my rules I have a set for each network lookup, each for each marking.

Who is online

Users browsing this forum: Ahrefs [Bot], akakua and 129 guests