DHCPD config

Bevan C. Bennett bevan at fulcrummicro.com
Thu Feb 5 17:56:41 UTC 2004


Terry Polzin wrote:
> Is this config file correct?  
> All I want to do is assign an ip address to a bootp print server.
> 
> *******************************************************************************************
> default-lease-time 600;
> max-lease-time 7200;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.69.255;
> allow bootp;
> ddns-update-style ad-hoc;
> 
> subnet 192.168.69.0 netmask 255.255.255.0 {
>         range 192.168.69.20 192.168.69.21;
> }

Won't this configure the server to assign 192.168.69.20 and 
192.168.69.21 to the first two dhcp clients that ask?
An unconfigured network switch might steal your print server's IP.

Wouldn't this be more correct?

subnet 192.168.69.0 netmask 255.255.255.0 {
   host print-server {
      hardware ethernet 00:40:c8:04:03:db;
      fixed-address 192.168.69.20;
      default-lease-time -1;
   }
}

NOTE: no range statement == no dynamically assigned addresses (in this 
case a good thing).





More information about the users mailing list