Community discussions

MikroTik App
 
User avatar
msilcher
just joined
Topic Author
Posts: 7
Joined: Mon Mar 09, 2009 9:39 pm
Location: Argentina

Routing between LANs

Mon Mar 09, 2009 11:10 pm

Hi everyone!

I´ve a simple issue but I can´t get I work. I've got a MT with 4 ethernet interfaces connected to 4 switches. Logical configuration is the following:

Eth1: 192.168.1.1/24 ---> switch 1 ----> 192.168.1.0/24
Eth2: 192.168.2.1/24 ---> switch 2 ----> 192.168.2.0/24
Eth3: 192.168.3.1/24 ---> switch 3 ----> 192.168.3.0/24
Eth4: 192.168.4.1/24 ---> switch 4 ----> 192.168.4.0/24

I can't reach computers from network 1 to network 2,3 and 4. I only reach computers in the same subnet.

When I ping from a PC in network 1 (192.168.1.10) I only reach all routers interfaces (ip addresses) but no other ip in other networks. I dont know how to enable routing between networks. I want to have all LAN routed togheter.

Thanks!
You do not have the required permissions to view the files attached to this post.
 
User avatar
nest
Forum Veteran
Forum Veteran
Posts: 822
Joined: Tue Feb 27, 2007 1:52 am
Location: UK
Contact:

Re: Routing between LANs

Tue Mar 10, 2009 1:00 am

The problem is that each PC has no knowledge of how to route traffic to the other three subnets. Each PC needs to know where to send the packet of data. I.e. if 192.168.1.1 pings 192.168.4.1, where should it go?

You need to read up on routing. I suggest the links below may help you to understand what to experiment with. It may sound bad of me, but experimenting with some ideas is a faster way to learn than if I just give you the commands to enter to make it all work! You would then understand the concept of routing and gateways.

http://www.mikrotik.com/testdocs/ros/3.0/ip/route.php
http://blog.butchevans.com/2008/07/mikr ... ng-option/

Ron
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

Re: Routing between LANs

Tue Mar 10, 2009 2:20 pm

The alternative if you need stuff like NetBIOS and DHCP etc over the network, you could create a bridge and add those Ethernet ports to the bridge.

As suggested before, you need to get up to speed with static routing. It's not that difficult but an understanding of the OSI model would help.

Basically this is what happens. A PC on the 192.168.1.0/24 network wants to connect to a PC with an IP of 192.168.2.24. The 192.168.1.0/24 switch does not have this address range in it's routing table so the request is then sent to the default gateway which happens to be 192.168.1.1. This is now where the big question is asked. If this gateway does not know or is not told which route to take to find the 192.168.2.0 network the PC gets a "dunno where that is" type of answer.

However if you were to set-up a routing rule that TOLD the gateway where to go to find the network, all would work.

Hope this helps as a starter. Shout for more info though.
 
User avatar
msilcher
just joined
Topic Author
Posts: 7
Joined: Mon Mar 09, 2009 9:39 pm
Location: Argentina

Re: Routing between LANs

Wed Mar 11, 2009 12:57 am

Thank you very much guys! Later at night I came to the answer. And you we're just right it was related with routes. I made the mistake in not putting the right gateways in some of the PCs. The real scenario was just a little bit more complex than the one I described. the thing is that the MT router knew the routes to all of the networks but some of the network devices did not know how to return the data, they just forwarded it to the default gateway (witch of course was not correct one, or has no routes for the other subnets). I decided to enable RIP between Mikrotik and other gateways so all the routers know each others directions.

I have some interest in testing with bridges, it's seems the are pretty useful.

Thanks!!

Martin Silcher

Who is online

Users browsing this forum: Adephx, Amijani, CGGXANNX and 47 guests