Support #21236
closed
No ping check causes duplicated IP with MS DHCP
Added by Anthony Chevalet over 7 years ago.
Updated about 7 years ago.
Description
Since I've upgraded from 1.13 to 1.15, the smart-proxy does not ping free ip returned by the dhcp before
assigning it. In the debug log there is no more message "Searching for free IP - pinging ..".
It just gives the first free ip returned by the dhcp.
Related issues
1 (1 open — 0 closed)
Ms dhcp provider relies on MS dhcps api for free ip suggestions. Getting an ip address that is already in use would means that there are ip addresses within dhcp scope that dhcp server isn't aware of (for example static ips not managed by the server).
Yes that's the problem, when there are static ips in the dhcp scope. Previous version (<=1.13) didn't return pingable IPs.
- Tracker changed from Bug to Support
This behaviour is by design. Check that ping checks are enabled in the scope in question. If not, try enabling them and see if the server still comes back with ips that are in use. If the checks are already enabled, I would suggest:
- create reservations for those ip addresses, or
- create an excluded ip range within dhcp scope to contain those static ips, or
- move static ips out of dhcp scope, or
- shrink the scope to exclude static ips
The functionality has been rewritten to use ms api. There are no plans to add additional checks over the ones performed by api internally.
The problem is that ms api does not provide this feature. The DhcpV4GetFreeIPAddress that is called only returns free IPs from DHCP point of view, there is no option to do a ping check.
Just in case, I've proposed a patch: https://github.com/theforeman/smart-proxy/pull/546
Please let me know what you think about it.
I agree with Anthony. Getting an IP that is taken somewhere else is a PITA and it happens if we just rely on the MS DHCP. I am in favor of this patch.
- Status changed from New to Closed
- % Done changed from 0 to 100
Thank you for this!! Duplicate IPs just start wreaking havoc due to this. I'll try the patch now.
- Related to Bug #24816: MS DHCP cannot give free IP when it finds multiple pingable ip added
Also available in: Atom
PDF