[clug] /etc/network/interfaces

Andrew Janke a.janke at gmail.com
Tue Nov 27 04:38:39 GMT 2007


> Just remember that if you don't tell the DHCP server to remove the IP
> from its pool it will eventually lease it to another machine and
> you'll end up with conflicting IPs which usually results in Bad

Sure,

In my case I segregate the IPs that are allowed for known and unknown
clients. I suspect that there are other ways of doing this, but I like
this way!

ie:

# /etc/dhcp3/dhcpd.conf

# I am the grand poo-bar (fear me)
authoritative;

# Where to put the noise
log-facility syslog;

# update the DNS?
ddns-update-style none;

# do nothing on this subnet
subnet X.X.X.0 netmask 255.255.255.0 { }

# local subnet
subnet 10.10.100.0 netmask 255.255.255.0 {

   default-lease-time           1200;
   max-lease-time               7200;

   option dhcp-max-message-size 2048;

   allow unknown-clients;
   range 10.10.100.200 10.10.100.230;


   # PXE FAI booters
   group {
      deny unknown-clients;
      boot-unknown-clients false;

      allow booting;

      use-host-decl-names   on;
      default-lease-time    86400;
      max-lease-time        604800;

      server-name           fatcon;
      next-server           fatcon;
      filename              "fai/pxelinux.0";

      # worker bees
      host bill     { hardware ethernet XXXX; fixed-address 10.10.100.30;  }
      host ben      { hardware ethernet XXXX; fixed-address 10.10.100.31;  }
      host donald   { hardware ethernet XXXX; fixed-address 10.10.100.32;  }
      host douglas  { hardware ethernet XXXX; fixed-address 10.10.100.33;  }
      }
   }



a


More information about the linux mailing list