Rép. : Re: How to limit IP per MAC

Serveur-Faucon Surveillance SrvFaucon at cslaval.qc.ca
Wed Oct 4 15:56:13 UTC 2006


I'll look in the spawn direction. Thanks for the infos.
 

---------------------------------------------------
Alexandre Racine - Gardien Virtuel - Sécurité Informatique www.gardienvirtuel.com
Montréal, Québec, Canada

>>> dhcp1 at thehobsons.co.uk 2006-10-03 15:17:49 >>>
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