Setup guide
To choose the login method to be used if smart method is set as the value of login-method
property, the following algorithm is used:
• If a client has a dynamic DHCP address lease received from the router, correct HotSpot server
is set for the DHCP server issued that lease, and the client has specific IP address set in the /ip
hotspot user configuration, dhcp-pool method will be used
• else, if mark-flow property is defined in the client's profile), enabled-addressmethod will be
used
• else, if the client has a dynamic DHCP lease, dhcp-poolmethod will be used
• else, an error message will be displayed, and the client will not be logged in
Example
To use enabled-address method that uses logged-in mark and logs a client off if he disappears for
more then a minute:
[admin@Wandy] ip hotspot profile> set default login-method=enabled-address \
\... mark-flow=logged-in keepalive-timeout=1m
[admin@Wandy] ip hotspot profile> print
Flags: * - default
0 * name="default" session-timeout=0s idle-timeout=0s only-one=yes
tx-bit-rate=0 rx-bit-rate=0 incoming-filter="" outgoing-filter=""
mark-flow="logged-in" login-method=enabled-address keepalive-timeout=1m
[admin@Wandy] ip hotspot profile>
To define an additional profile that will also limit download speed to 64 kilobyte/s and upload data
rate to 32 kilobyte/s, and call it limited:
[admin@Wandy] ip hotspot profile> add copy-from=default tx-bit-rate=65536 \
\... rx-bit-rate=32768 name=limited
[admin@Wandy] ip hotspot profile> print
Flags: * - default
0 * name="default" session-timeout=0s idle-timeout=0s only-one=yes
tx-bit-rate=0 rx-bit-rate=0 incoming-filter="" outgoing-filter=""
mark-flow="logged-in" login-method=enabled-address keepalive-timeout=1m
1 name="limited" session-timeout=0s idle-timeout=0s only-one=yes
tx-bit-rate=65536 rx-bit-rate=32768 incoming-filter=""
outgoing-filter="" mark-flow="logged-in" login-method=enabled-address
keepalive-timeout=1m
[admin@Wandy] ip hotspot profile>
HotSpot Users
ip hotspot user
Property Description
name (name) - user name
password (text) - user password
address (IP address; default: 0.0.0.0) - static IP address. If not 0.0.0.0, client will always get the
same IP address. It implies, that only one simultaneous login for that user is allowed
mac-address (MAC address; default: 00:00:00:00:00:00) - static MAC address. If not
00:00:00:00:00:00, client is allowed to login only from that MAC address
profile (name; default: default) - user profile
routes (text) - routes that are to be registered on the HotSpot gateway when the client is connected.
The route format is: "dst-address gateway metric" (for example, "10.1.0.0/24 10.0.0.1 1"). Several