~ltsp-upstream/ltsp/ltsp-trunk : /server/configs/k12linux/ltsp-dhcpd.conf (revision 1450)

Line Revision Contents
1 505
# Sample configuration file for LTSP dhcpd
2 1024
# The goal of this provided dhcpd.conf is to boot as many different clients as possible without manual configuration.
3
# Some clients cannot be booted with this, and you will need to create your own custom dhcpd.conf.
4
# Some more complex network topologies will also need a custom dhcpd.conf.
5 505
#
6
7
default-lease-time            21600;
8
max-lease-time                21600;
9
ddns-update-style none;
10
allow booting;
11
allow bootp;
12
13
option subnet-mask            255.255.255.0;
14 617
option broadcast-address      172.31.100.255;
15
option routers                172.31.100.254;
16
option domain-name-servers    172.31.100.254;
17
next-server                   172.31.100.254;
18 505
option domain-name            "ltsp";
19
option option-128 code 128 = string;
20
option option-129 code 129 = text;
21
option option-221 code 221 = text;
22
23
shared-network WORKSTATIONS {
24 617
  subnet 172.31.100.0 netmask 255.255.255.0 {
25
     range dynamic-bootp 172.31.100.100 172.31.100.253;
26 505
     use-host-decl-names       on;
27 617
     option log-servers        172.31.100.254;
28 505
29
     # trick from Peter Rundle <peter.rundle@au.interpath.net>
30
     # newer PPC Macs
31
     if substring (option vendor-class-identifier, 0, 9) = "AAPLBSDPC"
32
     {
33 1010
        filename      "yaboot";
34 505
        option vendor-class-identifier "AAPLBSDPC";
35 1024
        option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
36 505
     } 
37
     # really old ppc iMacs
38
     elsif substring (option option-221, 0, 5) = "Apple"
39
     {
40 1010
        filename      "yaboot";
41 505
        option vendor-class-identifier "AAPLBSDPC";
42 1024
        option vendor-encapsulated-options 01:01:02:08:04:01:00:00:01:82;
43 505
     } 
44 796
     # Etherboot ELF (only 5.4), should work with Coreboot
45 576
     elsif substring (option vendor-class-identifier, 0, 13) = "Etherboot-5.4" 
46 505
     {
47 796
        filename      "/ltsp/i386/elf.ltsp";
48 505
     } 
49 825
     # Etherboot NBI (older clients)
50
     elsif substring (option vendor-class-identifier, 0, 9) = "Etherboot" 
51
     {
52
        filename      "/ltsp/i386/wraplinux-nbi.ltsp";
53
     } 
54 505
     # PXE
55
     elsif substring (option vendor-class-identifier, 0, 9) = "PXEClient" 
56
     {
57 549
        # NOTE: kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
58
        filename      "/ltsp/i386/pxelinux.0";
59 505
     } 
60 827
     # if all else fails (likely BOOTP), default to an NBI image
61 505
     else 
62
     {
63 827
        filename      "/ltsp/i386/wraplinux-nbi.ltsp";
64 505
     }
65
66 1024
     # PPC Apple MAC prefixes https://fedoraproject.org/wiki/WarrenTogami/AppleMACAddresses
67
     # initrd did dhcp again with vendor-client-identifier "nash" so we need another way to set root-path
68 1027
     # This is most likely an incomplete list.  You may need to add your own if you have a PPC not covered.
69 1025
     # 00:03:93 
70 1027
     # 00:05:02
71
     # 00:0A:27
72 1025
     # 00:0A:95
73
     # 00:0D:93
74
     # 00:11:24
75
     # 00:14:51
76
     # 00:30:65
77 1027
     # 00:50:E4
78 1024
     if binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-3-93"  or
79 1027
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-5-2"   or
80
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-27"  or
81 1024
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-a-95"  or
82
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-d-93"  or
83 1025
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-11-24" or
84 1024
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-14-51" or
85 1027
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-30-65" or
86
        binary-to-ascii (16, 8, "-", substring (hardware, 0, 4)) = "1-0-50-E4" 
87 1024
     {
88 617
        option root-path "172.31.100.254:/opt/ltsp/ppc";
89 1024
        #option root-path "nbd:172.31.100.254:2001:squashfs:ro";
90 505
     } else {
91 617
        option root-path "172.31.100.254:/opt/ltsp/i386"; 
92 838
        #option root-path "nbd:172.31.100.254:2000:squashfs:ro";
93 505
     }
94
  }
95
}
96
97
## example configurations for specifying specific kernels to specific clients
98 1024
## These examples below are VERY OLD, uncertain if they work
99 505
#group	{
100
#    use-host-decl-names       on;
101 617
#    option log-servers        172.31.100.254;
102 505
#
103
#    host ws001 {
104
#        hardware ethernet     00:E0:06:E8:00:84;
105 617
#        fixed-address         172.31.100.1;
106 505
#        filename              "/ltsp/vmlinuz.ltsp";
107
#        option option-128 e4:45:74:68:00:00;
108
#        option option-129 "NIC=3c509";
109
#    }
110
#    host ws002 {
111
#        hardware ethernet     00:D0:09:30:6A:1C;
112 617
#        fixed-address         172.31.100.2;
113 505
#        filename              "/ltsp/vmlinuz.ltsp";
114
#        option option-128 e4:45:74:68:00:00;
115
#        option option-129 "NIC=ne";
116
#    }
117
#    host ws003 {
118
#        hardware ethernet     00:D0:09:30:28:B2;
119 617
#        fixed-address         172.31.100.3;
120 549
#        # kernels are specified in /tftpboot/ltsp/i386/pxelinux.cfg/
121
#        filename              "/ltsp/i386/pxelinux.0";
122 505
#    }
123
#
124
# Apple Specific Settings
125
#    host ws007 {
126
#       hardware ethernet     00:30:65:69:23:60;
127 617
#       fixed-address         172.31.100.4;
128
#       option root-path      "172.31.100.254:/opt/ltsp/ppc";
129 505
#       filename              "yaboot";
130
#       option vendor-class-identifier "AAPLBSDPC";
131
#    }
132
#}

Loggerhead 1.10 is a web-based interface for Bazaar branches