So, the same machine, with the same MAC address, seems to be talking to
the dnsmasq DHCP server from (at least) three different subnets
more-or-less simultaneously. This is not good, as the DHCP protocol (for
IPv4, at least) assumes each interface will get _one_ address. Dnsmasq
is chasing its tail, giving the machine one address, then abandoning
that and giving it another, and so on.
The APs have interfaces on multiple VLANS? If so you need to do one of
two things
1) Get them to use different MAC addresses on each distinct VLAN,
2) Get them to use DHCP client-IDs and ensure that _those_ are distinct.
As a unique identifier, client-ids override MAC addresses, so you should
be OK leaving the interfaces with a single MAC address if you take the
client-id route.
Most DHCP clients have a way to configure which client-id they should use.
Cheers,
Simon.
On 03/03/14 15:46, David Joslin wrote:
Cheers Simon
Here's the output of dnsmasq with log-dhcp set. It shows the requests
from one particular access point (Room4UAP) over about 3 or 4 minutes.
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: started, version
2.69test8-78-g6e0290a cachesize 1500
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: compile time options: IPv6
GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP
no-conntrack ipset Tomato-helper auth no-DNSSEC
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq[9848]: warning:
interface tap21 does not currently exist
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: asynchronous logging enabled, queue
limit is 5 messages
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: DHCP, IP range 10.10.99.101 --
10.10.99.200, lease time 1d
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: DHCP, IP range 10.10.70.101 --
10.10.70.200, lease time 1d
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: DHCP, IP range 10.10.30.101 --
10.10.30.200, lease time 1d
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: DHCP, IP range 10.10.20.101 --
10.10.20.200, lease time 1d
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: DHCP, IP range 10.10.10.151 --
10.10.10.200, lease time 1d
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: using local addresses only for
domain office.nkcc.org.uk http://office.nkcc.org.uk/
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: reading /etc/resolv.dnsmasq
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: using local addresses only for
domain office.nkcc.org.uk http://office.nkcc.org.uk/
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: using nameserver 208.67.222.222#53
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: using nameserver 208.67.220.220#53
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: read /etc/hosts - 5 addresses
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq[9848]: read /etc/dnsmasq/hosts/hosts - 41
addresses
Mar 3 13:39:24 eastgaterouter daemon.info
http://daemon.info/ dnsmasq-dhcp[9848]: read /etc/dnsmasq/dhcp/dhcp-hosts
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name Room5UAP.office.nkcc.org.uk
http://room5uap.office.nkcc.org.uk/ to the DHCP lease of 10.10.10.180
because the name exists in /etc/dnsmasq/hosts/hosts with address 10.10.99.23
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name Room5UAP to the DHCP lease of 10.10.10.180 because the name
exists in /etc/dnsmasq/hosts/hosts with address 10.10.99.23
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name ManagementSuiteUAP.office.nkcc.org.uk
http://managementsuiteuap.office.nkcc.org.uk/ to the DHCP lease of
10.10.30.195 because the name exists in /etc/dnsmasq/hosts/hosts with
address 10.10.99.21
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name ManagementSuiteUAP to the DHCP lease of 10.10.30.195 because
the name exists in /etc/dnsmasq/hosts/hosts with address 10.10.99.21
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name AuditoriumCentreWestUAPAC.office.nkcc.org.uk
http://auditoriumcentrewestuapac.office.nkcc.org.uk/ to the DHCP lease
of 10.10.10.162 because the name exists in /etc/dnsmasq/hosts/hosts with
address 10.10.99.24
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name AuditoriumCentreWestUAPAC to the DHCP lease of 10.10.10.162
because the name exists in /etc/dnsmasq/hosts/hosts with address 10.10.99.24
Mar 3 13:39:24 eastgaterouter daemon.warn dnsmasq-dhcp[9848]: not
giving name Room4UAP.office.nkcc.org.uk