[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 1, 2, 3  Next
Author Message
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 1:41    Post subject: [Solved] R7000 Guest Wifi Setup -- What am I doing wrong?? Reply with quote
I am not able to get an IP when I unbridge the guest wifi. Here are the screen shots of the virtual interface, the physical interface, and the DHCPd info.

Do I need to do something with the bridging? I haven't read anywhere that I do. I followed Kong's guide and it's not working.

Can anyone tell me what I am missing??



pif.PNG
 Description:
 Filesize:  30.42 KB
 Viewed:  14224 Time(s)

pif.PNG



vif.PNG
 Description:
 Filesize:  26.93 KB
 Viewed:  14224 Time(s)

vif.PNG



dhcpd.PNG
 Description:
 Filesize:  12.32 KB
 Viewed:  14224 Time(s)

dhcpd.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


Last edited by HalfBit on Sat Aug 30, 2014 19:08; edited 1 time in total
Sponsor
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 1:47    Post subject: Reply with quote
Here is the network setup info in case the use DNSMasq for DHCP has anything to do with it...


ns.PNG
 Description:
 Filesize:  17.3 KB
 Viewed:  14225 Time(s)

ns.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 3:20    Post subject: Reply with quote
Try turning on dnsmasq for dns and dhcp. Then disable ap isolation as a start.

I run ap isolation on a couple of r7000s running older builds, have not tried it on a musl build. Go step by step.

If there are reasons you don't want dnsmasq on by default then you may have to build your own dnsmasq.conf and start it up

Is dnsmasq running when you check ps

What is /tmp/dnsmasq.conf
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 3:38    Post subject: Reply with quote
So if I check Use DNSMasq for DHCP, I lose internet connectivity from my laptop on wireless. Use DNSMasq for DNS works fine though.

Still no IP being issued on the VAP, any other ideas?

_________________
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 3:46    Post subject: Reply with quote
HalfBit wrote:
So if I check Use DNSMasq for DHCP, I lose internet connectivity from my laptop on wireless. Use DNSMasq for DNS works fine though.

Still no IP being issued on the VAP, any other ideas?



From CLI

cat /tmp/dnsmasq.conf
cat /tmp/dnsmasq.resolv

*** edit I can guarantee one thing, if dnsmasq does not act as a dhcp server on vap, no address will be issued.

Are you using another device as a dhcp server on your lan?

From CLI

ps

Show me dnsmasq is running and what config it is loading
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 5:32    Post subject: Reply with quote
I am using only the R7000 as DHCP for the LAN.

Output from "cat /tmp/dnsmasq.conf":
user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
stop-dns-rebind
strict-order

Output from "cat /tmp/dnsmasq.resolv":
cat: can't open '/tmp/dnsmasq.resolv': No such file or directory

I did not see DNSMasq running when I ran the "ps" command.

Also, I am able to get the guest wifi working as long as I don't set any static IP addresses while having the "Use DNSMasq for DHCP" box checked. If I have static IPs and uncheck the "Use DNSMasq for DHCP" box, my internet connection works, but guest wifi does not obtain an IP.

So: Static IPs = "Use DNSMasq for DHCP" box unchecked (which in turn unchecks "DHCP-Authoritative") = no IP obtained on guest wifi
No static IPs = "Use DNSMasq for DHCP" box checked = guest wifi gives out IPs correctly but no internet on main WLAN

Is this normal 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
JAMESMTL
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 6:10    Post subject: Reply with quote
HalfBit wrote:
I am using only the R7000 as DHCP for the LAN.

Output from "cat /tmp/dnsmasq.conf":
user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
stop-dns-rebind
strict-order

Output from "cat /tmp/dnsmasq.resolv":
cat: can't open '/tmp/dnsmasq.resolv': No such file or directory

I did not see DNSMasq running when I ran the "ps" command.

Also, I am able to get the guest wifi working as long as I don't set any static IP addresses while having the "Use DNSMasq for DHCP" box checked. If I have static IPs and uncheck the "Use DNSMasq for DHCP" box, my internet connection works, but guest wifi does not obtain an IP.

So: Static IPs = "Use DNSMasq for DHCP" box unchecked (which in turn unchecks "DHCP-Authoritative") = no IP obtained on guest wifi
No static IPs = "Use DNSMasq for DHCP" box checked = guest wifi gives out IPs correctly but no internet on main WLAN

Is this normal behavior?


First off I reversed file. It should have resolv.dnsmasq

No it's not normal.

First off if you run ps and you can't see dnsmasq then I can't see how your getting dhcp via the r7000. You don't have another ap on the network?

Your loosing ip sorta sounds like it's either conflicting with another device or there are not enough addresses. Try setting # addresses to like 100

You should be seeing entries like these when you enable dhcp

user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
dhcp-leasefile=/tmp/dnsmasq.leases
dhcp-lease-max=198
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.2,192.168.1.99,255.255.255.0,60m
dhcp-range=wl0.1,192.168.10.100,192.168.10.150,255.255.255.0,60m

Above are some of my settings
JAMESMTL
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 6:18    Post subject: Reply with quote
When you static you mean you are assigning an ip directly on the device?
NiTrus
DD-WRT User


Joined: 25 Dec 2010
Posts: 295
Location: Twin Cities, MN

PostPosted: Fri Aug 22, 2014 12:01    Post subject: Re: R7000 Guest Wifi Setup -- What am I doing wrong?? Reply with quote
HalfBit wrote:
I am not able to get an IP when I unbridge the guest wifi. Here are the screen shots of the virtual interface, the physical interface, and the DHCPd info.

Do I need to do something with the bridging? I haven't read anywhere that I do. I followed Kong's guide and it's not working.

Can anyone tell me what I am missing??


according to Kongs guide, AP Isolation needs to be disabled on wl0.1..it is in my guest setup, and it works..

_________________
NETGEAR R9000 | RT | 40134
NETGEAR R7800 | AP | 40134

HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 13:54    Post subject: Reply with quote
JAMESMTL wrote:
When you static you mean you are assigning an ip directly on the device?

No, I'm managing all IPs on the router under the Services>Services tab(s)--not on the individual devices. I could assign the IP on the devices, but I would rather have it centralized on the router.

_________________
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 13:59    Post subject: Re: R7000 Guest Wifi Setup -- What am I doing wrong?? Reply with quote
NiTrus wrote:
HalfBit wrote:
I am not able to get an IP when I unbridge the guest wifi. Here are the screen shots of the virtual interface, the physical interface, and the DHCPd info.

Do I need to do something with the bridging? I haven't read anywhere that I do. I followed Kong's guide and it's not working.

Can anyone tell me what I am missing??


according to Kongs guide, AP Isolation needs to be disabled on wl0.1..it is in my guest setup, and it works..

I've tried both enabled and disabled. I will leave it disabled from now on. Thanks for the confirmation.

_________________
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
alllexx
DD-WRT Novice


Joined: 03 Aug 2014
Posts: 41
Location: Kyiv, Ukraine

PostPosted: Fri Aug 22, 2014 14:18    Post subject: Reply with quote
Well, according to dd-wrt help,
Quote:
To use multiple DHCPD, enable DNSMasq as a DHCP server.
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 15:40    Post subject: Reply with quote
alllexx wrote:
Well, according to dd-wrt help,
Quote:
To use multiple DHCPD, enable DNSMasq as a DHCP server.

Yes, and it works as long as I don't have ANY static IPs set. Once I enable DNSMasq as a DHCP server and set any static IPs (even for APs not in use, the wireless printer and a wired NAS) the laptops, iPod Touch, and Kindle Fire lose internet connectivity.

If I disable DNSMasq as a DHCP server with static IPs set, internet connectivity works for the main WLAN, but IPs are not obtained on Guest wifi (understandably so with no DHCP server for that network). Guest wifi still doesn't work even if I manually set the IP on the device I am trying to connect to it.

Keep the ideas coming guys!

_________________
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 16:24    Post subject: Reply with quote
HalfBit wrote:
alllexx wrote:
Well, according to dd-wrt help,
Quote:
To use multiple DHCPD, enable DNSMasq as a DHCP server.

Yes, and it works as long as I don't have ANY static IPs set. Once I enable DNSMasq as a DHCP server and set any static IPs (even for APs not in use, the wireless printer and a wired NAS) the laptops, iPod Touch, and Kindle Fire lose internet connectivity.

If I disable DNSMasq as a DHCP server with static IPs set, internet connectivity works for the main WLAN, but IPs are not obtained on Guest wifi (understandably so with no DHCP server for that network). Guest wifi still doesn't work even if I manually set the IP on the device I am trying to connect to it.

Keep the ideas coming guys!


So your saying with dnsmasq for dhcp disabled and you run ps there is no instance of dnsmasq. Yet you say that your laptop still gets an ip assigned. Can you provide a copy of the output from ps.

You also mention APs not in use. Are you 100% sure that none of those APs is running a dhcp server?

As dnsmasq is the dhcp server and it's not running, the IP has to be coming from somewhere.
HalfBit
DD-WRT Guru


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

PostPosted: Fri Aug 22, 2014 16:59    Post subject: Reply with quote
JAMESMTL wrote:
So your saying with dnsmasq for dhcp disabled and you run ps there is no instance of dnsmasq. Yet you say that your laptop still gets an ip assigned. Can you provide a copy of the output from ps.

You also mention APs not in use. Are you 100% sure that none of those APs is running a dhcp server?

As dnsmasq is the dhcp server and it's not running, the IP has to be coming from somewhere.

The original output from a day or so ago did not have anything with DNSMasq. I will provide the output from today with the "Use DNSMasq for DHCP" and consequently the "Authoritative-DHCP" boxes unchecked below.

The APs I mentioned are two wrt54g routers (v2 and v8.2) that are currently unplugged and in a drawer. I have static IPs 192.168.1.2 and 192.168.1.3 assigned for them should they be turned on.

Above the "Use DNSMasq for DHCP/DNS" and "Authoritative-DHCP" checkboxes is where the DHCP server is enabled with the specified start address and range (192.168.1.150-159, for a maximum of 10 devices). The static IPs are set to 192.168.1.2-3 and 192.168.1.100-109 (11 devices statically defined in these ranges).

Here is the "ps" output:
Code:
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       708 S    /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules
  627 root       744 S    /sbin/mstpd
  663 root      1120 S    watchdog
  670 root         0 SW   [khubd]
  710 root         0 SW   [scsi_eh_0]
  713 root         0 SW   [usb-storage]
  721 root         0 SW   [kworker/u4:2]
  722 root         0 SW<  [kworker/1:1H]
 1081 root         0 SW<  [kworker/0:1H]
 1257 root      1076 S    resetbutton
 1273 root      1384 S    privoxy /tmp/privoxy.conf
 2748 root      1112 S    telnetd
 3438 root      1032 S    ttraff
 3597 root       676 S    cron
 3759 root      1032 S    process_monitor
 3762 root      1072 S    inadyn -u DDnsUserid -p DDnsUseridPwd --input_file /tmp/
 4116 root      1076 S    wland
 4117 root      1112 S    udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcp
10804 root      1220 S    nas -P /tmp/nas.wl0lan.pid -H 34954 -l br0 -i eth1 -
10810 root      1220 S    nas -P /tmp/nas.wl0.1lan.pid -H 34954 -l wl0.1 -i wl
10819 root       676 S    udhcpd /tmp/udhcpd.conf
10825 root       792 S    dnsmasq --conf-file=/tmp/dnsmasq.conf
10829 root      2648 S    httpd -p 80
10831 root      3672 R    httpd -S
18748 root      1112 S    sh -c alias ping='ping -c 3'; eval nf
18749 root      1112 R    ps
18752 root       964 R    /sbin/ledtool 1


And for good measure, the output of "cat /tmp/dnsmasq.conf":
Code:
user=root
interface=br0,wl0.1
resolv-file=/tmp/resolv.dnsmasq
all-servers
domain=ks.cox.net
stop-dns-rebind
strict-order
#addn-hosts=/opt/host


and the output of "cat /tmp/resolv.dnsmasq":
Code:
nameserver 208.67.222.222
nameserver 208.67.220.222
nameserver 208.67.220.220


For clarification, all of these outputs are with ONLY "Use DNSMasq for DNS" checked.

Thanks again for the continued questions, clarifications, confirmations, and suggestions!

_________________
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 1, 2, 3  Next Display posts from previous:    Page 1 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