Em algum momento no meu arquivo /tmp/dhcpd.LAN.leases
eu tenho duas ou três vezes a mesma informação. Neste exemplo, não é realmente um problema, mas com centenas de endereços IP diferentes será.
Abaixo um extrato do meu arquivo de aluguel:
Dados corretos:
lease 192.168.20.4 {
starts 5 2017/10/06 09:00:44;
ends 5 2017/10/06 09:10:44;
cltt 5 2017/10/06 09:00:44;
binding state active;
next binding state free;
hardware ethernet 8c:4d:54:50:18:13;
client-hostname "alexandre-laptop";
}
lease 192.168.20.2 {
starts 5 2017/10/06 09:04:43;
ends 5 2017/10/06 09:14:43;
cltt 5 2017/10/06 09:04:43;
binding state active;
next binding state free;
hardware ethernet 01:23:f2:51:0f:36;
uid "lease 192.168.20.4 {
starts 5 2017/10/06 09:04:57;
ends 5 2017/10/06 09:14:57;
cltt 5 2017/10/06 09:04:57;
binding state active;
next binding state free;
hardware ethernet 8c:4d:54:50:18:13;
client-hostname "alexandre-laptop";
}
lease 192.168.20.4 {
starts 5 2017/10/06 09:04:57;
ends 5 2017/10/06 09:14:57;
cltt 5 2017/10/06 09:04:57;
binding state active;
next binding state free;
hardware ethernet 8c:4d:54:50:18:13;
client-hostname "alexandre-laptop";
}
lease 192.168.20.2 {
starts 5 2017/10/06 09:09:44;
ends 5 2017/10/06 09:19:44;
cltt 5 2017/10/06 09:09:44;
binding state active;
next binding state free;
hardware ethernet 01:23:f2:51:0f:36;
uid "%pre%1%pre%032%pre%170";
}
1%pre%032%pre%170";
}
Dados incorretos:
%pre% Na dependência, às vezes, o endereço MAC não está correto, não sei se isso pode ajudar. Para obter informações, o arquivo /var/lib/dhcpd/dhcpd.leases
tem o mesmo erro e nada de especial foi adicionado ao arquivo de configuração.
Alguém já tem esse problema?