change ip address every 6 hours

John Hascall john at iastate.edu
Wed Feb 15 12:26:55 UTC 2012


As others have mentioned, enforcing this will create one
giant mess and unhappy customers.  If I was this insane,
I would put all my client's mac addresses in one of
two sets using:

  class "screwed" { match hardware; }
  class "hosed"   { match hardware; }

  subclass "screwed" 01:dead:dead:0002;
    :
  subclass "screwed" 01:dead:dead:eeee;
  subclass "hosed"   01:caca:caca:0002;
    :
  subclass "hosed"   01:caca:caca:eeee;

  subnet 1.2.0.0 netmask 255.255.0.0 {
       pool {
          range 1.2.0.0 1.2.127.254;
          allow members of "screwed";                <=== this one
       }
       pool {
          range 1.2.128.0 1.2.255.254;
          allow members of "hosed";                  <=== and this one
       }
  }

and I would have a second config file in which the two marked lines were
swapped.   Then every six hours you could stop dhcpd, switch config files,
restart and alert your help desk that angry calls are incoming...

If you are really set on modulating your customers' addresses
as much as possible, *without* making them hate you with the
fire of a thousand suns, what I would do is use as short a
lease time as you can get away with and then have a process
that scrubs *expired* leases from the lease file (thus
breaking the memory of which address they had last time).

This doesn't ensure an ip change, but anyone who is not
connected 24x7 will very likely see thier address change
each time they connect.

Best of luck with your job search,
John

-------------------------------------------------------------------------------
John Hascall, john at iastate.edu
Team Lead, NIADS (Network Infrastructure, Authentication & Directory Services)
IT Services, The Iowa State University of Science and Technology

> Hi all,
> 
> could you kindly share a sample of dhcpd.conf which changes randomly
> subscribers ip addresses every 6 hours ?
> 
> -- 
> Regards
> 
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 




More information about the dhcp-users mailing list