[debian-lan-devel] [SCM] Debian-LAN development and packaging branch, master, updated. 0.5-5-g78b822d
Andreas B. Mundt
andi.mundt at web.de
Mon Apr 9 18:27:49 UTC 2012
The following commit has been merged in the master branch:
commit 78b822d69d8d34c7bc46771ccb7f13b3de6eefdd
Author: Andreas B. Mundt <andi.mundt at web.de>
Date: Mon Apr 9 20:13:25 2012 +0200
Replace all hard-coded IP addresses by variables, part 2.
Automatically generate the DHCP configuration 'etc/dhcp/dhcpd.conf'.
diff --git a/fai/config/class/SERVER_A.var b/fai/config/class/SERVER_A.var
index 6a9e2b2..ec65040 100644
--- a/fai/config/class/SERVER_A.var
+++ b/fai/config/class/SERVER_A.var
@@ -30,11 +30,17 @@ KDC_MASTER_PW=
## created and saved in $DATADIR.
LDAP_ADMIN_PW=
-## Variables that define the network architecture:
+## Variables that define the network:
MAINSERVER_IPADDR="10.0.0.1"
-SUBNETMASK="10.0.0.0/16"
+NAMESERVER_IPADDR="10.0.0.1"
BROADCAST="10.0.255.255"
GATEWAY="10.0.0.1"
+
+SUBNET="10.0.0.0"
+NETMASK="255.255.0.0"
+SUBNETMASK="10.0.0.0/16"
+RANGE="10.0.1.10 10.0.1.200" # DHCP range for unknown clients
+
FAINETMASK="10.0.0.0/24" # NETMASK for FAI config space access
# MODULESLIST contains modules that will be loaded by the new system,
diff --git a/fai/config/files/etc/dhcp/dhcpd.conf/EXT_GATEWAY b/fai/config/files/etc/dhcp/dhcpd.conf/EXT_GATEWAY
deleted file mode 100644
index c82df10..0000000
--- a/fai/config/files/etc/dhcp/dhcpd.conf/EXT_GATEWAY
+++ /dev/null
@@ -1,230 +0,0 @@
-# dhcpd.conf for SETUP_A
-
-option dhcp-max-message-size 2048;
-use-host-decl-names on;
-
-option routers 10.0.0.1;
-option domain-name "intern";
-option domain-name-servers 10.0.0.10;
-option ntp-servers ntp;
-
-subnet 10.0.0.0 netmask 255.255.0.0 {
- allow unknown-clients;
- range 10.0.1.10 10.0.1.200;
- server-name faiserver;
- next-server faiserver;
- filename "fai/pxelinux.0";
-}
-
-group {
- server-name faiserver;
- next-server faiserver;
- filename "fai/pxelinux.0";
- host workstation00 {hardware ethernet A1:B2:C3:D4:E5:00; fixed-address 10.0.0.50;}
- host workstation01 {hardware ethernet A1:B2:C3:D4:E5:01; fixed-address 10.0.0.51;}
- host workstation02 {hardware ethernet A1:B2:C3:D4:E5:02; fixed-address 10.0.0.52;}
- host workstation03 {hardware ethernet A1:B2:C3:D4:E5:03; fixed-address 10.0.0.53;}
- host workstation04 {hardware ethernet A1:B2:C3:D4:E5:04; fixed-address 10.0.0.54;}
- host workstation05 {hardware ethernet A1:B2:C3:D4:E5:05; fixed-address 10.0.0.55;}
- host workstation06 {hardware ethernet A1:B2:C3:D4:E5:06; fixed-address 10.0.0.56;}
- host workstation07 {hardware ethernet A1:B2:C3:D4:E5:07; fixed-address 10.0.0.57;}
- host workstation08 {hardware ethernet A1:B2:C3:D4:E5:08; fixed-address 10.0.0.58;}
- host workstation09 {hardware ethernet A1:B2:C3:D4:E5:09; fixed-address 10.0.0.59;}
- host workstation10 {hardware ethernet A1:B2:C3:D4:E5:10; fixed-address 10.0.0.60;}
- host workstation11 {hardware ethernet A1:B2:C3:D4:E5:11; fixed-address 10.0.0.61;}
- host workstation12 {hardware ethernet A1:B2:C3:D4:E5:12; fixed-address 10.0.0.62;}
- host workstation13 {hardware ethernet A1:B2:C3:D4:E5:13; fixed-address 10.0.0.63;}
- host workstation14 {hardware ethernet A1:B2:C3:D4:E5:14; fixed-address 10.0.0.64;}
- host workstation15 {hardware ethernet A1:B2:C3:D4:E5:15; fixed-address 10.0.0.65;}
- host workstation16 {hardware ethernet A1:B2:C3:D4:E5:16; fixed-address 10.0.0.66;}
- host workstation17 {hardware ethernet A1:B2:C3:D4:E5:17; fixed-address 10.0.0.67;}
- host workstation18 {hardware ethernet A1:B2:C3:D4:E5:18; fixed-address 10.0.0.68;}
- host workstation19 {hardware ethernet A1:B2:C3:D4:E5:19; fixed-address 10.0.0.69;}
- host workstation20 {hardware ethernet A1:B2:C3:D4:E5:20; fixed-address 10.0.0.70;}
- host workstation21 {hardware ethernet A1:B2:C3:D4:E5:21; fixed-address 10.0.0.71;}
- host workstation22 {hardware ethernet A1:B2:C3:D4:E5:22; fixed-address 10.0.0.72;}
- host workstation23 {hardware ethernet A1:B2:C3:D4:E5:23; fixed-address 10.0.0.73;}
- host workstation24 {hardware ethernet A1:B2:C3:D4:E5:24; fixed-address 10.0.0.74;}
- host workstation25 {hardware ethernet A1:B2:C3:D4:E5:25; fixed-address 10.0.0.75;}
- host workstation26 {hardware ethernet A1:B2:C3:D4:E5:26; fixed-address 10.0.0.76;}
- host workstation27 {hardware ethernet A1:B2:C3:D4:E5:27; fixed-address 10.0.0.77;}
- host workstation28 {hardware ethernet A1:B2:C3:D4:E5:28; fixed-address 10.0.0.78;}
- host workstation29 {hardware ethernet A1:B2:C3:D4:E5:29; fixed-address 10.0.0.79;}
- host workstation30 {hardware ethernet A1:B2:C3:D4:E5:30; fixed-address 10.0.0.80;}
- host workstation31 {hardware ethernet A1:B2:C3:D4:E5:31; fixed-address 10.0.0.81;}
- host workstation32 {hardware ethernet A1:B2:C3:D4:E5:32; fixed-address 10.0.0.82;}
- host workstation33 {hardware ethernet A1:B2:C3:D4:E5:33; fixed-address 10.0.0.83;}
- host workstation34 {hardware ethernet A1:B2:C3:D4:E5:34; fixed-address 10.0.0.84;}
- host workstation35 {hardware ethernet A1:B2:C3:D4:E5:35; fixed-address 10.0.0.85;}
- host workstation36 {hardware ethernet A1:B2:C3:D4:E5:36; fixed-address 10.0.0.86;}
- host workstation37 {hardware ethernet A1:B2:C3:D4:E5:37; fixed-address 10.0.0.87;}
- host workstation38 {hardware ethernet A1:B2:C3:D4:E5:38; fixed-address 10.0.0.88;}
- host workstation39 {hardware ethernet A1:B2:C3:D4:E5:39; fixed-address 10.0.0.89;}
- host workstation40 {hardware ethernet A1:B2:C3:D4:E5:40; fixed-address 10.0.0.90;}
- host workstation41 {hardware ethernet A1:B2:C3:D4:E5:41; fixed-address 10.0.0.91;}
- host workstation42 {hardware ethernet A1:B2:C3:D4:E5:42; fixed-address 10.0.0.92;}
- host workstation43 {hardware ethernet A1:B2:C3:D4:E5:43; fixed-address 10.0.0.93;}
- host workstation44 {hardware ethernet A1:B2:C3:D4:E5:44; fixed-address 10.0.0.94;}
- host workstation45 {hardware ethernet A1:B2:C3:D4:E5:45; fixed-address 10.0.0.95;}
- host workstation46 {hardware ethernet A1:B2:C3:D4:E5:46; fixed-address 10.0.0.96;}
- host workstation47 {hardware ethernet A1:B2:C3:D4:E5:47; fixed-address 10.0.0.97;}
- host workstation48 {hardware ethernet A1:B2:C3:D4:E5:48; fixed-address 10.0.0.98;}
- host workstation49 {hardware ethernet A1:B2:C3:D4:E5:49; fixed-address 10.0.0.99;}
- host workstation50 {hardware ethernet A1:B2:C3:D4:E5:50; fixed-address 10.0.0.100;}
- host workstation51 {hardware ethernet A1:B2:C3:D4:E5:51; fixed-address 10.0.0.101;}
- host workstation52 {hardware ethernet A1:B2:C3:D4:E5:52; fixed-address 10.0.0.102;}
- host workstation53 {hardware ethernet A1:B2:C3:D4:E5:53; fixed-address 10.0.0.103;}
- host workstation54 {hardware ethernet A1:B2:C3:D4:E5:54; fixed-address 10.0.0.104;}
- host workstation55 {hardware ethernet A1:B2:C3:D4:E5:55; fixed-address 10.0.0.105;}
- host workstation56 {hardware ethernet A1:B2:C3:D4:E5:56; fixed-address 10.0.0.106;}
- host workstation57 {hardware ethernet A1:B2:C3:D4:E5:57; fixed-address 10.0.0.107;}
- host workstation58 {hardware ethernet A1:B2:C3:D4:E5:58; fixed-address 10.0.0.108;}
- host workstation59 {hardware ethernet A1:B2:C3:D4:E5:59; fixed-address 10.0.0.109;}
- host workstation60 {hardware ethernet A1:B2:C3:D4:E5:60; fixed-address 10.0.0.110;}
- host workstation61 {hardware ethernet A1:B2:C3:D4:E5:61; fixed-address 10.0.0.111;}
- host workstation62 {hardware ethernet A1:B2:C3:D4:E5:62; fixed-address 10.0.0.112;}
- host workstation63 {hardware ethernet A1:B2:C3:D4:E5:63; fixed-address 10.0.0.113;}
- host workstation64 {hardware ethernet A1:B2:C3:D4:E5:64; fixed-address 10.0.0.114;}
- host workstation65 {hardware ethernet A1:B2:C3:D4:E5:65; fixed-address 10.0.0.115;}
- host workstation66 {hardware ethernet A1:B2:C3:D4:E5:66; fixed-address 10.0.0.116;}
- host workstation67 {hardware ethernet A1:B2:C3:D4:E5:67; fixed-address 10.0.0.117;}
- host workstation68 {hardware ethernet A1:B2:C3:D4:E5:68; fixed-address 10.0.0.118;}
- host workstation69 {hardware ethernet A1:B2:C3:D4:E5:69; fixed-address 10.0.0.119;}
- host workstation70 {hardware ethernet A1:B2:C3:D4:E5:70; fixed-address 10.0.0.120;}
- host workstation71 {hardware ethernet A1:B2:C3:D4:E5:71; fixed-address 10.0.0.121;}
- host workstation72 {hardware ethernet A1:B2:C3:D4:E5:72; fixed-address 10.0.0.122;}
- host workstation73 {hardware ethernet A1:B2:C3:D4:E5:73; fixed-address 10.0.0.123;}
- host workstation74 {hardware ethernet A1:B2:C3:D4:E5:74; fixed-address 10.0.0.124;}
- host workstation75 {hardware ethernet A1:B2:C3:D4:E5:75; fixed-address 10.0.0.125;}
- host workstation76 {hardware ethernet A1:B2:C3:D4:E5:76; fixed-address 10.0.0.126;}
- host workstation77 {hardware ethernet A1:B2:C3:D4:E5:77; fixed-address 10.0.0.127;}
- host workstation78 {hardware ethernet A1:B2:C3:D4:E5:78; fixed-address 10.0.0.128;}
- host workstation79 {hardware ethernet A1:B2:C3:D4:E5:79; fixed-address 10.0.0.129;}
- host workstation80 {hardware ethernet A1:B2:C3:D4:E5:80; fixed-address 10.0.0.130;}
- host workstation81 {hardware ethernet A1:B2:C3:D4:E5:81; fixed-address 10.0.0.131;}
- host workstation82 {hardware ethernet A1:B2:C3:D4:E5:82; fixed-address 10.0.0.132;}
- host workstation83 {hardware ethernet A1:B2:C3:D4:E5:83; fixed-address 10.0.0.133;}
- host workstation84 {hardware ethernet A1:B2:C3:D4:E5:84; fixed-address 10.0.0.134;}
- host workstation85 {hardware ethernet A1:B2:C3:D4:E5:85; fixed-address 10.0.0.135;}
- host workstation86 {hardware ethernet A1:B2:C3:D4:E5:86; fixed-address 10.0.0.136;}
- host workstation87 {hardware ethernet A1:B2:C3:D4:E5:87; fixed-address 10.0.0.137;}
- host workstation88 {hardware ethernet A1:B2:C3:D4:E5:88; fixed-address 10.0.0.138;}
- host workstation89 {hardware ethernet A1:B2:C3:D4:E5:89; fixed-address 10.0.0.139;}
- host workstation90 {hardware ethernet A1:B2:C3:D4:E5:90; fixed-address 10.0.0.140;}
- host workstation91 {hardware ethernet A1:B2:C3:D4:E5:91; fixed-address 10.0.0.141;}
- host workstation92 {hardware ethernet A1:B2:C3:D4:E5:92; fixed-address 10.0.0.142;}
- host workstation93 {hardware ethernet A1:B2:C3:D4:E5:93; fixed-address 10.0.0.143;}
- host workstation94 {hardware ethernet A1:B2:C3:D4:E5:94; fixed-address 10.0.0.144;}
- host workstation95 {hardware ethernet A1:B2:C3:D4:E5:95; fixed-address 10.0.0.145;}
- host workstation96 {hardware ethernet A1:B2:C3:D4:E5:96; fixed-address 10.0.0.146;}
- host workstation97 {hardware ethernet A1:B2:C3:D4:E5:97; fixed-address 10.0.0.147;}
- host workstation98 {hardware ethernet A1:B2:C3:D4:E5:98; fixed-address 10.0.0.148;}
- host workstation99 {hardware ethernet A1:B2:C3:D4:E5:99; fixed-address 10.0.0.149;}
-
- host diskless00 {hardware ethernet A1:B2:C3:D4:E5:00; fixed-address 10.0.0.150;}
- host diskless01 {hardware ethernet A1:B2:C3:D4:E5:01; fixed-address 10.0.0.151;}
- host diskless02 {hardware ethernet A1:B2:C3:D4:E5:02; fixed-address 10.0.0.152;}
- host diskless03 {hardware ethernet A1:B2:C3:D4:E5:03; fixed-address 10.0.0.153;}
- host diskless04 {hardware ethernet A1:B2:C3:D4:E5:04; fixed-address 10.0.0.154;}
- host diskless05 {hardware ethernet A1:B2:C3:D4:E5:05; fixed-address 10.0.0.155;}
- host diskless06 {hardware ethernet A1:B2:C3:D4:E5:06; fixed-address 10.0.0.156;}
- host diskless07 {hardware ethernet A1:B2:C3:D4:E5:07; fixed-address 10.0.0.157;}
- host diskless08 {hardware ethernet A1:B2:C3:D4:E5:08; fixed-address 10.0.0.158;}
- host diskless09 {hardware ethernet A1:B2:C3:D4:E5:09; fixed-address 10.0.0.159;}
- host diskless10 {hardware ethernet A1:B2:C3:D4:E5:10; fixed-address 10.0.0.160;}
- host diskless11 {hardware ethernet A1:B2:C3:D4:E5:11; fixed-address 10.0.0.161;}
- host diskless12 {hardware ethernet A1:B2:C3:D4:E5:12; fixed-address 10.0.0.162;}
- host diskless13 {hardware ethernet A1:B2:C3:D4:E5:13; fixed-address 10.0.0.163;}
- host diskless14 {hardware ethernet A1:B2:C3:D4:E5:14; fixed-address 10.0.0.164;}
- host diskless15 {hardware ethernet A1:B2:C3:D4:E5:15; fixed-address 10.0.0.165;}
- host diskless16 {hardware ethernet A1:B2:C3:D4:E5:16; fixed-address 10.0.0.166;}
- host diskless17 {hardware ethernet A1:B2:C3:D4:E5:17; fixed-address 10.0.0.167;}
- host diskless18 {hardware ethernet A1:B2:C3:D4:E5:18; fixed-address 10.0.0.168;}
- host diskless19 {hardware ethernet A1:B2:C3:D4:E5:19; fixed-address 10.0.0.169;}
- host diskless20 {hardware ethernet A1:B2:C3:D4:E5:20; fixed-address 10.0.0.170;}
- host diskless21 {hardware ethernet A1:B2:C3:D4:E5:21; fixed-address 10.0.0.171;}
- host diskless22 {hardware ethernet A1:B2:C3:D4:E5:22; fixed-address 10.0.0.172;}
- host diskless23 {hardware ethernet A1:B2:C3:D4:E5:23; fixed-address 10.0.0.173;}
- host diskless24 {hardware ethernet A1:B2:C3:D4:E5:24; fixed-address 10.0.0.174;}
- host diskless25 {hardware ethernet A1:B2:C3:D4:E5:25; fixed-address 10.0.0.175;}
- host diskless26 {hardware ethernet A1:B2:C3:D4:E5:26; fixed-address 10.0.0.176;}
- host diskless27 {hardware ethernet A1:B2:C3:D4:E5:27; fixed-address 10.0.0.177;}
- host diskless28 {hardware ethernet A1:B2:C3:D4:E5:28; fixed-address 10.0.0.178;}
- host diskless29 {hardware ethernet A1:B2:C3:D4:E5:29; fixed-address 10.0.0.179;}
- host diskless30 {hardware ethernet A1:B2:C3:D4:E5:30; fixed-address 10.0.0.180;}
- host diskless31 {hardware ethernet A1:B2:C3:D4:E5:31; fixed-address 10.0.0.181;}
- host diskless32 {hardware ethernet A1:B2:C3:D4:E5:32; fixed-address 10.0.0.182;}
- host diskless33 {hardware ethernet A1:B2:C3:D4:E5:33; fixed-address 10.0.0.183;}
- host diskless34 {hardware ethernet A1:B2:C3:D4:E5:34; fixed-address 10.0.0.184;}
- host diskless35 {hardware ethernet A1:B2:C3:D4:E5:35; fixed-address 10.0.0.185;}
- host diskless36 {hardware ethernet A1:B2:C3:D4:E5:36; fixed-address 10.0.0.186;}
- host diskless37 {hardware ethernet A1:B2:C3:D4:E5:37; fixed-address 10.0.0.187;}
- host diskless38 {hardware ethernet A1:B2:C3:D4:E5:38; fixed-address 10.0.0.188;}
- host diskless39 {hardware ethernet A1:B2:C3:D4:E5:39; fixed-address 10.0.0.189;}
- host diskless40 {hardware ethernet A1:B2:C3:D4:E5:40; fixed-address 10.0.0.190;}
- host diskless41 {hardware ethernet A1:B2:C3:D4:E5:41; fixed-address 10.0.0.191;}
- host diskless42 {hardware ethernet A1:B2:C3:D4:E5:42; fixed-address 10.0.0.192;}
- host diskless43 {hardware ethernet A1:B2:C3:D4:E5:43; fixed-address 10.0.0.193;}
- host diskless44 {hardware ethernet A1:B2:C3:D4:E5:44; fixed-address 10.0.0.194;}
- host diskless45 {hardware ethernet A1:B2:C3:D4:E5:45; fixed-address 10.0.0.195;}
- host diskless46 {hardware ethernet A1:B2:C3:D4:E5:46; fixed-address 10.0.0.196;}
- host diskless47 {hardware ethernet A1:B2:C3:D4:E5:47; fixed-address 10.0.0.197;}
- host diskless48 {hardware ethernet A1:B2:C3:D4:E5:48; fixed-address 10.0.0.198;}
- host diskless49 {hardware ethernet A1:B2:C3:D4:E5:49; fixed-address 10.0.0.199;}
- host diskless50 {hardware ethernet A1:B2:C3:D4:E5:50; fixed-address 10.0.0.200;}
- host diskless51 {hardware ethernet A1:B2:C3:D4:E5:51; fixed-address 10.0.0.201;}
- host diskless52 {hardware ethernet A1:B2:C3:D4:E5:52; fixed-address 10.0.0.202;}
- host diskless53 {hardware ethernet A1:B2:C3:D4:E5:53; fixed-address 10.0.0.203;}
- host diskless54 {hardware ethernet A1:B2:C3:D4:E5:54; fixed-address 10.0.0.204;}
- host diskless55 {hardware ethernet A1:B2:C3:D4:E5:55; fixed-address 10.0.0.205;}
- host diskless56 {hardware ethernet A1:B2:C3:D4:E5:56; fixed-address 10.0.0.206;}
- host diskless57 {hardware ethernet A1:B2:C3:D4:E5:57; fixed-address 10.0.0.207;}
- host diskless58 {hardware ethernet A1:B2:C3:D4:E5:58; fixed-address 10.0.0.208;}
- host diskless59 {hardware ethernet A1:B2:C3:D4:E5:59; fixed-address 10.0.0.209;}
- host diskless60 {hardware ethernet A1:B2:C3:D4:E5:60; fixed-address 10.0.0.210;}
- host diskless61 {hardware ethernet A1:B2:C3:D4:E5:61; fixed-address 10.0.0.211;}
- host diskless62 {hardware ethernet A1:B2:C3:D4:E5:62; fixed-address 10.0.0.212;}
- host diskless63 {hardware ethernet A1:B2:C3:D4:E5:63; fixed-address 10.0.0.213;}
- host diskless64 {hardware ethernet A1:B2:C3:D4:E5:64; fixed-address 10.0.0.214;}
- host diskless65 {hardware ethernet A1:B2:C3:D4:E5:65; fixed-address 10.0.0.215;}
- host diskless66 {hardware ethernet A1:B2:C3:D4:E5:66; fixed-address 10.0.0.216;}
- host diskless67 {hardware ethernet A1:B2:C3:D4:E5:67; fixed-address 10.0.0.217;}
- host diskless68 {hardware ethernet A1:B2:C3:D4:E5:68; fixed-address 10.0.0.218;}
- host diskless69 {hardware ethernet A1:B2:C3:D4:E5:69; fixed-address 10.0.0.219;}
- host diskless70 {hardware ethernet A1:B2:C3:D4:E5:70; fixed-address 10.0.0.220;}
- host diskless71 {hardware ethernet A1:B2:C3:D4:E5:71; fixed-address 10.0.0.221;}
- host diskless72 {hardware ethernet A1:B2:C3:D4:E5:72; fixed-address 10.0.0.222;}
- host diskless73 {hardware ethernet A1:B2:C3:D4:E5:73; fixed-address 10.0.0.223;}
- host diskless74 {hardware ethernet A1:B2:C3:D4:E5:74; fixed-address 10.0.0.224;}
- host diskless75 {hardware ethernet A1:B2:C3:D4:E5:75; fixed-address 10.0.0.225;}
- host diskless76 {hardware ethernet A1:B2:C3:D4:E5:76; fixed-address 10.0.0.226;}
- host diskless77 {hardware ethernet A1:B2:C3:D4:E5:77; fixed-address 10.0.0.227;}
- host diskless78 {hardware ethernet A1:B2:C3:D4:E5:78; fixed-address 10.0.0.228;}
- host diskless79 {hardware ethernet A1:B2:C3:D4:E5:79; fixed-address 10.0.0.229;}
- host diskless80 {hardware ethernet A1:B2:C3:D4:E5:80; fixed-address 10.0.0.230;}
- host diskless81 {hardware ethernet A1:B2:C3:D4:E5:81; fixed-address 10.0.0.231;}
- host diskless82 {hardware ethernet A1:B2:C3:D4:E5:82; fixed-address 10.0.0.232;}
- host diskless83 {hardware ethernet A1:B2:C3:D4:E5:83; fixed-address 10.0.0.233;}
- host diskless84 {hardware ethernet A1:B2:C3:D4:E5:84; fixed-address 10.0.0.234;}
- host diskless85 {hardware ethernet A1:B2:C3:D4:E5:85; fixed-address 10.0.0.235;}
- host diskless86 {hardware ethernet A1:B2:C3:D4:E5:86; fixed-address 10.0.0.236;}
- host diskless87 {hardware ethernet A1:B2:C3:D4:E5:87; fixed-address 10.0.0.237;}
- host diskless88 {hardware ethernet A1:B2:C3:D4:E5:88; fixed-address 10.0.0.238;}
- host diskless89 {hardware ethernet A1:B2:C3:D4:E5:89; fixed-address 10.0.0.239;}
- host diskless90 {hardware ethernet A1:B2:C3:D4:E5:90; fixed-address 10.0.0.240;}
- host diskless91 {hardware ethernet A1:B2:C3:D4:E5:91; fixed-address 10.0.0.241;}
- host diskless92 {hardware ethernet A1:B2:C3:D4:E5:92; fixed-address 10.0.0.242;}
- host diskless93 {hardware ethernet A1:B2:C3:D4:E5:93; fixed-address 10.0.0.243;}
- host diskless94 {hardware ethernet A1:B2:C3:D4:E5:94; fixed-address 10.0.0.244;}
- host diskless95 {hardware ethernet A1:B2:C3:D4:E5:95; fixed-address 10.0.0.245;}
- host diskless96 {hardware ethernet A1:B2:C3:D4:E5:96; fixed-address 10.0.0.246;}
- host diskless97 {hardware ethernet A1:B2:C3:D4:E5:97; fixed-address 10.0.0.247;}
- host diskless98 {hardware ethernet A1:B2:C3:D4:E5:98; fixed-address 10.0.0.248;}
- host diskless99 {hardware ethernet A1:B2:C3:D4:E5:99; fixed-address 10.0.0.249;}
-}
-
-# generate more lines with:
-# perl -e 'for (0..100) {printf "host workstation%02s {hardware ethernet A1:B2:C3:D4:E5:%02s; fixed-address 10.0.0.%02s;}\n",$_,$_,$_+50;}'
-# perl -e 'for (0..100) {printf "host diskless%02s {hardware ethernet A1:B2:C3:D4:E5:%02s; fixed-address 10.0.0.%02s;}\n",$_,$_,$_+150;}'
-# replace A1:B2:C3:D4:E5:XX with the hardware addresses of your clients
-
diff --git a/fai/config/files/etc/dhcp/dhcpd.conf/INT_GATEWAY b/fai/config/files/etc/dhcp/dhcpd.conf/INT_GATEWAY
deleted file mode 100644
index 6b4a615..0000000
--- a/fai/config/files/etc/dhcp/dhcpd.conf/INT_GATEWAY
+++ /dev/null
@@ -1,230 +0,0 @@
-# dhcpd.conf for SETUP_A
-
-option dhcp-max-message-size 2048;
-use-host-decl-names on;
-
-option routers 10.0.0.1;
-option domain-name "intern";
-option domain-name-servers 10.0.0.1;
-option ntp-servers ntp;
-
-subnet 10.0.0.0 netmask 255.255.0.0 {
- allow unknown-clients;
- range 10.0.1.10 10.0.1.200;
- server-name faiserver;
- next-server faiserver;
- filename "fai/pxelinux.0";
-}
-
-group {
- server-name faiserver;
- next-server faiserver;
- filename "fai/pxelinux.0";
- host workstation00 {hardware ethernet A1:B2:C3:D4:E5:00; fixed-address 10.0.0.50;}
- host workstation01 {hardware ethernet A1:B2:C3:D4:E5:01; fixed-address 10.0.0.51;}
- host workstation02 {hardware ethernet A1:B2:C3:D4:E5:02; fixed-address 10.0.0.52;}
- host workstation03 {hardware ethernet A1:B2:C3:D4:E5:03; fixed-address 10.0.0.53;}
- host workstation04 {hardware ethernet A1:B2:C3:D4:E5:04; fixed-address 10.0.0.54;}
- host workstation05 {hardware ethernet A1:B2:C3:D4:E5:05; fixed-address 10.0.0.55;}
- host workstation06 {hardware ethernet A1:B2:C3:D4:E5:06; fixed-address 10.0.0.56;}
- host workstation07 {hardware ethernet A1:B2:C3:D4:E5:07; fixed-address 10.0.0.57;}
- host workstation08 {hardware ethernet A1:B2:C3:D4:E5:08; fixed-address 10.0.0.58;}
- host workstation09 {hardware ethernet A1:B2:C3:D4:E5:09; fixed-address 10.0.0.59;}
- host workstation10 {hardware ethernet A1:B2:C3:D4:E5:10; fixed-address 10.0.0.60;}
- host workstation11 {hardware ethernet A1:B2:C3:D4:E5:11; fixed-address 10.0.0.61;}
- host workstation12 {hardware ethernet A1:B2:C3:D4:E5:12; fixed-address 10.0.0.62;}
- host workstation13 {hardware ethernet A1:B2:C3:D4:E5:13; fixed-address 10.0.0.63;}
- host workstation14 {hardware ethernet A1:B2:C3:D4:E5:14; fixed-address 10.0.0.64;}
- host workstation15 {hardware ethernet A1:B2:C3:D4:E5:15; fixed-address 10.0.0.65;}
- host workstation16 {hardware ethernet A1:B2:C3:D4:E5:16; fixed-address 10.0.0.66;}
- host workstation17 {hardware ethernet A1:B2:C3:D4:E5:17; fixed-address 10.0.0.67;}
- host workstation18 {hardware ethernet A1:B2:C3:D4:E5:18; fixed-address 10.0.0.68;}
- host workstation19 {hardware ethernet A1:B2:C3:D4:E5:19; fixed-address 10.0.0.69;}
- host workstation20 {hardware ethernet A1:B2:C3:D4:E5:20; fixed-address 10.0.0.70;}
- host workstation21 {hardware ethernet A1:B2:C3:D4:E5:21; fixed-address 10.0.0.71;}
- host workstation22 {hardware ethernet A1:B2:C3:D4:E5:22; fixed-address 10.0.0.72;}
- host workstation23 {hardware ethernet A1:B2:C3:D4:E5:23; fixed-address 10.0.0.73;}
- host workstation24 {hardware ethernet A1:B2:C3:D4:E5:24; fixed-address 10.0.0.74;}
- host workstation25 {hardware ethernet A1:B2:C3:D4:E5:25; fixed-address 10.0.0.75;}
- host workstation26 {hardware ethernet A1:B2:C3:D4:E5:26; fixed-address 10.0.0.76;}
- host workstation27 {hardware ethernet A1:B2:C3:D4:E5:27; fixed-address 10.0.0.77;}
- host workstation28 {hardware ethernet A1:B2:C3:D4:E5:28; fixed-address 10.0.0.78;}
- host workstation29 {hardware ethernet A1:B2:C3:D4:E5:29; fixed-address 10.0.0.79;}
- host workstation30 {hardware ethernet A1:B2:C3:D4:E5:30; fixed-address 10.0.0.80;}
- host workstation31 {hardware ethernet A1:B2:C3:D4:E5:31; fixed-address 10.0.0.81;}
- host workstation32 {hardware ethernet A1:B2:C3:D4:E5:32; fixed-address 10.0.0.82;}
- host workstation33 {hardware ethernet A1:B2:C3:D4:E5:33; fixed-address 10.0.0.83;}
- host workstation34 {hardware ethernet A1:B2:C3:D4:E5:34; fixed-address 10.0.0.84;}
- host workstation35 {hardware ethernet A1:B2:C3:D4:E5:35; fixed-address 10.0.0.85;}
- host workstation36 {hardware ethernet A1:B2:C3:D4:E5:36; fixed-address 10.0.0.86;}
- host workstation37 {hardware ethernet A1:B2:C3:D4:E5:37; fixed-address 10.0.0.87;}
- host workstation38 {hardware ethernet A1:B2:C3:D4:E5:38; fixed-address 10.0.0.88;}
- host workstation39 {hardware ethernet A1:B2:C3:D4:E5:39; fixed-address 10.0.0.89;}
- host workstation40 {hardware ethernet A1:B2:C3:D4:E5:40; fixed-address 10.0.0.90;}
- host workstation41 {hardware ethernet A1:B2:C3:D4:E5:41; fixed-address 10.0.0.91;}
- host workstation42 {hardware ethernet A1:B2:C3:D4:E5:42; fixed-address 10.0.0.92;}
- host workstation43 {hardware ethernet A1:B2:C3:D4:E5:43; fixed-address 10.0.0.93;}
- host workstation44 {hardware ethernet A1:B2:C3:D4:E5:44; fixed-address 10.0.0.94;}
- host workstation45 {hardware ethernet A1:B2:C3:D4:E5:45; fixed-address 10.0.0.95;}
- host workstation46 {hardware ethernet A1:B2:C3:D4:E5:46; fixed-address 10.0.0.96;}
- host workstation47 {hardware ethernet A1:B2:C3:D4:E5:47; fixed-address 10.0.0.97;}
- host workstation48 {hardware ethernet A1:B2:C3:D4:E5:48; fixed-address 10.0.0.98;}
- host workstation49 {hardware ethernet A1:B2:C3:D4:E5:49; fixed-address 10.0.0.99;}
- host workstation50 {hardware ethernet A1:B2:C3:D4:E5:50; fixed-address 10.0.0.100;}
- host workstation51 {hardware ethernet A1:B2:C3:D4:E5:51; fixed-address 10.0.0.101;}
- host workstation52 {hardware ethernet A1:B2:C3:D4:E5:52; fixed-address 10.0.0.102;}
- host workstation53 {hardware ethernet A1:B2:C3:D4:E5:53; fixed-address 10.0.0.103;}
- host workstation54 {hardware ethernet A1:B2:C3:D4:E5:54; fixed-address 10.0.0.104;}
- host workstation55 {hardware ethernet A1:B2:C3:D4:E5:55; fixed-address 10.0.0.105;}
- host workstation56 {hardware ethernet A1:B2:C3:D4:E5:56; fixed-address 10.0.0.106;}
- host workstation57 {hardware ethernet A1:B2:C3:D4:E5:57; fixed-address 10.0.0.107;}
- host workstation58 {hardware ethernet A1:B2:C3:D4:E5:58; fixed-address 10.0.0.108;}
- host workstation59 {hardware ethernet A1:B2:C3:D4:E5:59; fixed-address 10.0.0.109;}
- host workstation60 {hardware ethernet A1:B2:C3:D4:E5:60; fixed-address 10.0.0.110;}
- host workstation61 {hardware ethernet A1:B2:C3:D4:E5:61; fixed-address 10.0.0.111;}
- host workstation62 {hardware ethernet A1:B2:C3:D4:E5:62; fixed-address 10.0.0.112;}
- host workstation63 {hardware ethernet A1:B2:C3:D4:E5:63; fixed-address 10.0.0.113;}
- host workstation64 {hardware ethernet A1:B2:C3:D4:E5:64; fixed-address 10.0.0.114;}
- host workstation65 {hardware ethernet A1:B2:C3:D4:E5:65; fixed-address 10.0.0.115;}
- host workstation66 {hardware ethernet A1:B2:C3:D4:E5:66; fixed-address 10.0.0.116;}
- host workstation67 {hardware ethernet A1:B2:C3:D4:E5:67; fixed-address 10.0.0.117;}
- host workstation68 {hardware ethernet A1:B2:C3:D4:E5:68; fixed-address 10.0.0.118;}
- host workstation69 {hardware ethernet A1:B2:C3:D4:E5:69; fixed-address 10.0.0.119;}
- host workstation70 {hardware ethernet A1:B2:C3:D4:E5:70; fixed-address 10.0.0.120;}
- host workstation71 {hardware ethernet A1:B2:C3:D4:E5:71; fixed-address 10.0.0.121;}
- host workstation72 {hardware ethernet A1:B2:C3:D4:E5:72; fixed-address 10.0.0.122;}
- host workstation73 {hardware ethernet A1:B2:C3:D4:E5:73; fixed-address 10.0.0.123;}
- host workstation74 {hardware ethernet A1:B2:C3:D4:E5:74; fixed-address 10.0.0.124;}
- host workstation75 {hardware ethernet A1:B2:C3:D4:E5:75; fixed-address 10.0.0.125;}
- host workstation76 {hardware ethernet A1:B2:C3:D4:E5:76; fixed-address 10.0.0.126;}
- host workstation77 {hardware ethernet A1:B2:C3:D4:E5:77; fixed-address 10.0.0.127;}
- host workstation78 {hardware ethernet A1:B2:C3:D4:E5:78; fixed-address 10.0.0.128;}
- host workstation79 {hardware ethernet A1:B2:C3:D4:E5:79; fixed-address 10.0.0.129;}
- host workstation80 {hardware ethernet A1:B2:C3:D4:E5:80; fixed-address 10.0.0.130;}
- host workstation81 {hardware ethernet A1:B2:C3:D4:E5:81; fixed-address 10.0.0.131;}
- host workstation82 {hardware ethernet A1:B2:C3:D4:E5:82; fixed-address 10.0.0.132;}
- host workstation83 {hardware ethernet A1:B2:C3:D4:E5:83; fixed-address 10.0.0.133;}
- host workstation84 {hardware ethernet A1:B2:C3:D4:E5:84; fixed-address 10.0.0.134;}
- host workstation85 {hardware ethernet A1:B2:C3:D4:E5:85; fixed-address 10.0.0.135;}
- host workstation86 {hardware ethernet A1:B2:C3:D4:E5:86; fixed-address 10.0.0.136;}
- host workstation87 {hardware ethernet A1:B2:C3:D4:E5:87; fixed-address 10.0.0.137;}
- host workstation88 {hardware ethernet A1:B2:C3:D4:E5:88; fixed-address 10.0.0.138;}
- host workstation89 {hardware ethernet A1:B2:C3:D4:E5:89; fixed-address 10.0.0.139;}
- host workstation90 {hardware ethernet A1:B2:C3:D4:E5:90; fixed-address 10.0.0.140;}
- host workstation91 {hardware ethernet A1:B2:C3:D4:E5:91; fixed-address 10.0.0.141;}
- host workstation92 {hardware ethernet A1:B2:C3:D4:E5:92; fixed-address 10.0.0.142;}
- host workstation93 {hardware ethernet A1:B2:C3:D4:E5:93; fixed-address 10.0.0.143;}
- host workstation94 {hardware ethernet A1:B2:C3:D4:E5:94; fixed-address 10.0.0.144;}
- host workstation95 {hardware ethernet A1:B2:C3:D4:E5:95; fixed-address 10.0.0.145;}
- host workstation96 {hardware ethernet A1:B2:C3:D4:E5:96; fixed-address 10.0.0.146;}
- host workstation97 {hardware ethernet A1:B2:C3:D4:E5:97; fixed-address 10.0.0.147;}
- host workstation98 {hardware ethernet A1:B2:C3:D4:E5:98; fixed-address 10.0.0.148;}
- host workstation99 {hardware ethernet A1:B2:C3:D4:E5:99; fixed-address 10.0.0.149;}
-
- host diskless00 {hardware ethernet A1:B2:C3:D4:E5:00; fixed-address 10.0.0.150;}
- host diskless01 {hardware ethernet A1:B2:C3:D4:E5:01; fixed-address 10.0.0.151;}
- host diskless02 {hardware ethernet A1:B2:C3:D4:E5:02; fixed-address 10.0.0.152;}
- host diskless03 {hardware ethernet A1:B2:C3:D4:E5:03; fixed-address 10.0.0.153;}
- host diskless04 {hardware ethernet A1:B2:C3:D4:E5:04; fixed-address 10.0.0.154;}
- host diskless05 {hardware ethernet A1:B2:C3:D4:E5:05; fixed-address 10.0.0.155;}
- host diskless06 {hardware ethernet A1:B2:C3:D4:E5:06; fixed-address 10.0.0.156;}
- host diskless07 {hardware ethernet A1:B2:C3:D4:E5:07; fixed-address 10.0.0.157;}
- host diskless08 {hardware ethernet A1:B2:C3:D4:E5:08; fixed-address 10.0.0.158;}
- host diskless09 {hardware ethernet A1:B2:C3:D4:E5:09; fixed-address 10.0.0.159;}
- host diskless10 {hardware ethernet A1:B2:C3:D4:E5:10; fixed-address 10.0.0.160;}
- host diskless11 {hardware ethernet A1:B2:C3:D4:E5:11; fixed-address 10.0.0.161;}
- host diskless12 {hardware ethernet A1:B2:C3:D4:E5:12; fixed-address 10.0.0.162;}
- host diskless13 {hardware ethernet A1:B2:C3:D4:E5:13; fixed-address 10.0.0.163;}
- host diskless14 {hardware ethernet A1:B2:C3:D4:E5:14; fixed-address 10.0.0.164;}
- host diskless15 {hardware ethernet A1:B2:C3:D4:E5:15; fixed-address 10.0.0.165;}
- host diskless16 {hardware ethernet A1:B2:C3:D4:E5:16; fixed-address 10.0.0.166;}
- host diskless17 {hardware ethernet A1:B2:C3:D4:E5:17; fixed-address 10.0.0.167;}
- host diskless18 {hardware ethernet A1:B2:C3:D4:E5:18; fixed-address 10.0.0.168;}
- host diskless19 {hardware ethernet A1:B2:C3:D4:E5:19; fixed-address 10.0.0.169;}
- host diskless20 {hardware ethernet A1:B2:C3:D4:E5:20; fixed-address 10.0.0.170;}
- host diskless21 {hardware ethernet A1:B2:C3:D4:E5:21; fixed-address 10.0.0.171;}
- host diskless22 {hardware ethernet A1:B2:C3:D4:E5:22; fixed-address 10.0.0.172;}
- host diskless23 {hardware ethernet A1:B2:C3:D4:E5:23; fixed-address 10.0.0.173;}
- host diskless24 {hardware ethernet A1:B2:C3:D4:E5:24; fixed-address 10.0.0.174;}
- host diskless25 {hardware ethernet A1:B2:C3:D4:E5:25; fixed-address 10.0.0.175;}
- host diskless26 {hardware ethernet A1:B2:C3:D4:E5:26; fixed-address 10.0.0.176;}
- host diskless27 {hardware ethernet A1:B2:C3:D4:E5:27; fixed-address 10.0.0.177;}
- host diskless28 {hardware ethernet A1:B2:C3:D4:E5:28; fixed-address 10.0.0.178;}
- host diskless29 {hardware ethernet A1:B2:C3:D4:E5:29; fixed-address 10.0.0.179;}
- host diskless30 {hardware ethernet A1:B2:C3:D4:E5:30; fixed-address 10.0.0.180;}
- host diskless31 {hardware ethernet A1:B2:C3:D4:E5:31; fixed-address 10.0.0.181;}
- host diskless32 {hardware ethernet A1:B2:C3:D4:E5:32; fixed-address 10.0.0.182;}
- host diskless33 {hardware ethernet A1:B2:C3:D4:E5:33; fixed-address 10.0.0.183;}
- host diskless34 {hardware ethernet A1:B2:C3:D4:E5:34; fixed-address 10.0.0.184;}
- host diskless35 {hardware ethernet A1:B2:C3:D4:E5:35; fixed-address 10.0.0.185;}
- host diskless36 {hardware ethernet A1:B2:C3:D4:E5:36; fixed-address 10.0.0.186;}
- host diskless37 {hardware ethernet A1:B2:C3:D4:E5:37; fixed-address 10.0.0.187;}
- host diskless38 {hardware ethernet A1:B2:C3:D4:E5:38; fixed-address 10.0.0.188;}
- host diskless39 {hardware ethernet A1:B2:C3:D4:E5:39; fixed-address 10.0.0.189;}
- host diskless40 {hardware ethernet A1:B2:C3:D4:E5:40; fixed-address 10.0.0.190;}
- host diskless41 {hardware ethernet A1:B2:C3:D4:E5:41; fixed-address 10.0.0.191;}
- host diskless42 {hardware ethernet A1:B2:C3:D4:E5:42; fixed-address 10.0.0.192;}
- host diskless43 {hardware ethernet A1:B2:C3:D4:E5:43; fixed-address 10.0.0.193;}
- host diskless44 {hardware ethernet A1:B2:C3:D4:E5:44; fixed-address 10.0.0.194;}
- host diskless45 {hardware ethernet A1:B2:C3:D4:E5:45; fixed-address 10.0.0.195;}
- host diskless46 {hardware ethernet A1:B2:C3:D4:E5:46; fixed-address 10.0.0.196;}
- host diskless47 {hardware ethernet A1:B2:C3:D4:E5:47; fixed-address 10.0.0.197;}
- host diskless48 {hardware ethernet A1:B2:C3:D4:E5:48; fixed-address 10.0.0.198;}
- host diskless49 {hardware ethernet A1:B2:C3:D4:E5:49; fixed-address 10.0.0.199;}
- host diskless50 {hardware ethernet A1:B2:C3:D4:E5:50; fixed-address 10.0.0.200;}
- host diskless51 {hardware ethernet A1:B2:C3:D4:E5:51; fixed-address 10.0.0.201;}
- host diskless52 {hardware ethernet A1:B2:C3:D4:E5:52; fixed-address 10.0.0.202;}
- host diskless53 {hardware ethernet A1:B2:C3:D4:E5:53; fixed-address 10.0.0.203;}
- host diskless54 {hardware ethernet A1:B2:C3:D4:E5:54; fixed-address 10.0.0.204;}
- host diskless55 {hardware ethernet A1:B2:C3:D4:E5:55; fixed-address 10.0.0.205;}
- host diskless56 {hardware ethernet A1:B2:C3:D4:E5:56; fixed-address 10.0.0.206;}
- host diskless57 {hardware ethernet A1:B2:C3:D4:E5:57; fixed-address 10.0.0.207;}
- host diskless58 {hardware ethernet A1:B2:C3:D4:E5:58; fixed-address 10.0.0.208;}
- host diskless59 {hardware ethernet A1:B2:C3:D4:E5:59; fixed-address 10.0.0.209;}
- host diskless60 {hardware ethernet A1:B2:C3:D4:E5:60; fixed-address 10.0.0.210;}
- host diskless61 {hardware ethernet A1:B2:C3:D4:E5:61; fixed-address 10.0.0.211;}
- host diskless62 {hardware ethernet A1:B2:C3:D4:E5:62; fixed-address 10.0.0.212;}
- host diskless63 {hardware ethernet A1:B2:C3:D4:E5:63; fixed-address 10.0.0.213;}
- host diskless64 {hardware ethernet A1:B2:C3:D4:E5:64; fixed-address 10.0.0.214;}
- host diskless65 {hardware ethernet A1:B2:C3:D4:E5:65; fixed-address 10.0.0.215;}
- host diskless66 {hardware ethernet A1:B2:C3:D4:E5:66; fixed-address 10.0.0.216;}
- host diskless67 {hardware ethernet A1:B2:C3:D4:E5:67; fixed-address 10.0.0.217;}
- host diskless68 {hardware ethernet A1:B2:C3:D4:E5:68; fixed-address 10.0.0.218;}
- host diskless69 {hardware ethernet A1:B2:C3:D4:E5:69; fixed-address 10.0.0.219;}
- host diskless70 {hardware ethernet A1:B2:C3:D4:E5:70; fixed-address 10.0.0.220;}
- host diskless71 {hardware ethernet A1:B2:C3:D4:E5:71; fixed-address 10.0.0.221;}
- host diskless72 {hardware ethernet A1:B2:C3:D4:E5:72; fixed-address 10.0.0.222;}
- host diskless73 {hardware ethernet A1:B2:C3:D4:E5:73; fixed-address 10.0.0.223;}
- host diskless74 {hardware ethernet A1:B2:C3:D4:E5:74; fixed-address 10.0.0.224;}
- host diskless75 {hardware ethernet A1:B2:C3:D4:E5:75; fixed-address 10.0.0.225;}
- host diskless76 {hardware ethernet A1:B2:C3:D4:E5:76; fixed-address 10.0.0.226;}
- host diskless77 {hardware ethernet A1:B2:C3:D4:E5:77; fixed-address 10.0.0.227;}
- host diskless78 {hardware ethernet A1:B2:C3:D4:E5:78; fixed-address 10.0.0.228;}
- host diskless79 {hardware ethernet A1:B2:C3:D4:E5:79; fixed-address 10.0.0.229;}
- host diskless80 {hardware ethernet A1:B2:C3:D4:E5:80; fixed-address 10.0.0.230;}
- host diskless81 {hardware ethernet A1:B2:C3:D4:E5:81; fixed-address 10.0.0.231;}
- host diskless82 {hardware ethernet A1:B2:C3:D4:E5:82; fixed-address 10.0.0.232;}
- host diskless83 {hardware ethernet A1:B2:C3:D4:E5:83; fixed-address 10.0.0.233;}
- host diskless84 {hardware ethernet A1:B2:C3:D4:E5:84; fixed-address 10.0.0.234;}
- host diskless85 {hardware ethernet A1:B2:C3:D4:E5:85; fixed-address 10.0.0.235;}
- host diskless86 {hardware ethernet A1:B2:C3:D4:E5:86; fixed-address 10.0.0.236;}
- host diskless87 {hardware ethernet A1:B2:C3:D4:E5:87; fixed-address 10.0.0.237;}
- host diskless88 {hardware ethernet A1:B2:C3:D4:E5:88; fixed-address 10.0.0.238;}
- host diskless89 {hardware ethernet A1:B2:C3:D4:E5:89; fixed-address 10.0.0.239;}
- host diskless90 {hardware ethernet A1:B2:C3:D4:E5:90; fixed-address 10.0.0.240;}
- host diskless91 {hardware ethernet A1:B2:C3:D4:E5:91; fixed-address 10.0.0.241;}
- host diskless92 {hardware ethernet A1:B2:C3:D4:E5:92; fixed-address 10.0.0.242;}
- host diskless93 {hardware ethernet A1:B2:C3:D4:E5:93; fixed-address 10.0.0.243;}
- host diskless94 {hardware ethernet A1:B2:C3:D4:E5:94; fixed-address 10.0.0.244;}
- host diskless95 {hardware ethernet A1:B2:C3:D4:E5:95; fixed-address 10.0.0.245;}
- host diskless96 {hardware ethernet A1:B2:C3:D4:E5:96; fixed-address 10.0.0.246;}
- host diskless97 {hardware ethernet A1:B2:C3:D4:E5:97; fixed-address 10.0.0.247;}
- host diskless98 {hardware ethernet A1:B2:C3:D4:E5:98; fixed-address 10.0.0.248;}
- host diskless99 {hardware ethernet A1:B2:C3:D4:E5:99; fixed-address 10.0.0.249;}
-}
-
-# generate more lines with:
-# perl -e 'for (0..100) {printf "host workstation%02s {hardware ethernet A1:B2:C3:D4:E5:%02s; fixed-address 10.0.0.%02s;}\n",$_,$_,$_+50;}'
-# perl -e 'for (0..100) {printf "host diskless%02s {hardware ethernet A1:B2:C3:D4:E5:%02s; fixed-address 10.0.0.%02s;}\n",$_,$_,$_+150;}'
-# replace A1:B2:C3:D4:E5:XX with the hardware addresses of your clients
-
diff --git a/fai/config/scripts/FAISERVER/10-config b/fai/config/scripts/FAISERVER/10-config
index 646a863..28a53ad 100755
--- a/fai/config/scripts/FAISERVER/10-config
+++ b/fai/config/scripts/FAISERVER/10-config
@@ -1,8 +1,58 @@
#!/bin/bash
+set -e
+
fcopy -r /etc/fai
-if [ $FAI_ACTION = "install" ]; then
- fcopy /etc/dhcp/dhcpd.conf
- fcopy /etc/rc.local
+if [ $FAI_ACTION != "install" ]; then
+ exit 0
fi
+fcopy /etc/rc.local
+
+
+## Generate the DHCP configuration file 'dhcpd.conf'.
+## Use variables from corresponding class/*.var file.
+
+mv $target/etc/dhcp/dhcpd.conf $target/etc/dhcp/dhcpd.conf_orig
+
+cat > $target/etc/dhcp/dhcpd.conf <<EOF
+# dhcpd.conf generated by $0
+
+option dhcp-max-message-size 2048;
+use-host-decl-names on;
+
+option routers ${GATEWAY};
+option domain-name "intern";
+option domain-name-servers ${NAMESERVER_IPADDR};
+option ntp-servers ntp;
+
+subnet ${SUBNET} netmask ${NETMASK} {
+ allow unknown-clients;
+ range ${RANGE};
+ server-name faiserver;
+ next-server faiserver;
+ filename "fai/pxelinux.0";
+}
+
+group {
+ server-name faiserver;
+ next-server faiserver;
+ filename "fai/pxelinux.0";
+EOF
+
+PREFIX=`echo $SUBNET | cut -d "." --fields=1,2,3`
+
+for i in `seq 50 149` ; do
+ NUM=`printf "%02d" $(($i-50))`
+ IPADDR=$i
+ echo " host workstation$NUM {hardware ethernet A1:B2:C3:D4:E5:$NUM; fixed-address $PREFIX.$IPADDR;}" \
+ >> $target/etc/dhcp/dhcpd.conf
+done
+echo >> $target/etc/dhcp/dhcpd.conf
+for i in `seq 150 249` ; do
+ NUM=`printf "%02d" $(($i-150))`
+ IPADDR=$i
+ echo " host diskless$NUM {hardware ethernet A1:B2:C3:D4:E5:$NUM; fixed-address $PREFIX.$IPADDR;}" \
+ >> $target/etc/dhcp/dhcpd.conf
+done
+echo "}" >> $target/etc/dhcp/dhcpd.conf
--
Debian-LAN development and packaging
More information about the debian-lan-devel
mailing list