Error THINCLIENTS: no free leases

Kjetil Kleven <[email protected]>
Newsgroups gmane.linux.skolelinux.bruker
Message-ID <1234884061.13396.18.camel@xubuntu-hplap>
Hei

Grue kommune har gått for Skolelinux. Vi skal være klare til drift den
24.
Mye har gått bra men noen problemer har det vært.

Vi har:
1. stk. Tjener
1. stk. ltsptjener
ca 20 tynneklienter koblet opp.
3 skrivere koblet opp.

Bruker SL 3.0
Arkitektur forslag fra Skolelinux dokumentasjon er fulgt etter beste
evne. 

Det som skaper mest problemer for oss er THINCLIENTS: no free leases.
Meldingen som dukker opp i syslog.

Symtomer: tynneklienter ser ikke ut til å få dhcp-adresse, og booter
derfor ikke.
Vi har sjekket rundt men finner ikke noen klare feilindikatorer.

Utrullingen som vi var så godt i gang med har dermed stoppet opp. 

Spørsmål: Med en tjener og en ltspterminalserver skal da dhcpd kjøres på
begge serverene?
Og hva skal legges hvor om vi skal kjøre begge.

Takker for oppmerksomheten og håper at noen har gode tips.

Mvh Kjetil Kleven
IKT konsulent Grue kommune.

her er dhcpd.conf fra tjener:
# Fra første install
#
# Debian Edu configuration masterfile
#
# Contents of this file should be in
#
#               /etc/dhcp3/dhcpd.conf
#
#
# DHCP configuration for Debian Edu server 
#
# $Id: dhcpd-debian-edu.conf 34207 2007-06-04 15:32:49Z pere $

# New option necessary for dhcp3
ddns-update-style         none;
#WPAD autoconfiguration
option wpad-url code 252 = text;
authoritative;

shared-network INTERNAL {

  default-lease-time 500; #30 m 
  max-lease-time     1800; #1 h

  option subnet-mask            255.255.254.0;
  option broadcast-address      10.0.3.255;
  option routers                gateway;
  option domain-name-servers    tjener;
  option domain-name            "intern";
  option ntp-servers            ntp;
  option wpad-url		"http://10.0.2.2/wpad.dat";

  # Log to the main server
  option log-servers            tjener;

#  If you use window clients, comment out the following lines.
#  Samba wins support has to be turned on (wins support = yes)
#
#  # WINS server
  option netbios-name-servers	tjener;
  option netbios-node-type		8;


  #Automatic assigning addresses to workstations
  #There is room for approxmatly 400 workstations.

  subnet 10.0.2.0 netmask 255.255.254.0 {
     range 10.0.2.100 10.0.3.242;
  }
    
  # Group defines thinclientservers
  # Add the hardware address to the thinclientserver here
  # To add an other thinclientserver, use "host ltspserver00" as an
example
  # fixed address area for thin client servers is 10.0.2.10 to 10.0.2.29

  group {
    host ltspserver00 {
       hardware ethernet 00:17:a4:f6:ac:19;
       fixed-address ltspserver00;
    }
    
    host ltspserver01 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address ltspserver01;
    }
    host ltspserver02 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address ltspserver02;
    }

    # 20 printers are defined as printer00 to printer19 on 10.0.2.30-49 
    # Provide a static address using dhcp by adding their MAC addresses
here
    
    host printer00 {
       hardware ethernet 00:04:00:2d:39:29;
       fixed-address printer00;
    }

    host printer01 {
       hardware ethernet 00:04:00:b9:46:ef;
       fixed-address printer01;
    }

    host printer02 {
       hardware ethernet 00:04:00:53:0b:25;
       fixed-address printer02;
    }

    host printer03 {
       hardware ethernet 00:04:00:cd:2b:c7;
       fixed-address printer03;
    }

    # 50 workstations are defined as static00 to static49 on
10.0.2.50-99 
    # Provide a static address using dhcp by adding their MAC addresses
here
    
    host static00 {
       hardware ethernet 00:1C:23:A2:93:67;
       fixed-address static00;
    }
    host static01 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static01;
    }
    host static02 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static02;
    }
    host static03 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static03;
    }
  }
}

shared-network THINCLIENTS {
  default-lease-time            432000;    # 5 d
  max-lease-time                432000;    # 5 d

  option subnet-mask            255.255.255.0;
  option broadcast-address      192.168.0.255;
  option routers                ltspserver;
  option domain-name-servers    tjener;
  option domain-name            "intern";
  option root-path              "/opt/ltsp/i386";

  option ntp-servers            ntp;

  # Log to the LTSP server, and let it forward the messages.
  option log-servers            ltspserver;

  filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";

  subnet 192.168.0.0 netmask 255.255.255.0 {
     # At least some thin clients will work out of the box, appearing as
     # ltsp200 to ltsp253.
     # We still recommend defining fixed mac adress to ip adress
mappings,
     # cf. examples and explanations below.
     range 192.168.0.200 192.168.0.253 ;
     # pxelinux in etch is very slow without this setting.
     next-server 192.168.0.254;
  }

  group {
    next-server 192.168.0.254;
    use-host-decl-names       on;
    option log-servers        ltspserver ;

##################################################################################
#
# We recommend defining fixed mac adress (a.k.a. hardware ethernet
adress) to
# ip adress mappings.
#
# Entries for actual use (ltsp010 to ltsp019) below:
#
# NOTE: After editing entries below, dhcpd MUST BE RESTARTED by the
below
#       commands and THE THIN CLIENT IN QUESTION BE REBOOTED for changes
#       to take effect:
#
# /etc/init.d/dhcp3-server stop; /etc/init.d/dhcp3-server start
#
#
    host ltsp010 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp010;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp011 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp011;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp012 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp012;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp013 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp013;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp014 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp014;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp015 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp015;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp016 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp016;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp017 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp017;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp018 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp018;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp019 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp019;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
  }
}


Her er dhcpd.conf fra ltsptjener00
#
# Debian Edu configuration masterfile
#
# Contents of this file should be in
#
#               /etc/dhcp3/dhcpd.conf
#
#
# DHCP configuration for Debian Edu server 
#
# $Id: dhcpd-debian-edu.conf 34207 2007-06-04 15:32:49Z pere $

# New option necessary for dhcp3
ddns-update-style         none;
#WPAD autoconfiguration
option wpad-url code 252 = text;
authoritative;

shared-network INTERNAL {

  default-lease-time 1800; #30 m 
  max-lease-time     3600; #1 h

  option subnet-mask            255.255.254.0;
  option broadcast-address      10.0.3.255;
  option routers                gateway;
  option domain-name-servers    tjener;
  option domain-name            "intern";
  option ntp-servers            ntp;
  option wpad-url		"http://10.0.2.2/wpad.dat";

  # Log to the main server
  option log-servers            tjener;

#  If you use window clients, comment out the following lines.
#  Samba wins support has to be turned on (wins support = yes)
#
#  # WINS server
  option netbios-name-servers	tjener;
  option netbios-node-type		8;


  #Automatic assigning addresses to workstations
  #There is room for approxmatly 400 workstations.

  subnet 10.0.2.0 netmask 255.255.254.0 {
     range 10.0.2.100 10.0.3.242;
  }
    
  # Group defines thinclientservers
  # Add the hardware address to the thinclientserver here
  # To add an other thinclientserver, use "host ltspserver00" as an
example
  # fixed address area for thin client servers is 10.0.2.10 to 10.0.2.29

  group {
    host ltspserver00 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address ltspserver00;
    }
    
    host ltspserver01 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address ltspserver01;
    }
    # 20 printers are defined as printer00 to printer19 on 10.0.2.30-49 
    # Provide a static address using dhcp by adding their MAC addresses
here
    
    host printer00 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address printer00;
    }

    host printer01 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address printer01;
    }

    host printer02 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address printer02;
    }

    host printer03 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address printer03;
    }
    # 50 workstations are defined as static00 to static49 on
10.0.2.50-99 
    # Provide a static address using dhcp by adding their MAC addresses
here
    
    host static00 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static00;
    }
    host static01 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static01;
    }
    host static02 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static02;
    }
    host static03 {
       hardware ethernet 00:00:00:00:00:00;
       fixed-address static03;
    }
  }
}

shared-network THINCLIENTS {
  default-lease-time            432000;    # 5 d
  max-lease-time                432000;    # 5 d

  option subnet-mask            255.255.255.0;
  option broadcast-address      192.168.0.255;
  option routers                ltspserver;
  option domain-name-servers    tjener;
  option domain-name            "intern";
  option root-path              "/opt/ltsp/i386";

  option ntp-servers            ntp;

  # Log to the LTSP server, and let it forward the messages.
  option log-servers            ltspserver;

  filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";

  subnet 192.168.0.0 netmask 255.255.255.0 {
     # At least some thin clients will work out of the box, appearing as
     # ltsp200 to ltsp253.
     # We still recommend defining fixed mac adress to ip adress
mappings,
     # cf. examples and explanations below.
     range 192.168.0.200 192.168.0.253 ;
     # pxelinux in etch is very slow without this setting.
     next-server 192.168.0.254;
  }

  group {
    next-server 192.168.0.254;
    use-host-decl-names       on;
    option log-servers        ltspserver ;

##################################################################################
#
# We recommend defining fixed mac adress (a.k.a. hardware ethernet
adress) to
# ip adress mappings.
#
# Entries for actual use (ltsp010 to ltsp019) below:
#
# NOTE: After editing entries below, dhcpd MUST BE RESTARTED by the
below
#       commands and THE THIN CLIENT IN QUESTION BE REBOOTED for changes
#       to take effect:
#
# /etc/init.d/dhcp3-server stop; /etc/init.d/dhcp3-server start
#
#
    host ltsp010 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp010;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp011 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp011;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp012 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp012;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp013 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp013;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp014 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp014;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp015 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp015;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp016 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp016;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp017 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp017;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp018 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp018;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
    host ltsp019 {
        hardware ethernet     00:00:00:00:00:00;
        fixed-address         ltsp019;
        filename              "/var/lib/tftpboot/ltsp/i386/pxelinux.0";
    }
  }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.