Переместите Linux dhcp в активный каталог

Вы можете 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 команда отобразит доступные варианты.

5
задан 10 June 2011 в 04:28
2 ответа

Установите samba4 в качестве контроллера домена, и тогда он сможет действовать как сервер Active Directory.

См. http://wiki.samba.org/index.php/Samba4

оставьте DHCP-сервер там, где он находится, или запустите это на том же сервере, что и samba4

-5
ответ дан 3 December 2019 в 02:17

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

2
ответ дан 3 December 2019 в 02:17

Теги

Похожие вопросы