Quantcast
Channel: SmallNetBuilder Forums
Viewing all articles
Browse latest Browse all 6885

Help needed - dhcp server in AP mode

$
0
0
Asus RT-N66. In Access Point mode DHCP server is disabled. I have been trying to enable dhcp server using jffs config file and startup script. I can not get it running correctly.

jffs is enabled and I can store files in it that survive reboot.

I created this dnsmasq.conf file in jffs. [ /jffs/configs/dnsmasq.conf ]:

Code:

dhcp-range=192.168.1.171,192.168.1.199,255.255.255.0,24h
dhcp-option=3,192.168.1.20
dhcp-option=6,208.67.222.222,208.67.220.200
dhcp-host=00:EA:24:EE:E2:B4,192.168.1.155,24h

I created this startup script services-start in jffs [ /jffs/scripts/services-start ]:

Code:

#!/bin/sh
killall dnsmasq
dnsmasq -c 1500 --log-async -n
touch /tmp/000dnsmasqstarted

ps | grep dns* shows that dnsmasq runs at startup (as does the 000dnsmasqstarted file being created in /tmp.

However, connecting devices are not getting any ip / dns from dhcp. I also tried naming the config file dnsmasq.config-add but that also did not work.

Thank you for your help.

Viewing all articles
Browse latest Browse all 6885

Trending Articles