My first experience with MikroTik a router over here
This is my current setup:
This setup shares personal usage (switch2) together with business usage (switch1) which is not ideal.
I want to create a secondary gateway with a HAP Mini with internet access of course. I want the secondary network for personal usage behind switch2 with some restrictions for my kids among other things. Ideally the two networks must be able to communicate, but not critically important. Very important though that the setup on the DLink router should not change if at all possible.
You will get internet access and access from secondary network to primary if you simply connect 1st hAP port to switch1 and the 2nd to switch2.
Even with default config. And no additional config on dlink.
The only real downside will be one unnecessary NAT performed on hAP.
To remove it, and to get connectivity from primary network to secondary as well you need to:
On Dlink:
Add static dhcp lease for hAP
Add static route to 192.168.88.0/24 via the address you added in 1)
On hAP:
Disable default masquerade rule in /firewall nat
Adjust rules in /firewall filter to allow some limited access from primary network to secondary.
The LAN cable between switch1 and switch2 is connected between 20 other lan cables on switch2. Therefore difficult to locate the link cable. Can I hook the HAP up behind the switch? That does however not sound right to me…
By the way, you might also need to disable hAP’s wifi interface if you don’t need it.
I’m not sure that it is disabled by default, and if not, the default SSID is configured without any password.
Honestly, I don’t have a lot of experience with quick set.
I think you need to choose something like “Home AP”.
If you dlink runs dhcp server, you need to configure hAP as dhcp client, and it will get ip and gateway automatically.
If not, then you have to set ip and add a default route manually.
Hey man, I played around with Winbox setup last night and understand the config a little better now.
However, should the LAN cable from the DLink to the hAP be plugged in to the WAN port, or to LAN2? (see edit below)
The hAP mini has 3 ports: Internet, 2 and 3
I would think it should be plugged in to LAN2 and make that the master port and slave LAN3 for the rest of the network?
Yes, the DLink is the DHCP server so I’ll set the hAP as a DHCP client and remove the second NAT at a later stage once everything is up and running smoothly.
EDIT: Further research suggests that this cable from the dhcp server should be plugged in to the WAN port (internet port) of the hAP…and as the dhcp client gets configured on the hAP, it will pick the 192.168.0.1 dhcp server up and everything should work. I’ll be playing around some more tonight.
If you are going to use default config (or the one started from default one, but modified to your needs), then plug the cable from D-link to WAN port, you will end up with less things to modify.
If you feel confident enough, to write your own config from scratch - then it doesn’t really matter, all ports are equal when they are not configured, so you can assign the needed roles as you want.