A Step-by-Step Guide to Configuring DHCP on Windows Server 2016 Using GUI and PowerShell.
GUI:n kanssa
1. Juosta the DHCP console from the apps list. Navigoida johonkin IPv4\Server Options. There we config Server options for all scopes;
2. Hiiren oikea painike click at Server Options ja napsauta Configure Options;
3. Select option 006 DNS Servers, tulla sisään an IP address, ja napsauta Lisätä;
4. Select option 015 DNS Domain Name, enter the domain name, ja napsauta OK;
5. New options added;
6. Hiiren oikea painike click at IPv4 ja napsauta New Scope;
7. Klikkaus Seuraava;
8. Tulla sisään Nimi (and if you wish Description), ja napsauta Seuraava;
9. Tulla sisään the Start IP address, End IP address, ja Subnet mask, ja napsauta Seuraava;
10. On this page, you may exclude the IP range from DHCP. Klikkaus Seuraava;
11. Set Lease Duration ja napsauta Seuraava;
12. You may select Joo and configure Scope Options for this scope. I choose Ei, klikkaus Seuraava;
13. Klikkaus Suorittaa loppuun;
14. Scope created, but we must Activate it;
15. Hiiren oikea painike click at the scope and click Activate;
16. Scope activated and worked!
17. If you Hiiren oikea painike Klikkaa Leased IP Address, you may Add to the reservation Add to the filter, or even Poistaa it;
PowerShellin kanssa
1. Juosta PowerShell as Administrator. To get active scopes enter:
Get-DhcpServerv4Scope -cn <dhcp server name> | select scopeid, name, description
2. To add new scope, tulla sisään:
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 Parhaat käytännöt is run the command with WhatIf parametri:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name> -WhatIf
4. Then run without the WhatIf parametri:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name>
5. Scope removed.