Exclude one MAC Addrr from dhcp range

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Mar 6 19:02:17 UTC 2009


Jorge Bastos wrote:

>  > Firstly, can you clarify what exactly you want to achieve ? Do you want
>>  to :
>>
>>  a) Deny requests from those devices
>>  b) Given them an address elsewhere in the subnet
>>  c) something else
>
>a), deny requests and ignore those MAC's.
>
>
>>  host bad-device-1 {
>>     hardware ethernet aa:bb:cc:dd:ee:ff ;
>>     fixed-address a.b.c.d ;
>>  }
>
>This will be my option correct?
>But with something to classify it as denyable, no?

No, what you want is the other host statement :

host bad-device-1 {
   hardware ethernet aa:bb:cc:dd:ee:ff ;
   deny booting ;
}

This says that if a device with this MAC address asks for a lease, 
deny it. The server will simply ignore the device - but log the 
request.

If you don't want it to appear in the logs, then replace "deny" with "ignore".

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list