Второй DCHP не выдает ip
Добавлено: 03 май 2014, 13:29
paidion
Настроил гостевую вай фай сеть используя вирутал АП. На гостевой сети отдельный дцхп как то зашел и обнаружил, что гостевой дхцп сервер лежит. Хотя настройки не менялись.
Удалял и пересоздовал дхцп и все равно не работает. помогите разобраться.
Удалял и пересоздовал дхцп и все равно не работает. помогите разобраться.
Код: Выделить всё
add address=192.168.2.1/24 interface=ether2-master-local network=192.168.2.0
/ip dhcp-server config
set store-leases-disk=immediately
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.200 domain=VASINY gateway=\
192.168.1.200 netmask=24
add address=192.168.2.0/24 dns-server=192.168.1.200,95.167.167.96 domain=\
GOSTI_VASINY gateway=192.168.2.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=95.167.167.95,95.167.167.96
/ip dns static
add address=192.168.1.200 name=vasek
/ip firewall address-list
add address=192.168.1.0/24 list=inet
add address=192.168.2.0/24 list=gosti
/ip firewall filter
add chain=forward comment="Allow established connection" connection-state=\
established
add chain=forward comment="Allow related connections" connection-state=\
related
add chain=forward comment="Alow acess to inet for gosti" in-interface=\
vasin_net out-interface=wan src-address-list=inet
add chain=forward comment="Alow acess to inet" in-interface=gosti \
out-interface=wan src-address-list=gosti
add chain=forward comment="Allow UDP" protocol=udp
add action=drop chain=forward comment="Drop invalid connection packets" \
connection-state=invalid
add action=drop chain=forward comment="All other drop"
add action=drop chain=forward comment="all other drop" in-interface=wan
add action=drop chain=forward comment="drop from gosti to local" \
dst-address-list=inet src-address-list=gosti
/ip firewall nat
add action=masquerade chain=srcnat out-interface=wan src-address-list=inet \
to-addresses=0.0.0.0
add action=masquerade chain=srcnat comment=gosti out-interface=wan \
src-address-list=gosti to-addresses=0.0.0.0
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
/ip route
add comment=multik distance=1 gateway=192.168.30.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip upnp
set allow-disable-external-interface=no
/system clock manual
set time-zone=+04:00
/system identity
set name=vasek
/system leds
set 0 interface=WiFi_Vasiny
/system ntp client
set enabled=yes mode=unicast primary-ntp=193.1.193.157
/system routerboard settings
set cpu-frequency=700MHz
[admin@vasek] >