dhcpobjs

Querying a DHCP server in C#

≡放荡痞女 提交于 2020-02-10 10:56:51
问题 I need to get the mapping of MAC to IP stored on DHCP server, either through a program running on the server itself or preferably through a program running on one of the DHCP clients. I understand netsh utility can be used to get the dump however i have not had much success with that. Any working examples or hint on that? I have admin rights on DHCP server Edit I dont want to use arp cache as that would require me to either broadcast ping (which is not allowed on windows) or ping the all

Querying a DHCP server in C#

点点圈 提交于 2020-02-10 10:56:09
问题 I need to get the mapping of MAC to IP stored on DHCP server, either through a program running on the server itself or preferably through a program running on one of the DHCP clients. I understand netsh utility can be used to get the dump however i have not had much success with that. Any working examples or hint on that? I have admin rights on DHCP server Edit I dont want to use arp cache as that would require me to either broadcast ping (which is not allowed on windows) or ping the all

Querying a DHCP server in C#

荒凉一梦 提交于 2020-02-10 10:56:06
问题 I need to get the mapping of MAC to IP stored on DHCP server, either through a program running on the server itself or preferably through a program running on one of the DHCP clients. I understand netsh utility can be used to get the dump however i have not had much success with that. Any working examples or hint on that? I have admin rights on DHCP server Edit I dont want to use arp cache as that would require me to either broadcast ping (which is not allowed on windows) or ping the all

Programmatically Create DHCP Reservation in C#

扶醉桌前 提交于 2019-12-10 21:05:01
问题 I have been assigned the task of creating an application that takes in a MAC address and creates a DHCP reservation for that MAC address. Is there any API built into .NET to easily accomplish this? 回答1: When I was writing apps for infrastructure there was a COM library called Dhcpobjs.dll in the Windows 2000 Resource Kit. This could be dynamically loaded by a VBScript using IDispatch like so: Set DhcpMgr = CreateObject("Dhcp.Manager") Set DhcpServer = DhcpMgr.Servers.Connect("192.130.1.5") I