Lab answer key: Implementing and configuring network infrastructure services in Windows Server
Note: An interactive lab simulation is available that allows you to click through this lab at your own pace. You may find slight differences between the interactive simulation and the hosted lab, but the core concepts and ideas being demonstrated are the same.
Exercise 1: Deploying and configuring DHCP
Task 1: Install the DHCP role
- Connect to SEA-ADM1, and then, if needed, sign in as CONTOSO\Administrator with a password of Pa55w.rd.
- On SEA-ADM1, select Start, and then select Windows PowerShell (Admin).
Note: Perform the next two steps in case you have not already installed Windows Admin Center on SEA-ADM1.
- In the Windows PowerShell console, enter the following command, and then press Enter to download the latest version of Windows Admin Center:Code
Start-BitsTransfer -Source https://aka.ms/WACDownload -Destination "$env:USERPROFILE\Downloads\WindowsAdminCenter.msi"
- Enter the following command, and then press Enter to install Windows Admin Center:Code
Start-Process msiexec.exe -Wait -ArgumentList "/i $env:USERPROFILE\Downloads\WindowsAdminCenter.msi /qn /L*v log.txt REGISTRY_REDIRECT_PORT_80=1 SME_PORT=443 SSL_CERTIFICATE_OPTION=generate"
Note: Wait until the installation completes. This should take about 2 minutes.
- On SEA-ADM1, start Microsoft Edge, and then browse to
https://SEA-ADM1.contoso.com
.Note: If the link does not work, on SEA-ADM1, open File Explorer, select Downloads folder, in the Downloads folder select WindowsAdminCenter.msi file and install manually. After the install completes, refresh Microsoft Edge.
Note: If you get NET::ERR_CERT_DATE_INVALID error, select Advanced on the Edge browser page, at the bottom of page select Continue to sea-adm1-contoso.com (unsafe).
- If prompted, in the Windows Security dialog box, enter the following credentials, and then select OK:
- Username:
CONTOSO\Administrator
- Password:
Pa55w.rd
- Username:
- In the All connections pane, select + Add.
- In the Add or create resources pane, on the Servers tile, select Add.
- In the Server name text box, enter sea-svr1.contoso.com.
- Ensure that Use another account for this connection option is selected, enter the following credentials, and then select Add with credentials:
- Username:
CONTOSO\Administrator
- Password:
Pa55w.rd
Note: To perform single sign-on, you would need to set up a Kerberos constrained delegation.
- Username:
- On the sea-svr1.contoso.com page, in the Tools list, select Roles & features.
- In the Roles and features pane, select the DHCP Server checkbox, and then select + Install.
- In the Install Roles and Features pane, select Yes.
Note: Wait until the notification indicating that the DHCP role is installed. If necessary, select the Notifications icon to verify the current status.
- Refresh the Microsoft Edge page back on the sea-svr1.contoso.com page, in the Tools list, select DHCP, and then, in the details pane, select Install to install the DHCP PowerShell tools.
Note: If the DHCP entry is not available in the Tools list for sea-svr1.contoso.com, refresh the Microsoft Edge page and try again. Depending on your network performance, it may take upto 5 minutes for the DHCP server to appear.
- 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
- On SEA-ADM1, select Start, and then select Server Manager.
- In Server Manager, select Notifications in the menu, and then select Complete DHCP configuration.
- In the DHCP Post-Install configuration wizard window, on the Description screen, select Next.
- On the Authorization screen, ensure that the CONTOSO\Administrator option is selected, and then select Commit.
- When you complete both tasks, select Close.
Task 3: Create a scope
- On SEA-ADM1, switch to Windows Admin Center in the Microsoft Edge window displaying the DHCP settings on SEA-SVR1.
Note: It might take a few minutes for the DHCP option to appear in the menu. If necessary, refresh the connection to sea-svr1. If prompted to install the DHCP Powershell tools, select Install.
- On the DHCP page, select + New scope.
- In the Create a new scope pane, specify the following settings, and then select Create.
- Protocol: IPv4
- Name: ContosoClients
- Starting IP address: 10.100.150.50
- Ending IP address: 10.100.150.254
- DHCP client subnet mask: 255.255.255.0
- Router (default gateway): 10.100.150.1
- Lease duration for DHCP clients: 4 days
- On SEA-ADM1, switch to Server Manager, in Server Manager, select Tools, and then select DHCP.
- In the DHCP window, in the Actions pane, select More Actions, and then select Manage Authorized Servers.
- In the Manage Authorized Servers window, select Refresh, ensure that sea-svr1.contoso.com appears in the list of authorized DHCP servers, and then close the Manage Authorized Servers window.
- In the DHCP window, in the Actions pane, select More Actions, and then select Add Server.
- In the Add Server dialog box, select This authorized DHCP server, select sea-svr1.contoso.com, and then select OK.
- In the DHCP window, expand sea-svr1 **, expand **IPv4, expand Scope [10.100.150.0] ContosoClients, and then select Scope Options.
- In the Actions pane, select More Actions, and then select Configure Options.
- In the Scope Options dialog box, select the 006 DNS Servers checkbox.
- In the Server name text box, enter sea-dc1.contoso.com, select Resolve, verify that the name resolves to 172.16.10.10, select Add, and then select OK.
Task 4: Configure DHCP Failover
- On SEA-ADM1, in the DHCP window, select IPv4, in the Actions pane, select More Actions, and then select Configure Failover.
- In the Configure Failover window, verify that the Select all checkbox is selected, and then select Next.
- On the Specify the partner server to use for failover screen, select Add Server.
- In the Add Server dialog box, select This authorized DHCP server, select sea-dc1.contoso.com, and then select OK.
- Back on the Specify the partner server to use for failover screen, ensure that sea-dc1 appears in the Partner Server drop-down list, and then select Next.
- On the Create a new failover relationship screen, enter the following information, and then select Next.
- Relationship Name: SEA-SVR1 to SEA-DC1
- Maximum Client Lead Time: 1 hour
- Mode: Hot standby
- Role of Partner Server: Standby
- Addresses reserved for standby server: 5%
- State Switchover Interval: Disabled
- Enable Message Authentication: Enabled
- Shared Secret: DHCP-Failover
- Select Finish.
- In the Configure Failover dialog box, select Close.
- In the DHCP window, in the Actions pane, select More Actions, and then select Add Server.
- In the Add Server dialog box, select This authorized DHCP server, select sea-dc1.contoso.com, and then select OK.
- On SEA-ADM1, in the DHCP window, expand the sea-dc1 node, select IPv4, and then verify that two scopes are listed.
- Select Scope [172.16.0.0] Contoso, in the Actions pane, select More Actions, and then select Configure Failover.
- In the Configure Failover window, select Next.
- On the Specify the partner server to use for failover screen, in the Partner Server box, enter 172.16.10.12, select the Reuse existing failover relationships configured with this server (if any exist) checkbox, and then select Next.
- On the Select from failover relationships which are already configured on this server screen, select Next, and then select Finish.
- In the Configure Failover dialog box, select Close.
- Under sea-svr1 **, select **IPv4, and then verify that both scopes are listed. If necessary, press the F5 key to refresh.
Task 5: Verify DHCP functionality
- On SEA-ADM1, select Start, and then select Settings.
- In the Settings window, select Network & Internet, and then select Network and Sharing Center.
- In Network and Sharing Center, select Ethernet, and then select Properties.
- In the Ethernet Properties dialog box, select Internet Protocol Version 4 (TCP/IPv4), and then select Properties.
- In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select Obtain an IP address automatically, select Obtain DNS server address automatically, and then select OK.
- Select Close, and then, in the Ethernet Status window, select Details.
- In the Network Connection Details dialog box, verify that DHCP is enabled, an IP address was obtained, and that the **sea-svr1 ** DHCP server issued the lease.
- Select Close to return to the Ethernet Status window.
- On SEA-ADM1, in the DHCP window, expand the 172.16.10.12 node, expand the IPv4 node, expand the Scope [172.16.0.0] Contoso node, and then select Address Leases.
- Verify that there is an entry representing the SEA-ADM1.contoso.com lease.
- On SEA-ADM1, in the DHCP window, expand the sea-dc1 node, expand the IPv4 node, expand the Scope [172.16.0.0] Contoso node, and then select Address Leases.
- Verify that here as well there is an entry representing the SEA-ADM1.contoso.com lease.
- Select sea-svr1 **, in the Actions pane, select **More Actions, select All tasks, and then select Stop.
- On SEA-ADM1, switch back to the Ethernet Status window, and then select Disable.
- Back in the Network and Sharing Center window, select Change adapter settings, select Ethernet, and then select Enable this network device.
- Double-click the enabled Ethernet connection to display its status window.
- In the Ethernet Status window, select Details.
- In the Network Connection Details dialog box, verify that DHCP is enabled, an IP address was obtained, and that the SEA-DC1 (172.16.10.10) DHCP server issued the lease.
- Select Close to return to the Ethernet Status window.
- In the Ethernet Status window, select Properties.
- In the Ethernet Properties dialog box, select Internet Protocol Version 4 (TCP/IPv4), and then select Properties.
- In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select Use the following IP address and specify the following settings:
- IP address: 172.16.10.11
- Subnet mask: 255.255.0.0
- Default gateway: 172.16.10.1
- In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, select Use the following DNS server addresses, set the Preferred DNS server to 172.16.10.10, and then select OK.
Note: Leave the Ethernet Status window open. You will need it later in this lab.
Exercise 2: Deploying and configuring DNS
Task 1: Install the DNS role
- On SEA-ADM1, switch back to the Microsoft Edge window displaying the connection to sea-svr1.contoso.com in Windows Admin Center.
- In the Tools list, select Roles & features.
- In the Roles and features pane, select the DNS Server checkbox, and then select + Install.
- In the Install Roles and Features pane, select Yes.
Note: Wait until the notification indicating that the DNS role is installed. If necessary, select the Notifications icon to verify the current status.
- Refresh the Microsoft Edge page, back on the sea-svr1.contoso.com page, in the Tools list, select DNS, and then on the details pane, select Install to install the DNS PowerShell tools.
Note: If the DNS entry is not available in the Tools list for sea-svr1.contoso.com, refresh the Microsoft Edge page and try again.
- Wait until a notification appears indicating that the DNS PowerShell tools are installed. If necessary, select the Notifications icon to verify the current status.
Task 2: Create a DNS zone
- On SEA-ADM1, in Windows Admin Center, in the DNS pane, select Actions and, on the Actions menu, select + Create a new DNS zone.
- In the Create a new DNS zone dialog box, specify the following settings, and then select Create:
- Zone type: Primary
- Zone name: TreyResearch.net
- Zone file: Create a new file
- Zone file name: TreyResearch.net.dns
- Dynamic update: Do not allow dynamic update
- Back in the DNS pane, select TreyResearch.net, and then select + Create a new DNS record.
- In the Create a new DNS record pane, specify the following settings, and then select Create:
- DNS record type: Host (A)
- Record name: TestApp
- IP address: 172.30.99.234
- Time to live: 600
- On SEA-ADM1, select Start, and then select Windows PowerShell.
- In the Windows PowerShell console, enter the following command, and then press Enter to validate that the new DNS record provides the name resolution:Code
Resolve-DnsName -Server sea-svr1.contoso.com -Name testapp.treyresearch.net
Task 3: Configure forwarding
- On SEA-ADM1, switch to Server Manager.
- In Server Manager, select Tools, and then select DNS.
- In DNS Manager, select DNS, display its context-sensitive menu, and then, in the menu, select Connect to DNS Server.
- In the Connect to DNS Server dialog box, select The following computer, enter SEA-SVR1.contoso.com, and then select OK.
- In DNS Manager, select SEA-SVR1.contoso.com, display its context-sensitive menu, and then select Properties.
- In the SEA-SVR1.contoso.com Properties dialog box, select the Forwarders tab, and then select Edit.
- In the Edit Forwarders dialog box, in the IP addresses for forwarding servers box, enter 131.107.0.100, and then select OK.
- In the SEA-SVR1.contoso.com Properties dialog box, select OK.
Task 4: Configure conditional forwarding
- On SEA-ADM1, in DNS Manager, expand SEA-SVR1.contoso.com, and then select Conditional Forwarders.
- Select Conditional Forwarders, display its context-sensitive menu, and then, in the menu, select New Conditional Forwarder.
- In the New Conditional Forwarder dialog box, in the DNS Domain box, enter Contoso.com.
- In the IP addresses of the master servers box, enter 172.16.10.10, and then select Enter.
Note: Disregard the message An unknown error occurred in the validation column within the New Conditional Forwarder dialog box.
- Select OK.
- On SEA-ADM1, switch to the Windows PowerShell console.
- In the Windows PowerShell console, enter the following command, and then press Enter to validate conditional forwarding:Code
Resolve-DnsName -Server sea-svr1.contoso.com -Name sea-dc1.contoso.com
Task 5: Configure DNS policies
- On SEA-ADM1, switch back to the Microsoft Edge window displaying the connection to sea-svr1.contoso.com in Windows Admin Center.
- In the Tools list, select PowerShell, and when prompted, sign in as the CONTOSO\Administrator user with Pa55w.rd as its password.
- In the Windows PowerShell console, enter the following command, and then press Enter to create a head office subnet:Code
Add-DnsServerClientSubnet -Name "HeadOfficeSubnet" -IPv4Subnet '172.16.10.0/24'
- Enter the following command, and then press Enter to create a zone scope for head office:Code
Add-DnsServerZoneScope -ZoneName 'TreyResearch.net' -Name 'HeadOfficeScope'
- Enter the following command, and then press Enter to add a new resource record for the head office scope:Code
Add-DnsServerResourceRecord -ZoneName 'TreyResearch.net' -A -Name 'testapp' -IPv4Address '172.30.99.100' -ZoneScope 'HeadOfficeScope'
- Enter the following command, and then press Enter to create a new policy that links the head office subnet and the zone scope:Code
Add-DnsServerQueryResolutionPolicy -Name 'HeadOfficePolicy' -Action ALLOW -ClientSubnet 'eq,HeadOfficeSubnet' -ZoneScope 'HeadOfficeScope,1' -ZoneName 'TreyResearch.net'
Task 6: Verify DNS policy functionality
- On SEA-ADM1, switch to the Windows PowerShell console.
- In the Windows PowerShell console, enter
ipconfig
, and then press Enter to display its current IP configuration.Note: Note that the Ethernet adapter has an IP address that is part of the HeadOfficeSubnet configured in the policy.
- In the Windows PowerShell console, enter the following command, and then press Enter to test the resolution of the
testapp.treyresearch.net
DNS record:CodeResolve-DnsName -Server sea-svr1.contoso.com -Name testapp.treyresearch.net
Note: Verify that the name resolves to the IP address 172.30.99.100 that was configured in the HeadOfficePolicy.
- On SEA-ADM1, switch back to the Ethernet Status window.
- In the Ethernet Status window, select Properties.
- In the Ethernet Properties dialog box, select Internet Protocol Version 4 (TCP/IPv4), and then select Properties.
- In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, change the currently assigned IP address (172.16.10.11) to an IP address 172.16.11.11 that is not within the IP address range of the HeadOfficeSubnet, and then select OK.
- On SEA-ADM1, switch to the Windows PowerShell console.
- In the Windows PowerShell console, enter the following command, and then press Enter to test the resolution of the
testapp.treyresearch.net
DNS record:CodeResolve-DnsName -Server sea-svr1.contoso.com -Name testapp.treyresearch.net
Note: Verify that the name resolves to 172.30.99.234. This is expected, because the IP address of SEA-ADM1 is no longer within the HeadOfficeSubnet. DNS queries originating from the HeadOfficeSubnet of (172.16.10.0/24) targeting
testapp.treyresearch.net
resolve to 172.30.99.100. DNS queries from outside of this subnet targetingtestapp.treyresearch.net
resolve to 172.30.99.234.Note: Now change the IP address of SEA-ADM1 back to its original value.
- Switch back to the Ethernet Status window and select Properties.
- In the Ethernet Properties dialog box, select Internet Protocol Version 4 (TCP/IPv4), and then select Properties.
- In the Internet Protocol Version 4 (TCP/IPv4) Properties dialog box, change the currently assigned IP address (172.16.11.11) to its original value (172.16.10.11) and select OK.
- Select Close twice.
- Close all open windows.