[Dnsmasq-discuss] VLANs and incorrect pools?

Chris Moates cmoates at gmail.com
Tue Feb 8 21:55:13 GMT 2011


On Tue, Feb 8, 2011 at 4:38 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
> Chris Moates wrote:
>> I'm struggling to figure out what I'm doing wrong in my configuration.
>> I've got three VLANs on two interfaces:
>>
>> eth1.10
>> eth1.11
>> eth0.12
>>
>> I'm running dnsmasq 2.55 and my dnsmasq.conf has the following:
>>
>> interface=eth1.10
>> interface=eth1.11
>> interface=eth0.12
>> dhcp-range=interface:eth1.10,10.8.16.220,10.8.16.240,12h
>> dhcp-range=interface:eth1.11,10.8.1.200,10.8.1.225,12h
>> dhcp-range=intreface:eth0.12,10.8.2.200,10.8.2.225,12h
>>
>> Interfaces are configured as such:
>>
>> eth1.10 inet addr:10.8.16.6  Bcast:10.8.16.255  Mask:255.255.255.0
>> eth1.11 inet addr:10.8.1.1  Bcast:10.8.1.255  Mask:255.255.255.0
>> eth0.12 inet addr:10.8.2.1  Bcast:10.8.2.255  Mask:255.255.255.0
>>
>> I have a client in VLAN 10 which when requested, gets an IP from VLAN 11:
>>
>> 2011-02-07T23:53:21.972965-05:00 kudzu dnsmasq-dhcp[14806]: 870443910
>> available DHCP range: 10.8.1.200 -- 10.8.1.225
>> 2011-02-07T23:53:21.973001-05:00 kudzu dnsmasq-dhcp[14806]: 870443910
>> available DHCP range: 10.8.16.220 -- 10.8.16.240
>> 2011-02-07T23:53:21.973016-05:00 kudzu dnsmasq-dhcp[14806]: 870443910
>> available DHCP range: 10.8.2.200 -- 10.8.2.225
>> 2011-02-07T23:53:21.973028-05:00 kudzu dnsmasq-dhcp[14806]: 870443910
>> DHCPDISCOVER(eth1.10) c0:cb:38:5c:ea:17
>> 2011-02-07T23:53:21.973040-05:00 kudzu dnsmasq-dhcp[14806]: 870443910
>> DHCPOFFER(eth1.10) 10.8.1.211 c0:cb:38:5c:ea:17
>>
>> Clearly dnsmasq logs that it came in on the proper VLAN, but it hands
>> out the wrong address. What am I missing?
>>
>
> Just for the avoidance of doubt, these are real, tagged, VLANS and not
> just IP aliases on the same physical interface?
>
> Cheers,
>
> Simon.
>

Yes, they are real tagged VLANs. Two VLANs coming in on one interface
(eth1) and one on the other (eth0).

Cheers,
Chris



More information about the Dnsmasq-discuss mailing list