Help to configure RB100 ah for hotpot and lan:

hi guys,

need you assistance in configuring an RB 1100AH router to support both LAN and HOTSPOt functionality.

the lan is for a cybercafe supporting 16 machines. i have a dlink 16 port switch. the hotspot system will be propergated via ubiqutwi M2’s.

any info will really help. :smiley:

regards

michael

Hotspot works on interface only. So, you may setup hotspot on one interface and configure one other interface to cater computers in cafe.

I assume you know, how to setup hotspot on mikrotik.

i sourced some info from the net and configured the hotspot...here

see bellow my config



















MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK

MikroTik RouterOS 6.1 (c) 1999-2013 http://www.mikrotik.com/

[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments

[Tab] Completes the command/word. If the input is ambigous,
a second [Tab] gives possible options

/ Move up to base level
.. Move up one level
/command Use command at the base level
jan/02/1970 00:00:08 system,error,critical router was rebooted without proper shut
down
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

0 ;;; default configuration
192.168.88.1/24 192.168.88.0 ether1
[admin@MikroTik] > ip address remove 0
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip address add address=41.139.192.50/30
interface: ether1
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip route add gateway=41.139.192.49
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE

0 A S 0.0.0.0/0 41.139.192.53 1
1 ADC 41.139.192.52/30 41.139.192.54 ether1 0
[admin@MikroTik] >
[admin@MikroTik] > ip hotspot pr
profile print
[admin@MikroTik] > ip hotspot print
Flags: X - disabled, I - invalid, S - HTTPS

NAME INTERFACE ADDRESS-POOL PROFILE IDLE-TIMEOUT

[admin@MikroTik] >
[admin@MikroTik] > ip hotspot set
set setup
[admin@MikroTik] > ip hotspot setup
Select interface to run HotSpot on

hotspot interface: ether3
Set HotSpot address for interface

local address of network: 192.168.20.1/24
masquerade network: yes
Set pool for HotSpot addresses

address pool of network: 192.168.20.25-192.168.20.254
Select hotspot SSL certificate

select certificate: none
Select SMTP server

ip address of smtp server: 0.0.0.0
Setup DNS configuration

dns servers: 41.203.208.30,41.203.208.38
DNS name of local hotspot server

dns name:
Create local hotspot user

name of local hotspot user: admin
password for the user: ****
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK INTERFACE

0 41.139.192.50/30 41.139.192.48 ether1
1 ;;; hotspot network
192.168.20.1/24 192.168.20.0 ether3
[admin@MikroTik] > ip hotspot pr
profile print
[admin@MikroTik] > ip hotspot print
Flags: X - disabled, I - invalid, S - HTTPS

NAME INTERFACE ADDRESS-POOL PROFILE IDLE-TIMEOUT

0 hotspot1 ether3 hs-pool-8 hsprof1 5m
[admin@MikroTik] > ip hotspot
[admin@MikroTik] /ip hotspot> profile
[admin@MikroTik] /ip hotspot profile> print
Flags: * - default
0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot
rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
login-by=cookie,http-chap http-cookie-lifetime=3d split-user-domain=no
use-radius=no

1 name="hsprof1" hotspot-address=192.168.20.1 dns-name=""
html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0
smtp-server=0.0.0.0 login-by=cookie,http-chap http-cookie-lifetime=3d
split-user-domain=no use-radius=no
[admin@MikroTik] /ip hotspot profile>
[admin@MikroTik] /ip hotspot profile>
[admin@MikroTik] /ip hotspot profile>
[admin@MikroTik] /ip hotspot profile> cd /..
bad command name cd (line 1 column 1)
[admin@MikroTik] /ip hotspot profile> ..
[admin@MikroTik] /ip hotspot> ..
[admin@MikroTik] /ip> ..
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip hotspot user print
Flags: X - disabled, D - dynamic

SERVER NAME ADDRESS PROFILE UPTIME

0 admin default 0s
[admin@MikroTik] > ip hotspot profile
[admin@MikroTik] /ip hotspot profile> set 1 use-radius=yes
[admin@MikroTik] /ip hotspot profile> print
Flags: * - default
0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot
rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
login-by=cookie,http-chap http-cookie-lifetime=3d split-user-domain=no
use-radius=no

1 name="hsprof1" hotspot-address=192.168.20.1 dns-name=""
html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0
smtp-server=0.0.0.0 login-by=cookie,http-chap http-cookie-lifetime=3d
split-user-domain=no use-radius=yes radius-accounting=yes
radius-interim-update=received nas-port-type=wireless-802.11
radius-default-domain="" radius-location-id="" radius-location-name=""
radius-mac-format=XX:XX:XX:XX:XX:XX
[admin@MikroTik] /ip hotspot profile> ..
[admin@MikroTik] /ip hotspot> walled-garden
[admin@MikroTik] /ip hotspot walled-garden> print
Flags: X - disabled, D - dynamic

SERVER METHOD DST-HOST DST-PORT PATH ACTION HITS

[admin@MikroTik] /ip hotspot walled-garden> ..
[admin@MikroTik] /ip hotspot> ..
[admin@MikroTik] /ip> ..
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > tool user-manager customer add login=cyber password=elanor
[admin@MikroTik] > tool user-manager router
[admin@MikroTik] /tool user-manager router> user
bad command name user (line 1 column 1)
[admin@MikroTik] /tool user-manager router> user
bad command name user (line 1 column 1)
[admin@MikroTik] /tool user-manager router>

.. -- go up to user-manager
add -- Create a new item
comment -- Set comment for items
disable -- Disable items
edit --
enable -- Enable items
export -- Print or save an export script that can be used to restore configuration
find -- Find items by value
get -- Gets value of item's property
monitor --
print -- Print values of item properties
remove -- Remove item
reset-counters --
set -- Change item properties


[admin@MikroTik] /tool user-manager router> ..
[admin@MikroTik] /tool user-manager> user
[admin@MikroTik] /tool user-manager user> print
Flags: X - disabled, A - active, I - incomplete
[admin@MikroTik] /tool user-manager user> ..
[admin@MikroTik] /tool user-manager> customer
[admin@MikroTik] /tool user-manager customer> print
Flags: X - disabled
0 login="admin" password="" backup-allowed=yes time-zone=-00:00
permissions=owner signup-allowed=no paypal-allowed=no
paypal-secure-response=no paypal-accept-pending=no

1 login="cyber" password="elanor" backup-allowed=yes time-zone=-00:00
permissions=owner signup-allowed=no paypal-allowed=no
paypal-secure-response=no paypal-accept-pending=no
[admin@MikroTik] /tool user-manager customer>
[admin@MikroTik] /tool user-manager customer>
[admin@MikroTik] /tool user-manager customer> ..
[admin@MikroTik] /tool user-manager> ..
[admin@MikroTik] /tool> ..
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > tool user-manager router
[admin@MikroTik] /tool user-manager router> print
Flags: X - disabled
[admin@MikroTik] /tool user-manager router> add ip-address=127.0.0.1 shared-secret=
elanor
customer: cyber
[admin@MikroTik] /tool user-manager router>
[admin@MikroTik] /tool user-manager router>
[admin@MikroTik] /tool user-manager router>
[admin@MikroTik] /tool user-manager router> ..
[admin@MikroTik] /tool user-manager> ...
bad command name . (line 1 column 3)
[admin@MikroTik] /tool user-manager> ..
[admin@MikroTik] /tool> ..
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > radius add service=hotspot address=127.0.0.1 secret=elanor
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] > ip hotspot profile print
Flags: * - default
0 * name="default" hotspot-address=0.0.0.0 dns-name="" html-directory=hotspot
rate-limit="" http-proxy=0.0.0.0:0 smtp-server=0.0.0.0
login-by=cookie,http-chap http-cookie-lifetime=3d split-user-domain=no
use-radius=no

1 name="hsprof1" hotspot-address=192.168.20.1 dns-name=""
html-directory=hotspot rate-limit="" http-proxy=0.0.0.0:0
smtp-server=0.0.0.0 login-by=cookie,http-chap http-cookie-lifetime=3d
split-user-domain=no use-radius=yes radius-accounting=yes
radius-interim-update=received nas-port-type=wireless-802.11
radius-default-domain="" radius-location-id="" radius-location-name=""
radius-mac-format=XX:XX:XX:XX:XX:XX
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >
[admin@MikroTik] >



nw, m having an issue with configuring a another dhcp server to provide ips to the cyber cafe machines