Open lewis-green opened 1 year ago
Hi @lewis-green
Are you able to share the current set range on the DHCP server with me? For example the output of the following command?
Get-DhcpServerv4Scope -ScopeId 10.25.200.0
Regards Marius
@jiuka There is no scope. Does it not create them if missing?
@lewis-green it is created and then the range is set. So it should be there now, but with no or a wrong range. 0.0.0.0
as a start address. The setting of the range is a bit tricky as it is not possible to move a range only shrink or expand one. In this case my suspicion is that the 0.0.0.0 is returned from the DHCP Server as the start of the current range. Is there realy no Scope or just no range? Which version of Windows DHCP server are you using?
Regards marius
I've got this:
ScopeId : 10.25.200.0
Name : <omitted>
Description : <omitted>
SuperscopeName :
SubnetMask : 255.255.255.0
StartRange : 0.0.0.0
EndRange : 0.0.0.0
LeaseDuration : 00:00:00
NapProfile :
NapEnable : False
Delay(ms) : 0
State : Active
Type : Dhcp
MaxBootpClients : 4294967295
ActivatePolicies : True
It's Server 2022 DHCP.
It seems running it in VS Code with the source code it works fine but the 0.9.4 Installer doesn't work right.
I added additional logic to limit the range to the scope 561541432a2fa0299f4ebbb778f967d2ba159bc8. However there seems to be some (maybe caching) problems if the installer does not work but the compiled version does. Still investigating this.
@jiuka It seems it all worked straight away with this 0.97 build :)
Having tried the tool I have worked through and added all the tags, roles etc. I have now got it to attempt to sync a prefix into DHCP.
When it does it sets the start address as 0.0.0.0.
Logs
PREFIX
IP RANGE