In referencing ( http://forum.mikrotik.com/t/automatic-hotspot-binding/74593/1 )
I’m trying to create a ‘bypass’ binding rule for the hotspot based on finding ‘active host names’ in the DHCP server leases that would be unique to a given hardware vendor and then create the binding rule…so for example previously i did this for adding CAPs in neighbors to the binding like this:
:foreach neighbor in=[/ip neighbor find] do={
:local ip [/ip neighbor get $neighbor address ];
:local mac [/ip neighbor get $neighbor mac-address];
:put $ip;
:put $mac;
/ip hotspot ip-binding add address=$ip mac-address=$mac type=bypassed;
}
This worked well for what I needed before…but now i’m not able to do this since the new hardware vendor isn’t discoverable or CDP compatible unfortunately. So i thought I could pull part of the unique hostname from DHCP server (ie. WAP-ap1, WAP-ap2, WAP-ap3…etc…) then add it into a bypass within the hotspot.
Any suggestions would be appreciated…
thankyou.