DHCP is down - Liam-DiFalco/Sys255-FA24 GitHub Wiki
Enable DHCP on the File server
- Use PowerShell on fs01-liam and run the command
Install-WindowsFeature DHCP -IncludeManagementTools
- Run Command in
PowerShell Add-DHCPServerInDCand
check the output withGet-DhcpServerInDC
****Output should look like this:
IPAddress DnsName
--------- -------
10.0.5.8 fs01.liam.liam.local
- Now set the scope by using the command
Add-DhcpServerv4Scope -Name Whateveruwant" -StartRange [Starting IP] -EndRange [Ending IP] -SubnetMask [Subnet]
- Then set the dns and default gateway
Set-DhcpServerv4OptionValue -dnsserver [DNS IP] -dnsdomain [Domain name] -router [Gateway IP]
Setting up DHCP on AD server
- In the ad server, go to manage and select Add Roles and Features
- Keep the default options until you get to Server Selection, where you select the file server fs01-liam
- And in Server Roles, select DHCP Server if not already installed and follow the rest of the prompts and install
- Then go back to roles and features and select AD02. Then go to features and check off Remote Server Administration Tools > Role Administration Tools > DHCP Server Tools
- Then go to tools > dhcp and manage the dhcp server from there and check your work and make sure your ranges are correct and the file server is authenticated as a dhcp server.
Checking
- Go to the domain computers and open your terminal of choice.
- Type these commands
ipconfig /release
ipconfig /renew
ipconfig /all