Hi everyone!
I’ve got few Mikrotik devices [R5009, CRS310-8G and cAP AX] and I’m trying to create SOHO network (as well as to hone my networking skills a bit more).
All devices are running latest available packages (7.16.1 at the time of writing the post)
So far, I’ve managed to get router and switch working just fine, with PC connected via switch and traffic being handled via VLAN (I think, at least).
Issue is, no matter what I try, seems like I cannot get cAP to correctly have few wifi networks for VLANs: 30,31,32,40.
Even when trying to utilize built-in wifi1 or wifi2 with basic configuration (security set, datapath VLAN ID set to 30) end device (phone in this test case) cannot obtain IP address from DHCP on router.
What exactly has to be done to set up multiple SSIDs for both 2.4GHz and 5GHz, each with own VLAN?
Thanks for any help in advance!
Here are configurations (that I were able to export or write down on my own; plain exported files from switch and AP had no exact configuration other than NTP client): router.rsc (5.09 KB) ap.rsc (516 Bytes) switch.rsc (1.29 KB)
Also attaching designated network diagram, as reference of whole idea.
I can help without capsman… which I loathe for the complexity it brings to the config and the gazillions lines of code required.
Basically each device uses one bridge.
The Ap and Switch get a trunk port from the router and distribute the vlans as necessary. In your case trunk from switch to capac and also to tplink smart switch.
So MT switch has three trunk ports!
Each smart device ( ap and switch) should get its LANIP via IP address and on the trusted or management vlan.
This is the only vlan that needs to be identified to the bridge.
No wan or lan just a TRUSTED interface list entry on the ap and switch.
As for capac one creates virtual WLANS, typical is one virtual 5ghz and one virtual 2ghz so four WLANs at the end of the day.
Each can be associated with vlans as you see fit ( assigned via interface bridge ports and interface bridge vlans ).
Once you have done an initial stab using the great link from erlinden, (not to be confused with the great erlinden, thats a famous magician long dead) then post all three configs here for review and assistance.
/export file=anynameyouwish ( minus device serial number, any public WANIP information, keys etc. )
Note the first thing I do is use the second etherport as an emergency access port and a CONFIG port when initially setting up the router.
Trust me, it will save you much grief as working with bridges and vlans can be frustrating trying to do it from a port on the bridge…
Add an IP address to ether2 192.168.55.1/30 interface=OffBridge2 network=192.168.55.0
Add the interface to the single interface list (MGMT).
Then all you need to do is plug the laptop into ether2 change IPV4 settings to 192.168.55.2 on the laptop and you will have access.
I ensure any capac install, after the initial install and going to physically place it in a location that is too hard to reach (by directly plugging in an ethernet cable ex low ceiling) I run a second cable to a location that I can plug the other end into a laptop - not necessarily back to the patch panel but any location closet, storeroom etc… ).
Thanks for input! Sadly enabling vlan filtering on router shuts down my entire network
I've read up a little in "VLAN bible" beforehand, but since config were based on ROS6 I've tried my best to adapt it, alongside my basic understanding (and few youtube videos watched before getting Mikrotik gear)
Thanks; yeah, I'm not fan of using CAPsMAN at this stage, since I'm 100% certain this won't get another AP for next 4 or 5 years
Here's export of most recent setup, which seems to still not work - when VLAN filtering is enabled on R5009 bridge, no network connection can be made. Or maybe I'm just missing firewall rules?
Also, when VLAN filtering is on on switch but disabled on router, AP users still cannot obtain IP address from DHCP - but PCs connected to ether1/2 can. switch-21102024.rsc (1.79 KB) router-21102024.rsc (5.44 KB) ap-21102024.rsc (2.72 KB)
Still you need to learn basic VLAN setup. @anav did an incredible job in his reply to this post. You missed all the relevant stuff (/interface /bridge/port and /interface/bridge/vlan) and misconfigured /interface/vlan. Compare your config with the example of @anav, specifically on my mentioned parts.
Use ALL VLANS, dont ask the bridge to do any dhcp. if you have and use a bridge subnet just change that to a vlan any number (not 1), very minor and quick changes to do this;.
use off bridge approach for initial config ( is that what your debug port 2 is intended for ??)
Do you have a public IP address or the upstream router does and can port forward…if so then use wireugard to configure router remotely and forget about ssh.
-firewall rules generally suck at this point.