|
dhcpd.leases
|
|||
---|---|---|---|
#18+
Граждане! Случайно заглянул в сабж и обнаружил там кучу вот таких записей: lease 10.32.98.185 { starts 3 2016/09/21 06:18:54; ends 4 2016/09/29 06:18:54; tstp 4 2016/09/29 06:18:54; binding state free; hardware ethernet 54:78:1a:12:91:fa; uid "\001Tx\032\022\221\372"; } lease 10.32.98.183 { starts 2 2016/10/04 06:17:16; ends 3 2016/10/12 06:17:16; tstp 3 2016/10/12 06:17:16; binding state free; hardware ethernet 54:78:1a:12:8f:4b; uid "\001Tx\032\022\217K"; } lease 10.32.98.143 { starts 2 2016/12/20 14:08:31; ends 3 2016/12/28 14:08:31; tstp 3 2016/12/28 14:08:31; binding state free; hardware ethernet ec:e1:a9:ca:70:4f; uid "\001\354\341\251\312pO"; } lease 10.32.98.189 { starts 5 2017/01/27 10:17:00; ends 6 2017/02/04 10:17:00; tstp 6 2017/02/04 10:17:00; binding state free; hardware ethernet 3c:ce:73:d5:83:7f; uid "\001<\316s\325\203\177"; } Их много. За какие-то дремучие года. Вопрос: можно ли очистить сабж от записей, время аренды у которых давно закончилось? И как это сделать не вручную :)) Спасибо ... |
|||
:
Нравится:
Не нравится:
|
|||
20.05.2021, 12:09 |
|
dhcpd.leases
|
|||
---|---|---|---|
#18+
По идее сам должен чиститься. man dhcdp.leasesIn order to prevent the lease database from growing without bound, the file is rewritten from time to time. First, a temporary lease database is created and all known leases are dumped to it. Then, the old lease database is renamed /var/lib/dhcpd/dhcpd.leases~. Finally, the newly written lease database is moved into place. ... |
|||
:
Нравится:
Не нравится:
|
|||
20.05.2021, 12:25 |
|
|
start [/forum/topic.php?fid=25&fpage=2&tid=1480930]: |
0ms |
get settings: |
18ms |
get forum list: |
5ms |
check forum access: |
1ms |
check topic access: |
1ms |
track hit: |
40ms |
get topic data: |
7ms |
get forum data: |
1ms |
get page messages: |
72ms |
get tp. blocked users: |
2ms |
others: | 371ms |
total: | 518ms |
0 / 0 |