VLAN & Hotspot | Radius Questions

Hi

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.

Thanx for da help.

A softcore coder

Funny you mention that.

It’s not quite as you describe, but you may find what I just posted here: http://forum.mikrotik.com/t/redirection-page-script/5800/1 usefull.

–Eric

cool, so it’s the $(hostname) containts the magic number.
thank you so much

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.

–Eric

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).

Nice, I had not noticed that.

–Eric