DHCP

/var/lib/dhcp/dhcpd.leases

Grundlagen

In dieser Datei merkt sich der DHCPD die zugeteilten Netzwerkdaten über den eingestellten Zeitraum. Die Einträge können folgendermaßen aussehen:

# All times in this file are in UTC (GMT), not your local timezone.   This is
# not a bug, so please don't ask about it.   There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature.   If this is inconvenient or confusing to you, we sincerely
# apologize.   Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0rc12

lease 192.168.1.56 {
  starts 5 2002/02/01 09:15:20;
  ends 5 2002/02/15 09:15:20;
  binding state active;
  next binding state free;
  hardware ethernet 00:50:bf:58:56:fd;
  uid "\001\000P\277XV\375";
  client-hostname "OEMComputer";
}
lease 192.168.1.51 {
  starts 5 2002/02/01 09:45:37;
  ends 5 2002/02/15 09:45:37;
  binding state active;
  next binding state free;
  hardware ethernet 00:48:54:1b:59:73;
  uid "\001\000HT\033Ys";
  client-hostname "thorstens";
}
lease 192.168.1.52 {
  starts 4 2002/01/10 13:59:04;
  ends 4 2002/01/24 13:59:04;
  tstp 4 2002/01/24 13:59:04;
  binding state free;
  hardware ethernet 00:50:bf:55:8d:46;
  uid "\001\000P\277U\215F";
  client-hostname "WINDOWSXP";
}

Die Datei startet mit einem Hinweis auf das verwendete Zeitformat, vermutlich haben viele irritierte Nutzer bei den Programmierern nachgefragt.

Die Zeilen mit binding zeigen an, dass der dhcpd die Nameserver-Einstellungen verändert hat. Die ersten beiden Rechner sind in Betrieb (binding state active), der dritte Rechner nicht (binding state free).