[Solved] R7000 Guest Wifi Setup -- What am I doing wrong??

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Aug 22, 2014 17:17    Post subject: Reply with quote
I see you now have the additional hosts file in your dnsmasq.conf and that it has been commented out. Did you make this entry in the dnsmasq options box on the services page?

Anyhow try adding this the dnsmasq options box on the services page.

dhcp-range=wl0.1,192.168.10.100,192.168.10.150,255.255.255.0,60m

This will tell dnsmasq to provide dhcp addresses on wl0.1
Sponsor
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Fri Aug 22, 2014 17:24    Post subject: Reply with quote
Yes I did add that addn-hosts. I've tried with, without, and commented out.

I added the line you told me with modifications I made recently when I completely reset and reconfigured the router and guest wifi:

Code:
dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,60m

I will need to check tonight to see if it has made an difference.

Output of "cat /tmp/dnsmasq.conf" now shows the following which seems promising:

Code:
user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
domain=ks.cox.net
stop-dns-rebind
strict-order
dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,60m
#addn-hosts=/opt/host

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Fri Aug 22, 2014 17:51    Post subject: Reply with quote
Here's the DHCP info for the main network 192.168.1.0 from the Status>LAN tab(s) and static IP table from the Services>Services tab(s).

I am able to get IPs from this range just fine when I connect devices not included in the static IP table or when I remove the static IP address for the specific device I am connecting--all while "Use DNSMasq for DHCP" and "Authoritative-DHCP" unchecked.

It looks to me like there are two DHCP daemons or services that can possibly run: 1) DCHPd and 2) DNSMasq running as DHCP (for guest wifi for example).

What I don't understand is why DNSMasq kills my internet connectivity if it is enabled with static IPs. I think I may try to go back to 24500M before the IPv6 implementation and see if guest wifi works properly. I don't really need to be on 24800M.



LAN_Status_DHCP.png
 Description:
 Filesize:  68.07 KB
 Viewed:  11582 Time(s)

LAN_Status_DHCP.png



Static_IP_Table.png
 Description:
 Filesize:  92.04 KB
 Viewed:  11582 Time(s)

Static_IP_Table.png



_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Fri Aug 22, 2014 18:19    Post subject: Reply with quote
Switch from udhcpc to dnsmasq

Basic settings
Enable dnsmasq for dhcp
Enable dnsmasq for dns
Enable authorities

Services
Enable dnsmasq

You may have to reboot router and laptop
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Sat Aug 23, 2014 1:37    Post subject: Reply with quote
Output of "ps" with DHCP disabled and DNSMasq for DHCP and Authoritative-DHCP enabled:
Code:
root@R7000:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1036 S    /sbin/init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u4:0]
    7 root         0 SW   [migration/0]
    8 root         0 SW   [rcu_bh]
    9 root         0 SW   [rcu_sched]
   10 root         0 SW   [migration/1]
   11 root         0 SW   [ksoftirqd/1]
   12 root         0 SW   [kworker/1:0]
   13 root         0 SW<  [kworker/1:0H]
   14 root         0 SW<  [khelper]
  108 root         0 SW<  [writeback]
  111 root         0 SW<  [bioset]
  112 root         0 SW<  [crypto]
  114 root         0 SW<  [kblockd]
  140 root         0 SW   [kworker/1:1]
  181 root         0 SW   [kswapd0]
  182 root         0 SW   [fsnotify_mark]
  301 root         0 SW<  [deferwq]
  302 root         0 SW   [kworker/0:1]
  623 root       704 S    /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules
  627 root       744 S    /sbin/mstpd
  664 root      1120 S    watchdog
  670 root         0 SW   [khubd]
  710 root         0 SW   [scsi_eh_0]
  711 root         0 SW   [usb-storage]
  720 root         0 SW   [kworker/u4:2]
  721 root         0 SW<  [kworker/0:1H]
 1029 root      1128 S    telnetd
 1067 root      1032 S    ttraff
 1071 root         0 SW<  [kworker/1:1H]
 1080 root       676 S    cron
 1083 root       784 S    dnsmasq --conf-file=/tmp/dnsmasq.conf
 1097 root      1220 S    nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth1 -
 1101 root      1220 S    nas -P /tmp/nas.wl0.1lan.pid -H 34954 -l wl0.1 -i wl
 1128 root      3016 S    httpd -p 80
 1272 root      1076 S    resetbutton
 1301 root      1284 S    privoxy /tmp/privoxy.conf
 1317 root      2648 S    httpd -S
 1647 root      1032 S    process_monitor
 1651 root      1072 S    inadyn -u DdnsUsername -p DdnsPassword --input_file /tmp/
 2004 root      1076 S    wland
 2005 root      1112 S    udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcp
 2152 root      1112 S    /bin/login
 2160 root      1116 S    -sh
 2621 root      1112 S    /bin/login
 2625 root      1116 S    -sh
 2630 root      1112 R    ps

Output of dnsmasq.conf and resolv.dnsmasq:
    root@R7000:~# cat /tmp/dnsmasq.conf
    user=root
    interface=br0,wl0.1
    resolv-file=/tmp/resolv.dnsmasq
    all-servers
    stop-dns-rebind
    strict-order
    dhcp-range=wl0,192.168.1.150,192.168.1.159,255.255.255.0,60m
    dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,60m
    addn-hosts=/opt/hosts
    root@R7000:~# cat /tmp/resolv.dnsmasq
    nameserver 208.67.222.222
    nameserver 208.67.220.222
    nameserver 208.67.220.220

The result is that I am able to get internet connectivity on both the wl0 and wl0.1.

James, do you know how to set static IPs via the DNSMasq options as the static routes are no longer working?

The part that I don't understand is that DHCPd, using DNSMasq for DHCP and DNS, and Authoritative-DHCP work just fine together until you set static IPs. I went through and completely reset and reconfigured my router, and that is how I was able to discover the issue. So what difference does setting static IPs make that cause the problems??

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Sat Aug 23, 2014 1:53    Post subject: Reply with quote
If you have the following settings it should use dnsmasq and not udhcpd

Setup
Dhcp type: server
Dhcp server : enabled
...
Use dnsmasq for dhcp
Use dnsmasq for dns
Authoritative

Services
Dnsmasq enabled

Clear everything from dnsmasq option box in case you have an error that is conflicting. That should set dnsmasq as the dhcp server on br0 and if you enabled multiple dhcp servers on networking page.

Reboot

For address reservations (what you are calling static) just use the webif section and it will populate the /tmp/dnsmasq.conf file with entries like this

dhcp-host=10:1F:74:49:F9:80,PRINTER,192.168.1.100,60m

** edit

Try with just one device such as your laptop in address reservation set lease like 1440 see if that clears it out.

** 2nd edit

I was replying to your message while reading your response In another window and was looking at wrong ps

ps looks good now

Does it say dnsmasq as dhcp server in status-lan

I suspect an issue with additional host file. I have no issues with dnsmasq and address reservations via webif.
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Sat Aug 23, 2014 4:11    Post subject: Reply with quote
It's working now. I updated to 24865M, so it appears there is an issue with 24800M and guest wifi. I initially tried to downgrade to 24500M, but it wouldn't let me. Once I got 24865M up it was immediately working really well. The webIF is a LOT quicker! Nice work BS, Kong, et al.

So here is the updated outputs:
ps-
Code:
root@R7000:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1036 S    /sbin/init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW   [migration/0]
    8 root         0 SW   [rcu_bh]
    9 root         0 SW   [rcu_sched]
   10 root         0 SW   [migration/1]
   11 root         0 SW   [ksoftirqd/1]
   12 root         0 SW   [kworker/1:0]
   13 root         0 SW<  [kworker/1:0H]
   14 root         0 SW<  [khelper]
  108 root         0 SW<  [writeback]
  111 root         0 SW<  [bioset]
  112 root         0 SW<  [crypto]
  114 root         0 SW<  [kblockd]
  140 root         0 SW   [kworker/1:1]
  181 root         0 SW   [kswapd0]
  182 root         0 SW   [fsnotify_mark]
  301 root         0 SW<  [deferwq]
  303 root         0 SW   [kworker/0:1]
  593 root       728 S    /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules
  597 root       744 S    /sbin/mstpd
  634 root      1120 S    watchdog
  977 root         0 SW<  [kworker/0:1H]
 1294 root      1112 S    /bin/login
 1739 root      1112 S    sleep 14
 1751 root      1116 S    -sh
 1773 root      1112 R    ps
 2644 root         0 SW   [khubd]
 2686 root         0 SW   [scsi_eh_0]
 2688 root         0 SW   [usb-storage]
 2707 root         0 SW<  [kworker/1:1H]
 3160 root      1272 S    {yamon2.sh} /bin/sh /opt/YAMon2/Setup/yamon2.sh
 5457 root      3192 S    httpd -p 80
 9384 root         0 SW   [kworker/u4:2]
23537 root         0 SW   [kworker/u4:1]
24234 root      1120 S    telnetd
24266 root       676 S    cron
24288 root      1308 S    proftpd: (accepting connections)
24332 root      1548 S    privoxy /tmp/privoxy.conf
24356 root      1032 S    ttraff
24377 root      1220 S    nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth1 -
24380 root      1220 S    nas -P /tmp/nas.wl0.1lan.pid -H 34954 -l wl0.1 -i wl
24522 root      1076 S    resetbutton
24841 root      1032 S    process_monitor
24844 root      1072 S    inadyn -u DdnsUsername -p DdnsPassword --input_file /tmp/
25202 root      1076 S    wland
25203 root      1112 S    udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcp
25565 root       888 S    dnsmasq --conf-file=/tmp/dnsmasq.conf


cat /tmp/dnsmasq.conf-
Code:
root@R7000:~# cat /tmp/dnsmasq.conf
user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
domain=ks.cox.net
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=25
dhcp-option=lan,3,192.168.1.1
dhcp-option=wl0.1,3,192.168.10.1
dhcp-authoritative
dhcp-range=lan,192.168.1.150,192.168.1.159,255.255.255.0,60m
dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,30m
dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv2,192.168.1.2,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv8.2,192.168.1.3,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,HPPSC7280,192.168.1.100,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,NAS,192.168.1.101,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wireless,192.168.1.102,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wired,192.168.1.103,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wireless,192.168.1.104,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wired,192.168.1.105,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,1440m
dhcp-host=XX:XX:XX:XX:XX:XX,CanonPS510XS,192.168.1.109,1440m
stop-dns-rebind
strict-order
addn-hosts=/opt/hosts


and cat /tmp/resolv.dnsmasq
Code:
root@R7000:~# cat /tmp/resolv.dnsmasq
nameserver 208.67.222.222
nameserver 208.67.220.222
nameserver 208.67.220.220


I was even able to create an additional firewall iptable entries for the guest wifi for use with OpenDNS:
Code:
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i wl0.1 -p udp --dport 53 -j DNAT --to $(nvram get wl0.1_ipaddr)
iptables -t nat -A PREROUTING -i wl0.1 -p tcp --dport 53 -j DNAT --to $(nvram get wl0.1_ipaddr)


Thanks for sticking in there with me, guys--James especially--and helping me figure it out! Man, it feels good getting my network setup the way I want it!!!

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Sat Aug 23, 2014 4:35    Post subject: Reply with quote
Good to hear you got it working..
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Tue Aug 26, 2014 2:09    Post subject: Reply with quote
So this saga continues, actually... Here's additional information.

With wl0.1 enabled and with a second DHCP running:
    DNSMasq for DHCP in conjunction with static IPs on br0 works great on 24865M.
    DNSMasq for DHCP in conjunction with static IPs on br0 only works when I set the static IP on the devices as well with 24500M.
    DNSMasq for DHCP in conjunction with static IPs on br0 doesn't work no matter what I do on 24800M.

The reason the saga continues is because my wife's laptop won't connect to the network at all (with or without wl0.1, and with or without DNSMasq for DHCP enabled) on 24865M.

Her laptop will connect to 24500M/24800M, but with the stipulations listed above (depending on DNSMasq for DHCP and wl0.1 enabled or not). It is an older laptop with an 802.11b/g wireless Intel card so I will be checking for newer drivers and if there is I will reload 24865M, to see if it can connect. Otherwise I can't leave her with a network to which she can't connect, so I am currently on 24500M which was so close to working with guest wifi and static IPs on br0 as it should, but not quite, unfortunately.

Any ideas, or are we fresh out after previous discussion?

It would be awesome if the same fix added in 24865M could be added to the older 24500M or 24800M in order to get br0, and wl0.1 to play nice with static IPs on br0.

I would then have the best of both worlds with a network my wife's laptop can connect to with the usability of a guest network, and the static IPs assigned on my br0 network (for APs, NAS, Printer and others that don't work well with DHCP). If I remove the static IPs from br0 on 24500M/24800M everything works as it should; however if I set any amount of static IPs, DNSMasq (I think) breaks.

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
JAMESMTL
DD-WRT Guru


Joined: 13 Mar 2014
Posts: 856
Location: Montreal, QC

PostPosted: Tue Aug 26, 2014 3:30    Post subject: Reply with quote
I actually rolled back to 24800 for some unrelated tests earlier today and guest networks were running perfectly. Also fairly certain 24500 worked perfectly well for me.

I have a mix of address reservations and regular dhcp clients. Pretty sure I'm not the only one or people would be making all kinds of posts.

Try commenting of the additional hosts file. I can't see what's in it so I can't see if there is an error
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Tue Aug 26, 2014 3:35    Post subject: Reply with quote
I'll try it again, but I'm pretty sure it wasn't working even before I added any additional DNSMasq options.
_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Wed Aug 27, 2014 12:37    Post subject: Reply with quote
So 24500M is still giving me issues with static IPs. I removed everything from the additional DNSMasq options box and still did not have internet connectivity.

The second I run 1) "nvram set static_leases=""" and 2) "nvram set static_leasenum="0"" then DNSMasq works fine and I have internet connectivity. Alternatively I can set or remove the static leases via the webIF and get the same result. Once entered and saved/applied, no internet. Once removed and saved/applied, I have internet. I have also done these procedures followed by restarting the router as well as not rebooting--either way same results.

I also have settings scripts saved for 24500M, 24800M and now 24865M with both wl0.1 enabled and disabled. I have tried using the settings script for the respective build and also re-configuring from scratch after a factory reset. Still same behavior with static leases set/unset.

James, would you be willing to post or pm me screenshots of your Setup>Basic Setup tab(s), your Setup>Networking tab(s), Wireless/Basic Settings tab(s) and Services>Services tab(s)?

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Thu Aug 28, 2014 13:01    Post subject: Reply with quote
I'm a little closer, now. I found a post in the big 251 page R7000 thread where someone mentioned they always did the static leases in the "Additional DNSMasq Options" box. They gave these example entries:
    Code:

    dhcp-range=192.168.168.100,192.168.168.150,255.255.255.0,infinite
    dhcp-host=00:19:C5:34:XX:XX,192.168.168.160,infinite

Last night I decided to look into the "infinite" portion of that and put "infinite" in the "Client lease time" box for each static lease I had in the webIF table on the Services>Services tab(s).

So the good news is it's working on 24500M. But there's still something wrong.

"ps | grep [d]nsmasq" output:
    Code:

    1108 root 796 S dnsmasq --conf-file=/tmp/dnsmasq.conf


"cat /tmp/dnsmasq.conf" output. The "infinite" client lease time becomes "infinitem":
    Code:

    user=root
    interface=br0,wl0.1
    resolv-file=/tmp/resolv.dnsmasq
    all-servers
    dhcp-leasefile=/tmp/dnsmasq.leases
    dhcp-lease-max=14
    dhcp-option=lan,3,192.168.1.1
    dhcp-option=wl0.1,3,192.168.10.1
    dhcp-authoritative
    dhcp-range=lan,192.168.1.150,192.168.1.159,255.255.255.0,60m
    dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,30m
    stop-dns-rebind
    strict-order
    dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv2,192.168.1.2,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv8.2,192.168.1.3,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Printer,192.168.1.100,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,NAS,192.168.1.101,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wireless,192.168.1.102,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wired,192.168.1.103,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wireless,192.168.1.104,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wired,192.168.1.105,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,CanonPS510XS,192.168.1.109,infinitem
    addn-hosts=/opt/hosts


Does anyone know why it is working this way? I've tried 1440 (default), 60, 0, and blank. None have worked, but for some reason "infinite" does.

If I clear the static lease table (nvram set static_lease="", and nvram set static_leasenum="0") and put the host entries in the "Additional DNSMasq Options" without the 'm' like the following, it doesn't work again:
    Code:

    ...
    dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,infinite
    dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,infinite
    ...


Also, when it is working with "infinitem" the Status>LAN or Status>Sys-Info tab(s) are not showing the lease unless the client is active, and the hostnames for at least one client shows "infinitem" (see screenshot attached). Any ideas as to why it is exhibiting this behavior?



Status_Lan.png
 Description:
 Filesize:  35.15 KB
 Viewed:  11211 Time(s)

Status_Lan.png



_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Fri Aug 29, 2014 13:50    Post subject: Reply with quote
I updated to 24800M and it is exhibiting the same behavior as 24500M. Even if I put a space or two in the Client Lease Time boxes it appends the 'm' (for minutes) in the /tmp/dnsmasq.conf file and the internet connectivity works just fine. The space works for both 24500M and 24800M.

Here is an example of what works:
    Code:

    ...
    dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,m
    dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,m
    ...


HalfBit wrote:
I'm a little closer, now. I found a post in the big 251 page R7000 thread where someone mentioned they always did the static leases in the "Additional DNSMasq Options" box. They gave these example entries:
    Code:

    dhcp-range=192.168.168.100,192.168.168.150,255.255.255.0,infinite
    dhcp-host=00:19:C5:34:XX:XX,192.168.168.160,infinite

Last night I decided to look into the "infinite" portion of that and put "infinite" in the "Client lease time" box for each static lease I had in the webIF table on the Services>Services tab(s).

So the good news is it's working on 24500M. But there's still something wrong.

"ps | grep [d]nsmasq" output:
    Code:

    1108 root 796 S dnsmasq --conf-file=/tmp/dnsmasq.conf


"cat /tmp/dnsmasq.conf" output. The "infinite" client lease time becomes "infinitem":
    Code:

    user=root
    interface=br0,wl0.1
    resolv-file=/tmp/resolv.dnsmasq
    all-servers
    dhcp-leasefile=/tmp/dnsmasq.leases
    dhcp-lease-max=14
    dhcp-option=lan,3,192.168.1.1
    dhcp-option=wl0.1,3,192.168.10.1
    dhcp-authoritative
    dhcp-range=lan,192.168.1.150,192.168.1.159,255.255.255.0,60m
    dhcp-range=wl0.1,192.168.10.2,192.168.10.6,255.255.255.248,30m
    stop-dns-rebind
    strict-order
    dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv2,192.168.1.2,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,WRT54Gv8.2,192.168.1.3,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Printer,192.168.1.100,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,NAS,192.168.1.101,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wireless,192.168.1.102,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop1Wired,192.168.1.103,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wireless,192.168.1.104,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,Laptop2Wired,192.168.1.105,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,infinitem
    dhcp-host=XX:XX:XX:XX:XX:XX,CanonPS510XS,192.168.1.109,infinitem
    addn-hosts=/opt/hosts


Does anyone know why it is working this way? I've tried 1440 (default), 60, 0, and blank. None have worked, but for some reason "infinite" does.

If I clear the static lease table (nvram set static_lease="", and nvram set static_leasenum="0") and put the host entries in the "Additional DNSMasq Options" without the 'm' like the following, it doesn't work again:
    Code:

    ...
    dhcp-host=XX:XX:XX:XX:XX:XX,WorkLaptop,192.168.1.106,infinite
    dhcp-host=XX:XX:XX:XX:XX:XX,iPodTouch3G,192.168.1.108,infinite
    ...


Also, when it is working with "infinitem" the Status>LAN or Status>Sys-Info tab(s) are not showing the lease unless the client is active, and the hostnames for at least one client shows "infinitem" (see screenshot attached). Any ideas as to why it is exhibiting this behavior?

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
HalfBit
DD-WRT Guru


Joined: 04 Sep 2009
Posts: 776
Location: AR, USA

PostPosted: Sat Aug 30, 2014 19:07    Post subject: Reply with quote
For those still watching this thread with baited breath, I found the problem!

I found a clue with this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=674705. They had a problem because they had a '+' in one of their hostnames.

This got me thinking and I realized that I was using a '.' in one of my hostnames--"WRT54Gv8.2". Once I replaced the '.' everything has fired up perfectly. The hostnames display correctly in the Status>LAN and Status>Sys-Info tabs, and the lease shows static as it should, except for an iPod Touch which maxes out at 90 days. I'm chalking that up to Apple deciding they know better then their consumers.

I went through and installed 24345M NEWD, 24500M, 24800M, and 24865M and saved a setting script with the changes. 24865M was already working, but I changed the hostname there as well to keep the settings across the builds consistent.

I still am unable to get my wife's older laptop connect to 24865M, but I will post a new thread on that should I decide to pursue it. For now I am on 24800M.

Thanks again for the help along the way. I hope this thread helps the next person out!

_________________
R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x
https://pi-hole.net/
https://github.com/DNSCrypt/dnscrypt-proxy
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum