*** From dhcp-server -- To unsubscribe, see the end of this message. ***

I run two dhcp servers on the same machine (Redhat 5.2), one hands out a
crippled addresses (can't get out of the network, used for registering
their connection), and the other hands out functioning addresses only to
registered users.

The crippled server gives out a 5 minute lease to anyone who is not
registered, it just gets them to our registration server. Once they
register, they are put into the registered conf file, and then denied from
the crippled server, so they don't get a crippled ip again. The dhcp
servers are restarted every 5 minutes only if their conf files have been
modified.

>So I guess my question is, with a host defined
>in the dhcpd.conf file has deny booting, and there is still a lease for
>that host in the dhcpd.leases file, when the host tries to renew, will
>it be denied from that server or will it be allowed to renew that
>address?

It won't get an address if you have the "deny booting" option in the server
that you don't want them to get addresses from again, in our case the
crippled server. It requests the same address, but the crippled server now
sends a nak and it does a new dhcpdiscover finding the registered server
which will now give it an address.

This has worked flawlessly since last August, we have about 1300 users, the
server basically has no load on it. Restarting the dhcp servers is a
nominal hit.

Randy

>    *** From dhcp-server -- To unsubscribe, see the end of this message. ***
>
>Well, what I would like to do is have the lease be given out for 15
>minutes, the student then has enough time to sign up for the "real" ip
>address. Currently the addresses given out by the Registration DHCP
>server are blocked at the routers from leaving the campus. The problem I
>am having is I have to rebuild the conf file on the Registration server
>every 5 minutes to make sure there is a deny booting identifier in there
>for every host I don't want to get one of the Registration IP addresses.
>Currently the file has 3300+ hosts in it. By next fall I forsee it
>increaseing to over 6000. So I guess my question is, with a host defined
>in the dhcpd.conf file has deny booting, and there is still a lease for
>that host in the dhcpd.leases file, when the host tries to renew, will
>it be denied from that server or will it be allowed to renew that
>address?
>
>The second question I have, is there a way to change the permissions on
>the lease file? Everytime the dhcp server is restarted the permissions
>are reset to 600. But I need them to be 644 so the file can be parsed
>for our registration system. I then have to do a chmod 644 to the file
>so the program will work. The weird part is this machine is the exact
>same configuration as the production DHCP server. And when ever the dhcp
>server is restarted on the production DHCP server, the lease file
>retains the 644 permissions.
>
>Both machines are Sun UltraSparcs running Solaris 2.6 with
>dhcp-2.0b1pl6.
>
>"Ralph E. Droms" wrote:
>>
>> On Fri, 19 Mar 1999 [EMAIL PROTECTED] wrote:
>> > Why would you want to do this?
>> >
>> > On Wed, 17 Mar 1999, Jason Grove wrote:
>> > > I was wondering if there is a way to deny the renewal of a lease by a
>> > > client?
>>
>> In the case of a computer owned by a student at a university, you might
>> want to allocate a lease for the semester, but force the student's
>> comptuer to reacquire its address at the beginning of the next semester.
>> this strategy would guarantee reclaiming all addresses left unused by
>> students - for example, students who didn't return for the following
>> semester.
>>
>> - Ralph Droms
>
>--
>Jason Grove                       | The usefulness of any meeting
>Programmers Asst., Unix Sys Admin  | is in inverse proportion
>P:304.293.4545  F:304.293.2112     | to the attendance.
>[EMAIL PROTECTED]             |
>http://www.hrl.wvu.edu             |
>
>
>------------------------------------------------------------------------------
>To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
>If you are without web access, or if you are having trouble with the web page,
>please send mail to [EMAIL PROTECTED]   Please try to use the web
>page first - it will take a long time for your request to be processed by
>hand.
>------------------------------------------------------------------------------


---
Randy Kochis
[EMAIL PROTECTED]
HRLO Computer Coordinator
(619) 594-4607 




------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.
------------------------------------------------------------------------------

Reply via email to