On Wed, Apr 07, 2004 at 11:57:01AM +0930, Jonathan Soong wrote:
> I want to do this without assigning static-ip's to each of these
> machines (i.e. i really want a 'pool' of MAC addresses which can get an
> IP, this means that if someone wants to bring a laptop in they will have
> to 'register' their MAC address into our 'pool').
I believe that something like this should work for the ISC dhcpd (version 2,
anyway):
deny unknown-clients;
host x1 { hardware ethernet de:ad:be:ef:f0:0f; }
host x2 { hardware ethernet f0:0f:de:ad:be:ef; }
and so on.
The important thing is the "deny unknown-clients;" line. That changes the
server from the default mode where it's a bit free and easy with it's
addresses. You then have to explicitly tell the server about each of the
machines you want to have an address. It's not greatly different to setting
fixed-address on a specified host, but since there's no address fixed, the
host will be given whatever's available.
Note: this is taken entirely from the dhcpd.conf(5) man page. I haven't
tried this myself, so if it breaks something you get to keep both pieces.
- Matt
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html