I am trying to create a dynamic IP resolver using python3 on linux to query a windows DHCP server and return the IP that it would be given. My purpose is to supply the returned IP address as a Framed-IP-Address in FreeRADIUS and forward it to a SSO agent.
I have modified this python script to take a mac address argument and build the DHCP request. When I run it through WireShark, I see the DHCP request is using the argument, but the DHCP server is returning an IP different than what it should.
Are there any safeguards on a Windows 2008 DHCP server that prevent a "spoofed" DHCP request? Is there a similar command on linux like there is on windows:
netsh dhcp server <type.srvIP.here> scope s.s.s.s show client | find "MACAddress" ?