How to limit IP per MAC

Simon Hobson dhcp1 at thehobsons.co.uk
Tue Oct 3 19:17:49 UTC 2006


Serveur-Faucon Surveillance wrote:

>Very rarely, twice in my admin life actually 
>(for 8 years), some computer of service eat away 
>my IP address.
>
>What happen is that he ask for a IP address. So 
>DISCOVER, INFORM and ACK. After that he does the 
>same thing and get another IP address, rince and 
>repeat.
>
>Is there any way to limit the number of active IP address per MAC address?

Probably the easiest way would be with a spawning 
subclass. From man dhcpd.conf :

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
So you could probably do something like :

class "limited" {
   spawn with option hardware ;
   lease limit 3;
}

to limit any MAC address to 3 active leases at any time.


More information about the dhcp-users mailing list