Packets being routed out instead of local [RESOLVED]

By following this example http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_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,

Please draw a network diagram, it’s difficult working blind!

You sure need glasses: http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
I need group A to be able to communicate with group B (ping, RDP, etc.)

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.

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,

!!!

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,

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.

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,

post your routes (detail w/ marks) and mangle chains.

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,

stuntshell,

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

thanks

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.