Вы можете manuipulate использование DHCP netsh
. Используя сервер DHCP, названный srv1, добавьте резервирование для компьютера, названного clientA.domain.lan, с MAC 00FF00FF00FF, к объему 192.168.0.0:
netsh dhcp server srv1 scope 192.168.0.0 add reservedip 192.168.0.101 00FF00FF00FF clientA.domain.lan
Можно сделать намного больше, чем DHCP с netsh
. Ввод netsh
войдите в подсказку команды Windows, переключит Вас на netsh
контекст. help
команда отобразит доступные варианты.
Установите samba4 в качестве контроллера домена, и тогда он сможет действовать как сервер Active Directory.
См. http://wiki.samba.org/index.php/Samba4
оставьте DHCP-сервер там, где он находится, или запустите это на том же сервере, что и samba4
What version of Windows server are you running? Server 2012 has the ability to run in a failover cluster relationship. I have attached a blog post about it below. Unfortunately it is talking about migrating from an existing Windows DHCP environment. But it may have some useful info for you.
As for the importing the dhcpd.conf
if you grep out your different subnets using something like cat /etc/dhcpd.conf | grep subnet
you can create a list of your subnets and then script putting them in using something like:
netsh dhcp server add scope <ScopeAddress> <SubnetMask> <ScopeName> [ScopeComment]
Then for your reservations you could do something like cat /etc/dhcpd.conf | grep host
this will get you a list of hosts then you will need to figure out some way to break them out by subnet and use the command:
netsh dhcp server scope 192.168.1.0 add reservedip <ReservedIP> <MAC_Address> [ClientName] [ClientComment] [ClientType(DHCP | BOOTP | BOTH)]"
to add the reservations to the database. If you want more information about netsh
look here.
Nick
Migrating existing DHCP Server deployment to Windows Server 2012 DHCP Failover