Lab DHCP Config
Lab DHCP Config
9. Wait until a notification displays indicating that the DHCP role is installed. If necessary,
select the Notifications icon to verify the current status.
12. Wait for a notification that the DHCP PowerShell tools are installed. If necessary, select
the Notifications icon to verify the current status.
Task 2: Authorize the DHCP server
2. In the Create a new scope dialog box, enter the following information, and then
select Create.
o Protocol: IPv4
o Name: ContosoClients
o Starting IP address: 10.100.150.50
o Ending IP address: 10.100.150.254
o DHCP client subnet mask: 255.255.255.0
o Router: 10.100.150.1
o Lease duration: 4 days
5. In the Add Server dialog box, select This authorized DHCP server, and then select OK.
6. In DHCP window, expand 172.16.10.12, expand IPv4, expand Scope [10.100.150.0]
ContosoClients, and then select Scope Options.
Task 4: Configure DHCP Failover (cấu hình nâng cao, bắt buộc phải có ít nhất 2
DHCP server)
5. Select Finish.
8. Expand SEA-DC1, select IPv4, and then verify that two scopes are listed.
12. On the Select from failover relationships which are already configured on this
server screen, select Next, and then select Finish.
14. Under 172.16.10.12, select IPv4, and then verify that both scopes are listed. If necessary,
select F5 to refresh.
17. In the menu bar, select View status of this connection, and then select Details. Verify
that the DHCP server is now SEA-DC1 (172.16.10.10).
9. Wait until a notification appears indicating that the DNS role is installed. If necessary,
select the Notifications icon to verify the current status.
12. Wait until a notification appears indicating that the DNS PowerShell tools are installed. If
necessary, select the Notifications icon to verify the current status.
2. In the Create a new DNS zone dialog box, enter the following information, and then
select Create:
o Zone type: Primary
o Zone name: TreyResearch.net
o Zone file: Create a new file
o Zone file name: TreyResearch.net.dns
o Dynamic update: Do not allow dynamic update
3. Select TreyResearch.net, and then select Create a new DNS record.
4. In the Create a new DNS record dialog box, enter the following information, and then
select Create:
o DNS record type: Host (A)
o Record name: TestApp
o IP address: 172.30.99.234
o Time to live: 600
powershell
Resolve-DnsName -Server sea-svr1.contoso.com -Name testapp.treyresearch.net
5. Select OK.
powershell
Resolve-DnsName -Server sea-svr1.contoso.com -Name sea-dc1.contoso.com
3. To create a head office subnet, enter the following, and then select Enter:
powershell
Add-DnsServerClientSubnet -Name "HeadOfficeSubnet" -IPv4Subnet "172.16.10.0/24"
4. To create a zone scope for head office, enter the following, and then select Enter:
powershell
Add-DnsServerZoneScope -ZoneName "TreyResearch.net" -Name "HeadOfficeScope"
5. To add a new resource record for the head office scope, enter the following, and then
select Enter:
powershell
Add-DnsServerResourceRecord -ZoneName "TreyResearch.net" -A -Name "testapp"
-IPv4Address "172.30.99.100" -ZoneScope "HeadOfficeScope"
6. To create a new policy that links the head office subnet and the zone scope, enter the
following, and then select Enter:
powershell
Add-DnsServerQueryResolutionPolicy -Name "HeadOfficePolicy" -Action ALLOW
-ClientSubnet "eq,HeadOfficeSubnet" -ZoneScope "HeadOfficeScope,1" -ZoneName
"TreyResearch.net"
1. On SEA-CL1, right-click or access the context menu for Start, and then select Windows
PowerShell.
3. Enter Resolve-DnsName -Server sea-svr1.contoso.com -Name testap
p.treyresearch.net, and then select Enter. The name resolves to the IP address 172.30.99.100
that was configured in the HeadOfficePolicy.
9. Select Close twice.
10. At the Windows PowerShell prompt, enter the following, and then select Enter:
powershell
Resolve-DnsName -Server sea-svr1.contoso.com -Name testapp.treyresearch.net
11. Notice that the name resolves to 172.30.99.234 because the client is no longer on the
HeadOffice subnet.