Is there any way to pass the VLAN tag to the login page or the radius server?
I need it to be done in such way couz my project requires some kinda port based customization, I know there is a way to use snmp to walk the mac addresses on the switch ports, but too hard for me since I am a softcore coder only. So I think set different VLAN to ports and pass the tag over to the backend is much easier for me.
Well, it does not just “contain” the name/number, you have to put it there. This is not using the feature as it was intended (and is thus rather hack-ish), but it can be made to work.
Each VLAN tag has its own interface in RouterOS. Radius gets interface name in NAS-Port-Id attribute. Starting from 2.9.16 login page can use $(interface-name).