I have a hotspot configured in a bridge, however I have to know in which physical interface the client is connected.
Among the variables that the hotspot provides, there is the attribute "$(interface-name)", but it always returns the name of the bridge.
The moments that I need this information are in the login and logout of the client, so script is a considerable option.
Looked like this, I was able to get the hostname of the client, intersecting with the DHCP-LEASE table information
Code: Select all
: local hostname [ip dhcp-server lease get [find address = $ address] host-name];
thanks