assuming something wrong with my syntax.. as I'm getting unexpected results..

tl;dr:
(if a host on eth0.42 is unknown I would like to not offer them an IP)
(looking to have a !know option for some vlans but not all)

domain=dyn.dom.v42,10.120.48.0/24,local
dhcp-range=v42,10.120.48.100,10.120.48.200,255.255.255.0,4h
dhcp-option=v42,option:router,10.120.48.1
dhcp-option=v42,option:domain-name,dyn.dom.v42
dhcp-option=v42,option:dns-server,10.20.0.254

I have an eth0.42 vlan configured with an ip in the 10.120.48.0/24
range (assuming this is how it knows where to route the request..)

I have set:

bind-interfaces
interface=eth0.42
log-dhcp

with the above everything seems to work and I can see tags

a host on vlan42 asks for an ip and gets one in the range 48.100-48.200
(tags: v42, eth0.42)

replacing v42 with tag=v42 gives a 'no address available' error
message to all hosts on vlan42
(no tags)

even if I define them with dhcp-host

replacing v42 with set=v42 seems to make no difference, but it does
allow the host to get an ip
(tags: v42, eth0.42, known)

set=v42 also gets the known tag to show if the host is defined with dhcp-host

dhcp-ignore=set:v42,tag:!known

or

dhcp-ignore=tag:v42,tag:!known

does not seem to work like I would like to use it..

setting dhcp-ignore=tag:!known does work (globally across all vlans)
but the host has multiple vlans.. (v100, v200, v300, ex)

I would like v42, v100, v200 to respect !known but v300 to give ips to
unknown hosts..

I think I'm missing something simple..

Can someone offer some help?

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to