DHCP

Aus STARFACE Wiki

Wechseln zu: Navigation, Suche
This instruction is valid for installations of STARFACE with Version 3.0.0.0 or greater.
Dieser Artikel ist nicht aktuell oder nicht fertig. Grund: Übersetzen ergänzen

Inhaltsverzeichnis

Installation

  • Eine ssh-Verbindung zur STARFACE aufbauen
  • Dhcp Paket installieren
yum install dhcp 
  • (zur Zeit noch manuell mit RPM)
wget ftp://fr2.rpmfind.net/linux/ASPLinux/i386/updates/11/i386/dhcp-3.0.2-34.FC4.i386.rpm 
rpm -ivh dhcp-3.0.2-34.FC4.i386.rar
  • Anpasssen der dhcpd.conf
vi /etc/dhcpd.conf
  • Dhcp-Server starten
service dhcpd start
  • Server beim hochfahren automatisch einschalten
chkconfig dhcpd on

Debug

  • Mit dhcpd -d (-d = debug) kann man testen, ob der DHCP-Server richtig läuft und ob eventuell ein paar Fehler in der Konfiguration sind.
  • in die Datei /var/log/messages werden sämtliche Aktionen geloggt

Beispiel

Beispiel dhcp.conf

class "VoIP" {
       match if substring(hardware, 1, 2) = 00:0B;
}

authoritative;
ddns-update-style       none;


subnet 192.168.0.0 netmask 255.255.0.0 {
  max-lease-time 3600;
  default-lease-time 1800;
  option domain-name "yourdomain.name";
  option subnet-mask 255.255.0.0;

  pool {
    allow members of "VoIP";
    default-lease-time 500; # default lease 1 hour
    max-lease-time 500; # maximum lease 1 hour
    range 192.168.3.2 192.168.3.253;
  }
  pool {
    deny members of "VoIP";
    range 192.168.1.2 192.168.1.253;
  }
}

weitere Beispiele

Weitere Einstellungen

  • Verteilung von Bootserver option
option boot-server code 66 = string;
option boot-server "Bootserver-URL";
Administrator