Test Lab Guide Mini-Module: Second Corpnet Subnet for Windows Server 2012

Windows Server 2012 Base Configuration Test Lab Mini-Module for a Second Corpnet Subnet

 

This Test Lab Guide Mini-Module describes how to configure Corpnet2 as an optional second subnet to the Contoso intranet. DC1 is configured to route traffic between the Corpnet and Corpnet2 subnets. The following figure shows the resulting test lab configuration (click on it for a larger version):

If you are running the Windows Server 2012 base configuration test lab in a virtual environment, you can create snapshots of the virtual machines (VMs) for all of the test lab computers before performing the following procedure.

There are four steps to adding the Corpnet2 subnet to the Windows Server 2012 Base Configuration test lab.

  1. Configure DC1.
  2. Configure EDGE1.
  3. Configure APP1.
  4. Verify IPv4 connectivity to the Corpnet2 subnet.

Step 1: Configure DC1

DC1 is a Windows Server 2012 domain controller, DNS server, and DHCP server for the Contoso domain. In this step, we configure DC1 with an additional network adapter, with a DHCP scope for the new Corpnet2 subnet, and as an IPv4 router between the subnets.

To configure DC1 with an additional adapter:

  1. Add another network adapter to DC1 and connect it to the Corpnet2 virtual or physical switch.
  2. In Server Manager, click Local Server in the console tree. Click the link next to Ethernet in the Properties tile.
  3. In Network Connections, right-click the network connection that is connected to the Corpnet subnet, and then click Rename.
  4. Type Corpnet, and then press ENTER.
  5. Right-click the network connection that is connected to the Corpnet2 subnet, and then click Rename.
  6. Type Corpnet2, and then press ENTER.
  7. Right-click Corpnet2, and then click Properties.
  8. Click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
  9. Select Use the following IP address. In IP address, type 10.0.2.1. In Subnet mask, type 255.255.255.0.
  10. Click Advanced, and then click the DNS tab.
  11. In DNS suffix for this connection, type corp.contoso.com, click OK three times, and then click Close.
  12. Close the Network Connections window.

 

 Windows PowerShell equivalent commands

The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints. Prior to executing these commands, rename the network connections to Corpnet and Corpnet2 according to their associated subnets.

 

New-NetIPAddress -InterfaceAlias "Corpnet2" -IPv4Address 10.0.2.1 -PrefixLength 24

Set-DnsClientServerAddress -InterfaceAlias "Corpnet2" -ServerAddresses 127.0.0.1

Set-DnsClient -InterfaceAlias "Corpnet2" -ConnectionSpecificSuffix corp.contoso.com

 

To add a DHCP scope for the second subnet:

  1. From the Start screen, click DHCP.
  2. In the DHCP console tree, expand dc1.corp.contoso.com/IPv4/Scope [10.0.0.0] Corpnet, right-click Scope Options, and then click Configure Options.
  3. In the Available Options list, select 121 Classless Static Routes, and then click Add Route.
  4. In the Add a Static Route dialog box, type 10.0.2.0 in Destination, type 255.255.255.0 in Network Mask, type 10.0.0.1 in Router, and then click OK twice.
  5. In the console tree, right click IPv4, click New Scope, and then click Next.
  6. On the Scope Name page, type Corpnet2 in Name, and then click Next.
  7. On the IP Address Range page, type 10.0.2.100 in Start IP address, type 10.0.2.150 in End IP address, type 24 in Length, and then click Next.
  8. On the Add Exclusions and Delay page, click Next.
  9. On the Lease Duration page, click Next.
  10. On the Configure DHCP Options page, click Next.
  11. On the Router (Default Gateway) page, type 10.0.2.1 in IP address, click Add, and then click Next.
  12. On the Domain Name and DNS Servers page, click 10.0.2.1, and then click Remove.
  13. Type 10.0.0.1 in IP address, click Add, and then click Next.
  14. On the WINS Servers page, click Next.
  15. On the Activate Scope page, click Next.
  16. On the Completing the New Scope Wizard page, click Finish.             
  17. Close the DHCP snap-in.

 

 Windows PowerShell equivalent commands

The following Windows PowerShell cmdlet or cmdlets perform the same function as the preceding procedure. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

 

Set-DhcpServerv4OptionValue -ScopeId 10.0.0.0 -OptionId 121 -Value 24,10,0,2,10,0,0,1

Add-DhcpServerv4Scope -name "Corpnet2" -StartRange 10.0.2.100 -EndRange 10.0.2.150 -SubnetMask 255.255.255.0

Set-DhcpServerv4OptionValue -ScopeId 10.0.2.0 -DnsDomain corp.contoso.com -DnsServer 10.0.0.1

Set-DhcpServerv4OptionValue -ScopeId 10.0.2.0 -Router 10.0.2.1

 

To configure routing between the subnets:

  1. From the desktop taskbar, right-click Windows PowerShell, and then click Run as administrator.
  2. In the Windows PowerShell window, type the following commands, and then press ENTER after each command.

Set-NetIPInterface -InterfaceAlias Corpnet -AddressFamily IPv4 -Forwarding Enabled

Set-NetIPInterface -InterfaceAlias Corpnet2 -AddressFamily IPv4 -Forwarding Enabled

 

Step 2: Configure EDGE1

In this procedure, we configure EDGE1 with a static route so that IPv4 locations on the new Corpnet2 subnet are reachable and enable file sharing, which allows incoming traffic for the Ping.exe tool.

To configure EDGE1:

  1. On EDGE1, from the desktop taskbar, right-click Windows PowerShell, and then click Run as administrator.
  2. In the Windows PowerShell window, type the following command, and then press ENTER.

New-NetRoute -DestinationPrefix 10.0.2.0/24 -InterfaceAlias Corpnet -NextHop 10.0.0.1 -AddressFamily IPv4

  1. In the Windows PowerShell window, type ping 10.0.2.1, and then press ENTER. There should be four successful replies.
  2. Right-click the network icon in the notification area, and then click Open Network and Sharing Center.
  3. In the Network and Sharing Center window, click Change advanced sharing settings.
  4. Open Domain, click Turn on file and printer sharing, and then click Save Changes.
  5. Close the Network and Sharing Center window.       

 

Step 1: Configure APP1

In this procedure, we configure APP1 with a static route so that IPv4 locations on the Corpnet2 subnet are reachable.

To configure APP1:

  1. On APP1, from the desktop taskbar, right-click Windows PowerShell, and then click Run as administrator.
  2. In the Windows PowerShell window, type the following command, and then press ENTER.

New-NetRoute -DestinationPrefix 10.0.2.0/24 -InterfaceAlias "Ethernet" -NextHop 10.0.0.1 -AddressFamily IPv4

  1. In the Windows PowerShell window, type ping 10.0.2.1, and then press ENTER. There should be four successful replies.
  2. Leave the Windows PowerShell window open.

 

Step 4: Verify IPv4 connectivity to the Corpnet2 subnet

In this procedure, we verify that CLIENT1 can communicate with IPv4 locations on the Corpnet2 subnet and, while on the Corpnet2 subnet, can resolve names and communicate with locations on the Corpnet subnet.

** To test access to both subnets from CLIENT1**

  1. Connect CLIENT1 to the Corpnet subnet.
  2. From the Start screen, type PowerShell, then right-click Windows PowerShell, and click Run as administrator.
  3. In the Windows PowerShell window, type ping 10.0.2.1, and then press ENTER. There should be four successful replies.
  4. Connect CLIENT1 to the Corpnet2 subnet.
  5. In the Windows PowerShell window, type ipconfig /all, and then press ENTER. CLIENT1 should have an IPv4 address in the range 10.0.2.100 to 10.0.2.150 with a default gateway of 10.0.2.1 and the DNS server address of 10.0.0.1
  6. In the Windows PowerShell window, type ping 10.0.0.2, and then press ENTER. There should be four successful replies.
  7. In the Command Prompt window, type ping 10.0.0.3, and then press ENTER. There should be four successful replies.
  8. In the Command Prompt window, type ping EDGE1, and then press ENTER. There should be a successful name resolution to the IPv4 address 10.0.0.2 and four successful replies.
  9. In the Command Prompt window, type ping APP1, and then press ENTER. There should be a successful name resolution to the IPv4 address 10.0.0.3 and four successful replies.

 

Snapshot the Configuration

This completes the Base Configuration test lab mini-module for the Corpnet2 subnet. To save this configuration for additional test labs, do the following:

  1. On all physical computers or virtual machines in the test lab, close all windows and then perform a graceful shutdown.
  2. If your lab is based on virtual machines, save a snapshot of each virtual machine and name the snapshots Windows Server 2012 Base Configuration with Corpnet2 subnet. If your lab uses physical computers, create disk images to save the Base Configuration.

Additional Resources

For a list of all of the Windows Server 2012 TLGs, see Windows Server 2012 Test Lab Guides in the TechNet Wiki.