A Step-by-Step Guide to Configuring DHCP on Windows Server 2016 Using GUI and PowerShell.
With GUI
1. Run தி DHCP console from the apps list. செல்லவும் IPv4\Server Options. There we config Server options for all scopes;
2. Right Mouse Button click at Server Options மற்றும் கிளிக் செய்யவும் Configure Options;
3. Select option 006 DNS Servers, enter an IP address, மற்றும் கிளிக் செய்யவும் கூட்டு;
4. Select option 015 DNS Domain Name, enter the domain name, மற்றும் கிளிக் செய்யவும் சரி;
5. New options added;
6. Right Mouse Button click at IPv4 மற்றும் கிளிக் செய்யவும் New Scope;
7. கிளிக் செய்யவும் அடுத்தது;
8. Enter பெயர் (and if you wish Description), மற்றும் கிளிக் செய்யவும் அடுத்தது;
9. Enter 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. I choose இல்லை, கிளிக் செய்யவும் அடுத்தது;
13. கிளிக் செய்யவும் Finish;
14. Scope created, but we must Activate it;
15. Right Mouse Button click at the scope and click Activate;
16. Scope activated and worked!
17. If you Right Mouse Button click on Leased IP Address, you may Add to the reservation Add to the filter, or even Delete it;
With PowerShell
1. Run பவர்ஷெல் 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.