Hello,
I have a DHCP server set on ether1, with a pool of 7 IP addresses:
/ip dhcp-server
add address-pool=pool0 interface=ether1 lease-time=1d name=dhcp-k8s-test
Pool0 looks like this:
/ip pool
add name=pool0 ranges=192.168.71.141-192.168.71.147
This means that IPs from .141 to .147 should be assigned:
141, 142, 143, 144, 145, 146, 147
: 7 IPs.
My leases look like:
/ip dhcp-server lease
add address=192.168.71.141 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:b8:2b:19:d3:51:43:1c:40 mac-address=00:50:56:AA:E1:FC server=dhcp-k8s-test
add address=192.168.71.142 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:51:41:4c:64:a1:84:3:b9 mac-address=00:50:56:AA:B2:90 server=dhcp-k8s-test
add address=192.168.71.143 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:93:ca:38:6:ea:56:41:b3 mac-address=00:50:56:AA:AF:1D server=dhcp-k8s-test
add address=192.168.71.144 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:59:cd:a2:7f:92:e8:26:fb mac-address=00:50:56:AA:CE:95 server=dhcp-k8s-test
add address=192.168.71.145 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:e0:4f:ab:e:56:9a:ba:1c mac-address=00:50:56:AA:D6:C1 server=dhcp-k8s-test
add address=192.168.71.146 client-id=ff:2b:94:34:c1:0:2:0:0:ab:11:53:db:fe:ae:65:5f:7f:61 mac-address=00:50:56:AA:DB:46 server=dhcp-k8s-test
Why do I get the following errors:
/log/print
2025-05-20 08:56:06 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
2025-05-20 08:56:14 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
2025-05-20 08:56:26 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
2025-05-20 08:56:34 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
2025-05-20 08:56:41 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
2025-05-20 08:56:52 dhcp,error dhcp-k8s-test: failed to give out IP address: pool <pool0> is empty
I donāt have any dynamically assigned IPs, as it can be seen from the lease list. I only have 6 devices. Still, DHCP says that the pool is empty.
Also, if I go via WinBox to IP ā Pool ā Pool0, I can see
Total: 7
Used: 7
Whereās the 7th IP?
Thank you!