How to divide Network into 3 subnetwork ?

Hi all gurus, I think I need help …

I have 3 MikroTiks and network is 192.168.100.0. I would like to divide this network into three subnetworks. It is easy to set-up each other MK same network with x.x.x.x/26 mask but …
For MK1 I want to have large Ip range, MK2 is only connection between MK1 <==> MK3 so for MK2 I want to add only 2hosts per network (192.168.100.124/30 eg.) and for MK3 I want to have also large IP range as on MK1. Each MikroTik must be in the same network 192.168.100.0, how to do it ?

Thank you for your reply.

pastik -
I am guessing here: MK1<==>MK2<==>MK3 is this correct?

First question that comes to mind is why do you have to have all three MKs in the same address pool? Why not just route private IPs where you need them (internally) and masq/nat them as they leave your main router to the Internet?

To answer your original question - you’ll have to bridge your interfaces to get them all in the same range and talking… There is no way to divide the IP range the way you want to - get any subnet mask calculator (google for it - subnet calc) and you’ll see that… So bridging your MK interfaces is the only way to have them all in the 192.168.100.0/24 range…

Thom

Maybe try this. Break them up into multiple subnets. Use OSPF to broadcast your routes so you dont have a bunch of static routes to take care of.

mk1
eth0 192.168.100.1/26
eth0 192.168.100.65/27
eth0 192.168.100.97/28
eth0 192.168.100.113/30
eth1 192.168.100.117/30 ( connects to mk2)

mk2
eth0 192.168.100.118/30 (connects to mk1)
eth1 192.168.100.121/30 (connects to mk3)

mk3
eth0 192.168.100.122/30
.125-126 wasted or you can use them for vpn or something
eth1 192.168.100.129/25

I have never done this so good luck!

Also if you are really using private IP’s, why not just route a new /24?

mk1
eth0 192.168.100.1/24
eth1 192.168.101.1/30 ( connects to mk2)
eth3 (your wan info)
ip route 192.168.102.0/30 192.168.101.2
ip route 192.168.103.0/24 192.168.102.2
ip route 0.0.0.0/0 (whatever your wan route is)

mk2
eth0 192.168.101.2/30 (connects to mk1)
eth1 192.168.102.1/30 (connects to mk3)
ip route 0.0.0.0/0 192.168.101.1
ip route 192.168.103.1/24 192.168.102.2

mk3
eth0 192.168.102.2/30
eth1 192.168.103.1/24
ip route 0.0.0.0/0 192.168.102.1