[Dnsmasq-discuss] Missing something obvious #known
B. Cook
bcook at poughkeepsieschools.org
Mon Aug 4 13:43:22 BST 2008
On Aug 3, 2008, at 4:32 PM, Simon Kelley wrote:
> B. Cook wrote:
>> Hello All,
>> I thought all of this was working as it should.. but apparently it
>> is not..
>> from the dnsmasq.log:
>> Aug 1 11:42:56 dnsmasq[32635]: DHCPDISCOVER(em0) 00:0e:7f:3b:ba:2d
>> ignored
>> Aug 1 11:43:11 dnsmasq[32635]: DHCPDISCOVER(em0) 00:0e:7f:3b:ba:2d
>> ignored
>> Aug 1 11:43:14 dnsmasq[32635]: DHCPDISCOVER(em0) 00:0e:7f:3b:ba:2d
>> ignored
>> Aug 1 11:43:21 dnsmasq[32635]: DHCPDISCOVER(em0) 00:0e:7f:3b:ba:2d
>> ignored
>> and from the config:
>> 20 # 100 stuff
>> 21 dhcp-option=net:phsalt,option:router,10.20.100.1
>> 22 dhcp-range=phsalt,10.20.100.2,10.20.100.254,255.255.255.0,5m
>> 23 dhcp-ignore=net:phsalt,#known
>> 24
>> 25 dhcp-host=00:0e:7f:3b:ba:2d,10.20.100.3,net:phsalt # someprinter
>> 26 dhcp-host=00:30:6e:c6:13:e6,10.20.100.57,net:phsalt #
>> hplj1150_hs143
>> I have tried dhcp-ignore without the net: as well and it does not
>> seem to
>> cause an error either way..
>> I am trying to only let certain hosts end up in the 100.0/24..
>> Not sure what I am missing..
>> can anyone help?
>
> You don't need to use dhcp-ignore to achieve what you're trying to
> do, the "net:phsalt" in the dhcp-range is enough to ensure that the
> range only gets used for the hosts which set the phsalt tag.
>
> However, I'm not sure _why_ the configuration you have is behaving
> as it does. Please could you set --log-dhcp and send me the
> information that dnsmasq logs during these DHCP transactions?
>
> Cheers,
>
> Simon.
>
So you are saying I should be able to have a single dhcp-ignore=#known
and that would take care of it for all the subnets?
[/usr/local/etc/dnsmasq]# 25 > grep dhcp-range *
dnsmasq.cli.dhcp:dhcp-range=cli,10.20.18.2,10.20.19.254,255.255.254.0,4h
dnsmasq.kri.dhcp:dhcp-range=kri,10.20.4.2,10.20.5.254,255.255.254.0,4h
dnsmasq.phs.dhcp:dhcp-range=phs,10.20.0.17,10.20.1.254,255.255.254.0,4h
dnsmasq.phs.dhcp:dhcp-range=phsalt,
10.20.100.2,10.20.100.254,255.255.255.0,5m
dnsmasq.smi.dhcp:dhcp-range=smi,10.20.6.2,10.20.7.254,255.255.254.0,4h
dnsmasq.war.dhcp:dhcp-range=war,10.20.14.2,10.20.15.254,255.255.254.0,4h
[/usr/local/etc/dnsmasq]# 26 > grep \#known *
dnsmasq.cli.dhcp:dhcp-ignore=cli,#known
dnsmasq.kri.dhcp:dhcp-ignore=kri,#known
dnsmasq.phs.dhcp:dhcp-ignore=#known
dnsmasq.phs.dhcp:dhcp-ignore=phs,#known
dnsmasq.phs.dhcp:dhcp-ignore=phsalt,#known
dnsmasq.smi.dhcp:dhcp-ignore=smi,#known
dnsmasq.war.dhcp:dhcp-ignore=war,#known
More information about the Dnsmasq-discuss
mailing list