<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ps.com...
> Hi Folks, as part of an application I'm working on I want to manually
> manage client DHCP leases and never automatically give out a new lease.
> It should work something like this:
> 1- dhcp scope is created and active, but does not give out new leases.
> 2 - to connect to the network a new client registers on a website
> providing their pc name and MAC, this creates the lease (that's working
> already using win32 API).
> 3 - now the client connects to the this network and DHCP recognizes
> their MAC and hands out IP.
> 3 - lease automatically deletes itself when it expires or I will
> manually delete it??
>
> Does this sound feasible and does anybody know of a way to configure a
> DHCP scope or server in this manner (so it's active but doesn't
> automatically create new leases for clients)? Or do I have to mess
> with exclusions and static reservations?
Nearly anything is possible if you are a programmer and devote
the resources to solving the problem but you probably should
just write you own DHCP server (maybe starting from some
GPL source etc.).
What you are describing sounds like the registration methods
used in many hotels (etc) by companies like IBahn who provide
free or daily-rental (even many of the free ones use this method,
either because they are too lazy too turn it off after it was made
free, or because they really care about the "user agreement".)
So, given that something almost identical exists it can be done,
but I would probably not start by trying to hack the existing
Windows DHCP service but rather by writing my own.
--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]