[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] DHCPD.Conf



On 28 May 2002, Paul Nelson wrote:

> Go ahead and send us a copy of your current dhcpd.conf file so we can
> take a look at it.
> 
> First one to spot the error and post it to the list gets a free set of
> K12LTSP 2.1.0 when it comes out later this week.

Sight unseen from the description, it is a missing assignment 
pool stanza, within the interface's IP range, probably arising 
from being outside the scope of a 'subnet' stanza.

> >  When I try to specify a fixed IP address using the
> > hosts lines it refuses to co-operate. 

These are properly of the form: 

  group {
#
#       Fixed IP for a known host
      host ws6 {
        hardware ethernet 00:00:B4:52:2C:93;
        fixed-address 172.16.32.6;
        default-lease-time 3600;
        max-lease-time 12000;
      }
  }
#


> > I have checked the dhcpd.leases
> > file and it is empty which seem strange.  If I hash out all the dynamic
> > allocation lines in the dchpd.conf and watch a client log in using tail
> > -f /var/log/messages I can see the dchdp server receiving the
> > DHCPDISCOVER message from the client with the same mMAC address as I
> > have specified in the dhcpd.conf but getting the message no free leases
> > on subnet workstations. 

This implies a fault in the dynamic stanza as well;  getting
curly braces properly balanced is the bane of my existence;  
Here is a non-specific (dynamic) assignment stanza of the
proper form for my subnet:


  subnet 172.16.32.0 netmask 255.255.255.0 {
#
#       bootp
    range dynamic-bootp 172.16.32.80 172.16.32.95;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
#       bootp clients get ten hours at a crack
        dynamic-bootp-lease-length 36000;
#
#       dhcp
    range 172.16.32.220 172.16.32.253;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
#
#       multiple routers possible
#
    option routers 172.16.32.2; # router being our router;
#
    default-lease-time 600;
    max-lease-time 7200;
  }

====================================================

Short form example, without comments:


[root clone inter-tel]# grep -v ^#  /usr/src/ORC/dhcpd.conf | grep -v ^$
server-identifier pokey.513erich.iwaynet.net;
option domain-name "513erich.iwaynet.net";
option subnet-mask 255.255.255.0;
option time-offset 300;
option domain-name-servers 172.16.32.3 , 172.16.32.10;
default-lease-time 600;
max-lease-time 14400;
  group {
      host ws6 {
        hardware ethernet 00:00:B4:52:2C:93;
        fixed-address 172.16.32.6;
        default-lease-time 3600;
        max-lease-time 12000;
      }
  }
  subnet 172.16.32.0 netmask 255.255.255.0 {
    range dynamic-bootp 172.16.32.80 172.16.32.95;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
        dynamic-bootp-lease-length 36000;
    range 172.16.32.220 172.16.32.253;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
    option routers 172.16.32.2; # router being our router;
    default-lease-time 600;
    max-lease-time 7200;
  }
[root clone inter-tel]#

==================

commented version for my old office:

[root clone inter-tel]# cat /usr/src/ORC/dhcpd.conf
#
#        /etc/dhcpd.conf
#
#       hand built from   man 5 dhcpd.conf
#
#       Copyright (c) 1998 Owl River Company
#       info owlriver com
#
#       rev 980615 RPH
#
######################################################3
#
#       supports DHCP, BOOTP, and statics
#
######################################################3
#
#
#       This DHCP server's information
#
server-identifier pokey.513erich.iwaynet.net;
#
option domain-name "513erich.iwaynet.net";
option subnet-mask 255.255.255.0;
#
option time-offset 300;
#
option domain-name-servers 172.16.32.3 , 172.16.32.10;
#
default-lease-time 600;
max-lease-time 14400;
#
#  sample to try:
#
  group {
#
#       Fixed IP for a known host
      host ws6 {
        hardware ethernet 00:00:B4:52:2C:93;
        fixed-address 172.16.32.6;
        default-lease-time 3600;
        max-lease-time 12000;
      }
  }
#
# nt.513erich.iwaynet.net (172.16.32.97) at 00:80:5F:4B:D8:45
# router.513erich.iwaynet.net (172.16.32.2) at 00:40:05:2D:41:48
# copper.513erich.iwaynet.net (172.16.32.3) at 00:80:AD:B1:07:5E
# ws6.513erich.iwaynet.net (172.16.32.6) at 00:00:B4:52:2C:93
#
#
  subnet 172.16.32.0 netmask 255.255.255.0 {
#
#       bootp
    range dynamic-bootp 172.16.32.80 172.16.32.95;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
#       bootp clients get ten hours at a crack
        dynamic-bootp-lease-length 36000;
#
#       dhcp
    range 172.16.32.220 172.16.32.253;
    option broadcast-address 172.16.32.255;
    option subnet-mask 255.255.255.0;
#
#       multiple routers possible
#
    option routers 172.16.32.2; # router being our router;
#
    default-lease-time 600;
    max-lease-time 7200;
  }

#
#   end of shared-network 513ERICH
#
# EOF
#





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]