Simon Kelley escribió el 05/12/08 19:00: > Mariano Absatz wrote: >> >> How should I configure my dnsmasq to prevent unknown MACs from >> getting an IP in the "tagIKnowYou" range? > > You don't need to set your own tags at all, just use the "known" tag, > which will be set whenever a dhcp-host matches the MAC address. > > Then do > > dhcp-range=net:known,192.168.1.101,192.168.1.120,4h > dhcp-range=net:#known,192.168.1.161,192.168.1.174,4h > > That way, 192.168.1.101... will only be used when the MAC address is > known, and 192.168.1.161... will only be used when the MAC address is > not known. > > > It's important to understand the two uses of tags in dhcp-range > > dhcp-range=<tag>,...... > > will _set_ the tag if that range is used. > > dhcp-range=net:tag,....... > > will _use_ the range if the tag is set. Now I get it... thank you...
now, a couple of related questions... 1) does "dhcp-range" allow me to match more than one tag? or to match one (or more) and set another one? 2) when I write: ############# OUR PCs ############## dhcp-host=00:22:33:44:55:01,192.168.1.101,net:tagIKnowYou,mycompany-PC-01 dhcp-host=00:22:33:44:55:02,192.168.1.101,net:tagIKnowYou,mycompany-PC-02 dhcp-host=00:22:33:44:55:03,192.168.1.101,net:tagIKnowYou,mycompany-PC-03 I am *setting* (and not trying to */match/*) the tag "tagIKnowYou" for these hosts, am I? Thanx a lot, Simon, for your help, and for a truly amazing piece of software that let me finally get rid of ISC's awful servers... Regards. -- Mariano Absatz - "El Baby" el.b...@gmail.com www.clueless.com.ar -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- I am a Marxist--of the Groucho tendency. Anonymous, French slogan -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- * TagZilla 0.066 * http://tagzilla.mozdev.org