简明Hostpot热点网关设置

MikroTik HotSpot网关至少需要两网络接口:

1. HotSpot接口:连接Hotspot客户端的网卡 which is used to connect HotSpot clients

2. LAN/WAN接口:访问外网资源的网卡接口

下面是一个无线Hotspot设置的拓扑图:

简明Hostpot热点网关设置_第1张图片

设置一简单的HotSpot网关如下:

1. 配置Hotspot网关的无线网卡:

[admin@HotSpot_Gateway]> interface wireless set wlan1 ssid=HotSpot band=2.4ghz-b mode=ap-bridge

2. 配置IP地址到Hotspot接口上

[admin@HotSpot_Gateway] > ip add add address=192.168.0.1/24 interface=wlan1

3. WAN/LAN接口上配置IP地址:

[admin@HotSpot_Gateway] > ip add add address=10.5.8.250/24 interface=ether1

4.添加路由器的网关

[admin@HotSpot_Gateway] > ip route add gateway=10.5.8.1

5. 在/ip hotspot中配置Hotspot服务,在wlan1接口上配置Hotspot,并添加用户帐号user:admin 和pasword: test

[admin@MikroTik] > ip hotspot setup

hotspot interface: wlan1

local address of network: 192.168.0.1/24

masquerade network: yes

address pool of network: 192.168.0.2-192.168.0.254

select certificate: none

ip address of smtp server: 0.0.0.0

dns servers: 10.5.8.2

dns name: hs.example.net(如果没有域名,最好不要填写)

name of local hotspot user: admin

password for the user: test