File: dhcpd.conf

package info (click to toggle)
fai 6.5.5
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,072 kB
  • sloc: sh: 6,722; perl: 5,622; makefile: 138
file content (32 lines) | stat: -rw-r--r-- 1,227 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# dhcpd.conf for a fai installation server
# replace faiserver with the name of your install server

deny unknown-clients;
option dhcp-max-message-size 2048;
use-host-decl-names on;
#always-reply-rfc1048 on;

subnet 192.168.33.0 netmask 255.255.255.0 {
   option routers 192.168.33.250;
   option domain-name "fai";
   option domain-name-servers 192.168.33.250;
   option time-servers faiserver;
   option ntp-servers faiserver;
   server-name faiserver;
   next-server faiserver;
   if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000" {
         filename "fai/pxelinux.0";
   }
   if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007" {
         filename "fai/syslinux.efi";
   }
   if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00011" {
          filename "boot/grub/grubnetaa64.efi";
   }
}

# generate a lot of entries with:
# perl -e 'for (1..10) {printf "host client%02s {hardware ethernet 52:54:00:11:23:%02X;fixed-address client%02s;}\n",$_,$_,$_;}'
# then replace  52:54:00:11:23:XX with the hardware addresses of your clients
# 52:54:00:11:23 is a prefix used by fai-kvm
host demohost {hardware ethernet 0:2:a3:b5:c5:41;fixed-address demohost;}