What's new

YazFi Guest Wireless manual DHCP setup always getting br0 subnet

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

drewski22785

Occasional Visitor
This isn't exactly a YazFi issue, becasue YazFi works doing this. But since YazFi does this properly, I am hoping someone can tell me what I am missing in my steps.

I am at the moment just manually trying to setup DHCP for a guest wireless interface.

I enabled wl0.2, and via nvram set lanaccess=on and restarted wireless. I used ifconfig to set the ip on the interface 192.168.6.1/24. I added wl0.2 to the br0 even though it was already there. I have not tried removing it from br0 but didn't think that was necessary since they are a part of br0 with YazFi.

Here is my dnsmasq config (copy paste from YazFi:
Bash:
### Start of script-generated configuration for interface wl0.2 ###
interface=wl0.2
dhcp-range=wl0.2,192.168.6.10,192.168.6.254,255.255.255.0,86400s
ddhcp-option=wl0.2,3,192.168.6.1
dhcp-option=wl0.2,6,8.8.8.8,8.8.4.4
### End of script-generated configuration for interface wl0.2 ###

I restarted dnsmasq and the config shows up in the config file.

So far everything still goes to the br0 dhcp address, I have no idea what I am missing at this point. Anything obvious standout? Thanks!
 
Okay so I installed tcpdump and also removed the wl0.2 interface from br0 to be standalone and here are the results:

Bash:
admin@RT-AC3100-7180:/tmp/home/root# tcpdump -i wl0.2 port 67 or port 68 -e -n -
vv
tcpdump: listening on wl0.2, link-type EN10MB (Ethernet), capture size 262144 bytes
14:02:53.617787 76:ef:2d:56:aa:25 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 255, id 52048, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 76:ef:2d:56:aa:25, length 300, xid 0x99bb04cb, Flags [none] (0x0000)
          Client-Ethernet-Address 76:ef:2d:56:aa:25
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            Parameter-Request Option 55, length 8:
              Subnet-Mask, Classless-Static-Route, Default-Gateway, Domain-Name-Server
              Domain-Name, URL, Option 119, Option 252
            MSZ Option 57, length 2: 1500
            Client-ID Option 61, length 7: ether 76:ef:2d:56:aa:25
            Lease-Time Option 51, length 4: 7776000
14:02:53.618755 4c:ed:fb:ad:71:82 > 76:ef:2d:56:aa:25, ethertype IPv4 (0x0800), length 342: (tos 0x0, ttl 64, id 46682, offset 0, flags [none], proto UDP (17), length 328)
    192.168.6.3.67 > 192.168.6.240.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x99bb04cb, Flags [none] (0x0000)
          Your-IP 192.168.6.240
          Server-IP 192.168.6.3
          Client-Ethernet-Address 76:ef:2d:56:aa:25
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 192.168.6.3
            Lease-Time Option 51, length 4: 86400
            RN Option 58, length 4: 43200
            RB Option 59, length 4: 75600
            Subnet-Mask Option 1, length 4: 255.255.255.0
            BR Option 28, length 4: 192.168.6.255
            Domain-Name-Server Option 6, length 8: 8.8.8.8,8.8.4.4
            Default-Gateway Option 3, length 4: 192.168.6.1

So the request is there, but, for some reason my device is not picking up the ip. When wl0.2 is on br0 I get the br0 dhcp config without any issue. Any thoughts why my device isn't getting the dhcp request back even though your see it being sent?

I also see a proper arp entry so this should be working?

? (192.168.6.240) at 76:ef:2d:56:aa:25 [ether] on wl0.2
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top