Porta
Switch
Prepaid WiFi Services
© 2000-2011 PortaOne, Inc. All rights Reserved. www.portaone.com
11
default-client-tx-limit=0 proprietary-extensions=post-2.9.25 hide-
ssid=no security-profile=default disconnect-timeout=3s on-fail-
retry-time=100ms preamble-mode=both compression=no allow-
sharedkey=no
[admin@Mikrotik] > /interface wireless set 0 mode=”ap-bridge”
[admin@Mikrotik] > /interface wireless print
Flags: X – disabled, R – running
0
name=”wlan1”...
mode=ap-bridge …
…
[admin@Mikrotik] >
5.
Configure DHCP-SERVER for WiFi.
5.1.
Add IP pool which will be used for WiFi;
[admin@Mikrotik] >/ip pool add name=wifi-pool ranges=192.168.12.2-
192.168.12.255
[admin@Mikrotik] >/ip pool print
# NAME
RANGE
0 wifi-pool
192.168.12.2-192.168.12.255
[admin@Mikrotik] >
5.2.
Add dhcp network;
[admin@Mikrotik] > /ip dhcp-server network add address=192.168.12.0/24
dns-server=192.168.0.1,213.186.192.2 gateway=192.168.12.1 comment="wifi
network"
[admin@Mikrotik] > /ip dhcp-server network print
# ADDRESS
GATEWAY
DNS-SERVER
WINS-SERVER
DOMAIN
0
;;; wifi network
192.168.12.0/24
192.168.12.1 192.168.0.1
213.186.192.2
[admin@Mikrotik] >
NOTE
: Network «192.168.12.0/24» used for sample, replace it with real
network address and set correct dns-server address(es).
5.3.
Add dhcp server;
[admin@Mikrotik] > /ip dhcp-server add interface=wlan1 address-
pool=wifi-pool lease-time=3d00:00:00 disabled=no
[admin@Mikrotik] >/ip dhcp-server print
Flags: X – disabled, I – invalid
# NAME INTERFACE RELAY ADDRESS-POOL
LEASE-TIM
ADD-ARP
0 dhcp1
wlan1
wifi-pool
3d
[admin@Mikrotik] >
6.
Configure RADIUS client.
[admin@Mikrotik] > /radius add address=111.11.11.11 secret="mikrotik"
service="hotspot"
[admin@Mikrotik] > /radius print
Flags: X – disabled
# SERVICE
CALLED-ID DOMAIN
ADDRESS SECRET
0 hotspot
111.11.11.11
mikrotik
[admin@Mikrotik]
>
NOTE
: 111.11.11.11 – IP of Master (Radius) Server, secret
– RADIUS Key