A Step-by-Step Guide to Configuring DHCP on Windows Server 2016 Using GUI and PowerShell.
Med GUI
1. Springa de DHCP console från applistan. Navigera till IPv4\Server Options. There we config Server options for all scopes;
2. Höger musknapp click at Server Options och klicka Configure Options;
3. Select option 006 DNS Servers, stiga på an IP address, och klicka Lägg till;
4. Select option 015 DNS Domain Name, enter the domain name, och klicka OK;
5. New options added;
6. Höger musknapp click at IPv4 och klicka New Scope;
7. Klick Nästa;
8. Stiga på namn (and if you wish Beskrivning), och klicka Nästa;
9. Stiga på the Start IP address, End IP address, och Subnet mask, och klicka Nästa;
10. On this page, you may exclude the IP range from DHCP. Klick Nästa;
11. Uppsättning Lease Duration och klicka Nästa;
12. You may select Ja and configure Scope Options for this scope. jag väljer Nej, klick Nästa;
13. Klick Avsluta;
14. Scope created, but we must Activate Det;
15. Höger musknapp click at the scope and click Activate;
16. Scope activated and worked!
17. If you Höger musknapp Klicka på Leased IP Address, you may Add to the reservation Add to the filter, or even Radera Det;
Med PowerShell
1. Springa PowerShell as Administrator. To get active scopes enter:
Get-DhcpServerv4Scope -cn <dhcp server name> | select scopeid, name, description
2. To add new scope, stiga på:
Add-DhcpServerv4Scope -Name ‘<scope name>’ -StartRange <start IP Address> -EndRange <end IP Address> -SubnetMask <subnet mask> -Description ‘<description>’ –cn <dhcp server name>
3. Before scope delete Bästa metoder is run the command with WhatIf parameter:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name> -WhatIf
4. Then run without the WhatIf parameter:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name>
5. Scope removed.