A Step-by-Step Guide to Configuring DHCP on 윈도우 서버 2016 Using GUI 그리고 파워셸.
With GUI
1. 달리다 그만큼 DHCP console from the apps list. 다음으로 이동 IPv4\Server Options. There we config Server options for all scopes;
2. 마우스 오른쪽 버튼 click at Server Options and click Configure Options;
3. Select option 006 DNS Servers, enter an IP address, and click Add;
4. Select option 015 DNS Domain 이름, enter the domain name, and click 좋아요;
5. New options added;
6. 마우스 오른쪽 버튼 click at IPv4 and click New Scope;
7. Click Next;
8. 입력하다 이름 (and if you wish Description), and click Next;
9. 입력하다 the Start IP address, End IP address, 그리고 Subnet mask, and click Next;
10. On this page, you may exclude the IP range from DHCP. Click Next;
11. Set Lease Duration and click Next;
12. You may select 예 and configure Scope Options for this scope. I choose 아니요, click Next;
13. Click Finish;
14. Scope created, but we must Activate it;
15. 마우스 오른쪽 버튼 click at the scope and click Activate;
16. Scope activated and worked!
17. If you 마우스 오른쪽 버튼 click on Leased IP Address, you may Add to the reservation Add to the filter, or even Delete it;
With PowerShell
1. 달리다 파워셸 as Administrator. To get active scopes enter:
Get-DhcpServerv4Scope -cn <dhcp server name> | select scopeid, name, description
파워셸2. To add new scope, enter:
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 Best Practices 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.