A Step-by-Step Guide to Configuring DHCP on Windows Server 2016 Using GUI and PowerShell.
مع واجهة المستخدم الرسومية
1. يجري ال DHCP console from the apps list. انتقل إلى IPv4\Server Options. There we config Server options for all scopes;
2. أضغط على زر الماوس الايمن click at Server Options وانقر Configure Options;
3. Select option 006 DNS Servers, يدخل an IP address, وانقر يضيف;
4. Select option 015 DNS Domain Name, enter the domain name, وانقر نعم;
5. New options added;
6. أضغط على زر الماوس الايمن click at IPv4 وانقر New Scope;
7. انقر التالي;
8. يدخل اسم (and if you wish وصف), وانقر التالي;
9. يدخل the Start IP address, End IP address, و Subnet mask, وانقر التالي;
10. On this page, you may exclude the IP range from DHCP. انقر التالي;
11. تعيين Lease Duration وانقر التالي;
12. You may select نعم and configure Scope Options for this scope. انا اخترت لا, انقر التالي;
13. انقر ينهي;
14. Scope created, but we must Activate it;
15. أضغط على زر الماوس الايمن click at the scope and click Activate;
16. Scope activated and worked!
17. If you أضغط على زر الماوس الايمن انقر على Leased IP Address, you may Add to the reservation Add to the filter, or even يمسح it;
مع باورشيل
1. يجري بوويرشيل as Administrator. To get active scopes enter:
Get-DhcpServerv4Scope -cn <dhcp server name> | select scopeid, name, description
2. To add new scope, يدخل:
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 أفضل الممارسات is run the command with WhatIf معامل:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name> -WhatIf
4. Then run without the WhatIf معامل:
Remove-DhcpServerv4Scope -ScopeId <scope id> -cn <dhcp server name>
5. Scope removed.