Re: [Dnsmasq-discuss] One lease or another
On Thu, Dec 31, 2009 at 5:07 PM, Santiago Zarate santi...@zarate.net.ve wrote: If i'm not mistaken... and according to the doc... this: dhcp-host=00:1f:3c:45:ca:c5,00:1e:ec:08:e7:b4,quaoar,192.168.1.140,infinite should do what you want, so, 2 macs (no idea if you could place more)... 1 ip... If I understand the docs correctly, that never denies a request from either computer, it just causes address conflicts. Use a pool to limit the number of simultaneous active leases. -- Santiago Zarate santi...@zarate.net.ve (+58) 4129864175 (+58) 4241073905 ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] One lease or another
On Wed, Dec 30, 2009 at 4:08 PM, Didster dids...@gmail.com wrote: Hi Probably an odd request this, but is there anyway of getting dnsmasq to give a lease to either one machine or another but not both? I'd agree with you about the odd part. So I have a small network of about 7 PCs on a static range. Each PC is listed with its MAC address in a dhcp-host directive. For 2 of the PCs, I only want one of the 2 machines to be able to get a lease at any one time. So if PC1 has a lease, PC2s request will fail and vise versa. Is there anyway that can be done? AFAIK, no, there is nothing that can force this behavior, it might be against an RFC even. I'm always curious when people ask questions like this, they are trying to do something interesting and unique, I'd really like to hear about why you want to do this. Rance
Re: [Dnsmasq-discuss] One lease or another
On Wed, Dec 30, 2009 at 4:08 PM, Didster dids...@gmail.com wrote: Hi Probably an odd request this, but is there anyway of getting dnsmasq to give a lease to either one machine or another but not both? So I have a small network of about 7 PCs on a static range. Each PC is listed with its MAC address in a dhcp-host directive. For 2 of the PCs, I only want one of the 2 machines to be able to get a lease at any one time. So if PC1 has a lease, PC2s request will fail and vise versa. Is there anyway that can be done? Use the dhcp-host lines to assign a tag to these two computers. Don't associate an IP address from dhcp-host. Make a dhcp-range which has a pool of only one address and matches that tag. Make sure that other dhcp-ranges do not match the tag (as in, #tag or use the static keyword to not create a pool at all). Done. If either PC has a valid lease, the pool is exhausted and the other PC will be refused. When the first lease is released or expires, the pool will have a free address again and the next request will be accepted. But please note most clients won't release their lease during shutdown without special configuration. Thanks Simon ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] One lease or another
If i'm not mistaken... and according to the doc... this: dhcp-host=00:1f:3c:45:ca:c5,00:1e:ec:08:e7:b4,quaoar,192.168.1.140,infinite should do what you want, so, 2 macs (no idea if you could place more)... 1 ip... -- Santiago Zarate santi...@zarate.net.ve (+58) 4129864175 (+58) 4241073905 signature.asc Description: This is a digitally signed message part.
[Dnsmasq-discuss] One lease or another
Hi Probably an odd request this, but is there anyway of getting dnsmasq to give a lease to either one machine or another but not both? So I have a small network of about 7 PCs on a static range. Each PC is listed with its MAC address in a dhcp-host directive. For 2 of the PCs, I only want one of the 2 machines to be able to get a lease at any one time. So if PC1 has a lease, PC2s request will fail and vise versa. Is there anyway that can be done? Thanks Simon