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.
- Configure DC1.
- Configure EDGE1.
- Configure APP1.
- 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:
|
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:
|
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:
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:
New-NetRoute -DestinationPrefix 10.0.2.0/24 -InterfaceAlias Corpnet -NextHop 10.0.0.1 -AddressFamily IPv4
|
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:
New-NetRoute -DestinationPrefix 10.0.2.0/24 -InterfaceAlias "Ethernet" -NextHop 10.0.0.1 -AddressFamily IPv4
|
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**
|
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:
- On all physical computers or virtual machines in the test lab, close all windows and then perform a graceful shutdown.
- 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.