Managing a DHCP Server Role - Paiet/Windows-Server-Wiki GitHub Wiki
Using the Management Console
--Create DHCP scopes and view current leases. Provide a pool of available IP Addresses
dhcpcmd.exe
You must have local admin rights & server must have a static IP Address
Retrieve IP addresses and MAC addresses of current leases
--Create DHCP policies to customize network configurations based on specified conditions
--Configure DHCP failover
Install- WindowsFeature -Name DHCP --T1 50% T2 87.5%
Creating DHCP Scopes
--Add Scope Options Such as Default Gateway, Subnet masks, DNS
--Allows DHCP Management
--Create scopes for IPv4 and IPv6
--Only configure scope level unless there is a reason --Server level - Assigns a server-level option to all DHCP clients of the DHCP server.
--Scope level - Assigns a scope-level option to all clients of a scope. Scope options override server options.
--Class level - Assigns a class-level option to all clients that identify themselves as members of a class. Class options override both scope and server options.
--Reserved client level - Assigns a reservation-level option to one DHCP client. Reserved client options apply to devices that have a DHCP reservation.
Viewing the DHCP Configuration
--address pool
--DHCP Leases
--Reservations
View the Configuration and current activity for a scope
-- LAB Create & configure a scope in the DHCP Management Console
----New Scope
----Authorize
----Explore Scope & Server Options to verity no conflicts
--Explore Filters to use MAC based ACL
-- LAB Create a DHCP Reservation in the management console
-- LAB Create a DHCP Reservation using PowerShell
Viewing the configuration for the server
--Stop and start the DHCP service
-- LAB Backup the DHCP configuration by using PowerShell
-- LAB Restore the DHCP Configuration by using PowerShell
Backing up and restoring DHCP
--RT Click on Server
%SYSTEMROOT%\System32\dhcp\backup
--Check work
In the root, there should be a configuration file (DhcpCfg). In a folder named 'new', there should be two database files (dhcp.mdb and dhcp.pat ) and transaction log files (*.log). When you back up DHCP, the following information is saved: All scopes, including superscopes and multicast scopes Reservations Leases All options, including server options, scope options, reservation options, and class options All registry keys and other configuration settings (for example, audit log settings and folder location settings)
-- Delete Reservation
--Restore
--The DHCP client broadcasts a DHCPDISCOVER packet to every computer in the subnet. The only computers that respond are computers that have the DHCP server role, or computers or routers that are running a DHCP relay agent.
--A DHCP Server responds with a DHCPOFFER packet, which contains a potential address for the client.
--The client receives the DHCPOFFER packet. It might receive packets from multiple servers. If it does, it usually selects the server that made the fastest response to its DHCPDISCOVER, which typically is the DHCP server closest to it. The client then broadcasts a DHCPREQUEST that contains a server identifier. This informs the DHCP servers that receive the broadcast which server's DHCPOFFER the client has chosen to accept.
--The DHCP servers receive the DHCPREQUEST. Servers that the client has not accepted use this message as the notification that the client declines that server's offer. The chosen server stores the IP address-client information in the DHCP database and responds with a DHCPACK message. If the DHCP server cannot provide the address that was offered in the initial DHCPOFFER, the DHCP server sends a DHCPNAK message.