Static IP for some of my thin clients

Charles Austin ceaustin at gmail.com
Mon Mar 10 17:00:35 GMT 2008


On Mon, Mar 10, 2008 at 12:48 PM, Nicolas Roussi <nroussi at gmail.com> wrote:
> Hi all, I have a gutsy server that serves about 35 thin clients. I
>  updated the thiin client image to the one that does not use NFS and
>  everything is working fine. I edited the
>  /var/lib/tftpboot/ltsp/i386/lts.conf and customized it to include
>  printers. 3 of my clients have printers attached to them. I need to
>  now give static IPs to the clients. which dhcpd.conf do I edit and
>  what do I write in it?
>
DHCP entries are done in /etc/ltsp/dhcp3.conf

Here is how I did the same thing you are talking about:
#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0
{
    range 192.168.0.10 192.168.0.99;
#set a static ip outside dynamic range
#for printer in lab
#set up lts.conf with same MAC
#set up cups on server to use this IP
 #computer lab
        host printer
         {
          hardware ethernet 00:04:5a:51:16:b7;
          fixed-address 192.168.0.9;
         }
 #black printer in Teachers' lounge
        host TeacherPrinter
         {
          hardware ethernet  00:09:6b:12:8e:24;
          fixed-address 192.168.0.8;
         }

#options for all dhcp clients
    option domain-name "example.com";
    option domain-name-servers 192.168.0.1;
    option broadcast-address 192.168.0.255;
    option routers 192.168.0.1;
#    next-server 192.168.0.254;
#    get-lease-hostnames true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }


Charles



More information about the edubuntu-users mailing list