DHCP für FAI Debian Wheezy

Einrichtung eines DHCP Server für FAI Installationen


Der DHCP Server für FAI ist sehr schnell eingerichtet und einfach zu warten und zu benutzen.

Wenn durch FAI nicht installiert

[stextbox id=“bash“]apt-get install isc-dhcp-server[/stextbox]


Die Grundkonfiguration ist in ein paar schritten abgeschlossen.

[stextbox id=“bash“]nano /etc/dhcp/dhcpd.conf[/stextbox]

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

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

# A slightly different configuration for an internal subnet.
subnet netmask {
        option routers;
        option domain-name "dmz-home.secretisland.de";
        option domain-name-servers;
        option time-servers fai-wheezy;
        option ntp-servers fai-wheezy;
        server-name fai-wheezy;

        next-server fai-wheezy;
        filename "pxelinux.0";

# Fixed IP addresses can also be specified for hosts.   These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP.   Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
host test {
        hardware ethernet 00:30:18:a7:b2:ec;
        fixed-address test.dmz-home.secretisland.de;

Und danach den DHCP neu starten

[stextbox id=“bash“]/etc/init.d/isc-dhcp-server restart[/stextbox]

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert