Sys265‐DHCPlab - ConnorEast/Tech-Journal GitHub Wiki
<< Previous Page
Step | Section | Images [If needed] |
---|---|---|
In "Server manager" go to > "tools\add-roles-and-features" | ||
Under Server Rules: Select "DHCP Server" | ||
Continue to the "results" tab and hit install | ||
Once the installation has completed select "complete DHCP configuration" |
![]() |
|
On the page labeled "Post-Install configuration wizard" confirm an admin accounts credentials are used. IE:connor.east-adm | ||
Right click on the server and select DHCP services | ||
From the DropDown right click Ipv4 and select new scope |
![]() |
|
On the "New Scope Wizard" add a Name and description for your scope. |
![]() |
|
On the page labeled "IP Address Range" insert the information neccessarry for your system |
![]() |
|
On the page labeled "Add Exclusions and Delay" Leave it blank unless you have devices that need a specific IP to function | ||
On the page labeled "lease duration" feel free to leave it as is |
![]() |
|
On the page labeled "Configure DHCP Options" confirm yes is selected and hit next | ||
On the page labeled "Router (Default Gateway)" insert 10.0.5.2 in the location labeled "ip address" |
![]() |
|
Complete the rest of the setup |
On your Wks01 server change the ethernet IPv4 settings to automatic instead of manual. before running the following commands
Command | Sect | Image |
---|---|---|
ipconfig /release | CLI |
![]() |
ipconfig /renew | CLI |
![]() |
ipconfig /all | CLI |
![]() |
- Named Domain User: connor.east-adm
- IPv4 Address:
- DHCP Server IP: 10.0.5.5
- Gateway IP: 10.0.5.2
- DNS's IP: 10.0.5.5
-
- # locate Domain user and assign it to a variable
- ~~~~ $domainUserName = [System.Security.Principal.WindowsIdentity]::GetCurrent().name
- # Locates the IPv4 address from the first network adapter available and assign it to a variable
- ~~~~ $networkAddress = Get-NetIPAddress | Where-Object { $_.AddressFamily -eq 'IPv4'}
- # Get DHCP Server IP From network address and assign it to a variable
- ~~~~ $dhcpServerIP = Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Where-Object {$_.DHCPEnabled -eq $true} | Select-Object -ExpandProperty DHCPServer
- # Get DNS Server Address and set it equal to a variable
- ~~~~ $dnsIP = Get-DnsClientServerAddress | Select-Object -ExpandProperty ServerAddresses
- # The following commands output the contents of the variables above
- ~~~~ Write-Host "Domain User: $domainUserName"
- ~~~~ Write-Host "IPv4 Address: $($networkAddress.IPAddress)"
- ~~~~ Write-Host "DHCP Server: $dhcpServerIP"
- ~~~~ Write-Host "Gateway IP: $gatewayIP"
- ~~~~ Write-Host "DNS IP: $dnsIP"