[Dnsmasq-discuss] dnsmasq with hostapd generated vlans?

Frank Rizzo thefrankrizzo at hotmail.com
Sat Oct 17 17:06:22 BST 2015


Hey guys.

I'm using hostap on my server to make it an access point.  I have all that  
up and working, but the connection phase from my tablet hangs at  
"Obtaining IP address...".

I have hostap building 3 vlans, (wlan0.100, wlan0.200, and wlan0.300).

I've used the error messages from dnsmasq to point me in the right  
direction WRT getting the interfaces set up, but now I've reached the  
point where I no longer get any error messages, and it just doesn't work.   
My config is simple:

interface=wlan0.100
dhcp-range=interface:wlan0.100,192.168.2.2,192.168.2.254,255.255.255.0,12h
interface=wlan0.200
dhcp-range=interface:wlan0.200,192.168.3.2,192.168.3.254,255.255.255.0,12h
interface=wlan0.300
dhcp-range=interface:wlan0.300,192.168.4.2,192.168.4.254,255.255.255.0,12h

When I launch it, I get the following:

# dnsmasq -qd
dnsmasq: started, version 2.68 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6  
no-Lua TFTP conntrack ipset auth
dnsmasq: warning: interface wlan0.300 does not currently exist
dnsmasq: warning: interface wlan0.200 does not currently exist
dnsmasq-dhcp: DHCP, IP range 192.168.4.2 -- 192.168.4.254, lease time 12h
dnsmasq-dhcp: DHCP, IP range 192.168.3.2 -- 192.168.3.254, lease time 12h
dnsmasq-dhcp: DHCP, IP range 192.168.2.2 -- 192.168.2.254, lease time 12h
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 192.168.1.1#53
dnsmasq: read /etc/hosts - 7 addresses


YES, I know that .200, and .300 aren't configured.  I'm trying to get  
something on .100 to work first.  Kinda like the KISS principle.

Do you see anything obviously wrong with this?

Any help you can provide would be greatly appreciated!

-Frank



More information about the Dnsmasq-discuss mailing list