I bought my first two MikroTik routers(RB951Ui-2HnD) this morning. Before buying them, I was using some Ciscos with DDWRT on them.
I’m impressed with the web interface, there’s no need to install ddwrt on openwrt, it’s slick, fast and beautiful. I’m quite happy !
My message here is to get a bit of help on how to do something. I have an IT background but not in networking, it’s too far away and I’m unable to do what I want at home.
Here’s the current situation:
snapshot6.png
I have a modem (from VOO in Belgium), connected to the first MikroTik on the first port (WAN).
This first router (MT1) has a local IP: 192.168.1.1 and the wireless is configured with DHCP range: 192.168.1.50~150
The address acquisition for Internet is set to Automatic and it currently has 109.89.6.XX and gateway: 109.89.6.1
The second router (MT2) is connected to the first router(Port 2) using its first port (WAN).
Its local ip is: 192.168.3.1 and the wireless is configured with DHCP range: 192.168.3.50~150
The address acquisition for Internet is set to Automatic and it currently has 192.168.1.50 and gateway: 192.168.1.1
Here’s what I’m trying to do:
snapshot5.png
I would like to have two proper networks.
MT1 with subnet 192.168.1.0/24
MT2 with subnet 192.168.3.0/24
The big question is how to configure the port on each router. How to let the two routers detect each other and communicate properly ?
Those two networks should have Internet and also let devices communicate between each others, from a subnet to another.
I think it’s the tenth time that I try to do something, but I always end up not having internet and forced to reset the router to get my network back.
Make a setup like You described but is the worst situation. I can not know where you are loosing internet conectivity without you describing what did you do . you can use the quick setup feature configure both routers. But in this setup you will have double nat and possible to have problems with some internet aplications.
Best way is to setup the first mikrotik as router with two dhcp servers one for ports 3-5 and one for port2 who is connected with second mikrotik . That will be setup as a bridge. This way you can have two separate networks and the routing and nat will be done only by the first mikrotik.
If are in trouble to setup devices I can prepare a config for you later in a lab.
2-first you have to setup you first router , if your first router has internet ( you can test it by ping 8.8.8.8 from Tools/Ping) then setup DHCP on first router and be sure it’s working,since your modem , first router and first router’s hosts are in a same subnet no routing will be required.
3-now connect your second router to the first router and setup your addressing :
192.168.1.1 should be set to the first router port2(which connected to the second router)
192.168.1.2(or any free ip address in 192.168.1 subnet) should be set to the wan port of second router(which connected to the first router)
default router will be add automatically when you are adding IP’s.
4-in Tool/Ping you should be able to ping 192.168.1.1 from second router and ping 192.168.1.2(or any IP you given to the second router) from first router , if they are done go on next…
5-in second router go to IP/Route and add this route :
add check-gateway=ping comment=“Gateway To Internet” distance=1 gateway=192.168.1.1
6- no if you ping 8.8.8.8 from second router everything should be ok !
7-after that setup your second router DHCP on your second router.
***** pay attention here : your gateway of second router’s users should be 192.168.1.1(actually your first router , then first router will route it to your modem )**
no , use another subnet it’s not important but 2 IP’s should be on same subnet , set 192.168.250.1 to first router port 2 and 192.168.250.2 to second router wan(or any port which connected to the first router)
That will be double nat setup and I don’t recommend it and he said also he does not want double nat. Again, setup first router, when everything works in the first router, remove ether5 from switch, you can do it by removing ether2 from master switch option and adding an IP and a dhcp server to ether5. Next setup the second mikrotik as a bridge and connect it to ether5 to the first one. That’s it.
It’s not double nat , masquerade nat on first router will be enough. also bridging will cause broadcast and collision domain also ARP poisoning and many other issues…
routed network works more reliable and in future firewalling and controlling over hosts will be much more easier
Sorry if I misunderstood you, but users in second 192.168.3.0/24 subnet can’t have 192.168.1.1 as gateway (unless you play with proxy arp, but that’s completely unnecessary). What is needed is the last missing step:
your first router working as NAT router for you , packets route from router #2 to #1 because you have default route in your #2 router : add check-gateway=ping distance=1 gateway=192.168.250.1
it will be route all packets which their subnet is not exists in router #2’s routing table t the 192.168.250.1(router #1)