Wi fi и dhcp сервер на керио

Обсуждение оборудования и его настройки
Ответить
baddaboo
Сообщения: 3
Зарегистрирован: 06 авг 2014, 13:09

1)Имеем: есть dhcp сервер на керио с адрессом 192.168.7.1.Есть микротик 192.168.7.253. Выдача локальных адресов привязана по маку на керио.
Необходимо: Поднять Wi-Fi хотспот с выдачей диапазона 7.170-7.190 с помощью керио.Остальные адреса должны присваиваться согласно правилам
2)Было предпринято: поднят хотспот на подсети 88.0\24 с дхцп на микротике.Если делаю микротик в режиме бриджа,то хотспот не работает на подсети 7.0\24
3)
 
[admin@MikroTik] >> /export compact
# jan/02/1970 14:29:45 by RouterOS 6.18
# software id = XB4C-EBMU
#
/interface bridge
add admin-mac=4C:5E:0C:3D:41:09 auto-mac=no l2mtu=1598 name=bridge-local
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-ht-above \
country=russia disabled=no distance=indoors l2mtu=2290 mode=bridge ssid=\
Vectura wireless-protocol=802.11
/interface ethernet
set [ find default-name=ether1 ] name=ether1-gateway
set [ find default-name=ether2 ] name=ether2-master-local
set [ find default-name=ether3 ] master-port=ether2-master-local name=\
ether3-slave-local
set [ find default-name=ether4 ] master-port=ether2-master-local name=\
ether4-slave-local
set [ find default-name=ether5 ] master-port=ether2-master-local name=\
ether5-slave-local
/ip neighbor discovery
set ether1-gateway discover=no
/ip dhcp-server
add interface=bridge-local lease-time=10m name=default
/ip hotspot profile
add hotspot-address=192.168.7.253 name=hsprof1
/ip pool
add name=hs-pool-1 ranges=192.168.7.160-192.168.7.254
/ip dhcp-server
add address-pool=hs-pool-1 interface=ether1-gateway lease-time=1h name=dhcp1
/ip hotspot
add address-pool=hs-pool-1 disabled=no interface=bridge-local name=hotspot1 \
profile=hsprof1
/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-local interface=wlan1
add bridge=bridge-local interface=ether1-gateway
/ip address
add address=192.168.7.253/24 comment="default configuration" interface=\
ether2-master-local network=192.168.7.0
add address=192.168.7.153/24 interface=ether1-gateway network=192.168.7.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid interface=\
ether1-gateway
/ip dhcp-server network
add address=192.168.7.0/24 comment="hotspot network" gateway=192.168.7.177 \
netmask=24
add address=192.168.88.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=192.168.7.10
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established
add chain=input comment="default configuration" connection-state=related
add action=drop chain=input comment="default configuration" in-interface=\
ether1-gateway
add chain=forward comment="default configuration" connection-state=established
add chain=forward comment="default configuration" connection-state=related
add action=drop chain=forward comment="default configuration" connection-state=\
invalid
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
add action=masquerade chain=srcnat comment="default configuration" disabled=yes \
out-interface=ether1-gateway
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.7.0/24
/ip hotspot user
add name=admin
/ip route
add distance=1 gateway=192.168.7.1
/ip upnp
set allow-disable-external-interface=no
/system leds
set 0 interface=wlan1
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-local

4)В документации не нашел тему о хотспотах


baddaboo
Сообщения: 3
Зарегистрирован: 06 авг 2014, 13:09

Еще такие 2 варианта на ум пришли
Изображение
Изображение


vqd
Модератор
Сообщения: 3605
Зарегистрирован: 26 сен 2013, 14:20
Откуда: НСК
Контактная информация:

А если ДХЦП рилэй использовать?


Есть интересная задача и бюджет? http://mikrotik.site
baddaboo
Сообщения: 3
Зарегистрирован: 06 авг 2014, 13:09

Пытаюсь сейчас сделать,чтобы каждому порту был присвоен свой адрес-на одном 7.253(с блокировкой некоторых сайтов через керио керио),на втором 7.252(полный доступ). 2 и wi-fi в бридже,поэтому хотспот работает нормально.Но если я поднимаю бридж 2 порта со 2 сетью без хотспота,то первый падает


Ответить