다음을 통해 공유


Windows Server 2012 Hyper-V: Hosting the IPv6 test lab

The IPv6 test lab consists of five separate computers on three subnets:

  • The Corpnet subnet contains the DC1, APP1, and EDGE1 computers
  • The Corpnet2 subnet contains the DC1 computer
  • The Internet subnet contains the INET1 and EDGE1 computers

The CLIENT1 computer can connect to any of the three subnets. The following figure shows the IPv6 test lab (click on it for a larger version).

 

This figure shows the computers and their connections to the subnets using a hub or switch. You can implement this configuration using physical computers and switches, virtual computers and switches, or a combination of physical and virtual components.

If you are using Windows Server 2012 and the Hyper-V server role for your virtualization solution, you can configure the IPv6 test lab in Hyper-V on a single server as shown in the following figure (click on it for a larger version):

 

The key elements of this configuration are the following:

  • All five computers (DC1, APP1, CLIENT1, EDGE1, and INET1) are virtual machines running on the Hyper-V server.
  • The Corpnet subnet is implemented as the Corpnet virtual switch.
    • DC1, APP1, and EDGE1 are connected to the Corpnet virtual switch.
  • The Corpnet2 subnet is implemented as the Corpnet2 virtual switch.
    • DC1 is connected to the Corpnet2 virtual switch.
  • The Internet subnet is implemented as the Internet virtual switch.
    • EDGE1 and INET1 are connected to the Internet virtual switch.
  • CLIENT1 can be connected to the Corpnet, Corpnet2, or Internet virtual switches.
  • The Hyper-V server has at least one physical network adapter that connects to your organization intranet and the Internet. You can use this connection to connect a test lab computer to the real Internet (rather than the Internet subnet), for example to install software or updates. For more information, see How do I get my base configuration computers on the Internet?

To build out the Corpnet subnet in Windows Server 2012 Hyper-V, do the following:

  1. Create a private virtual switch named Corpnet. For the steps to do this, see Creating a new virtual switch.
  2. Create a new virtual machine named DC1 that is connected to the Corpnet virtual switch. For the steps to do this, see Creating a new virtual machine.
  3. Create a new virtual machine named APP1 that is connected to the Corpnet virtual switch.
  4. Create a new virtual machine named CLIENT1 that is connected to the Corpnet virtual switch.
  5. Follow the instructions in the “Steps for Configuring the Corpnet Subnet” section of the Test Lab Guide: Base Configuration. To install Windows Server 2008 R2 or Windows 7 on a virtual machine, see Installing an operating system on a new virtual machine.

 

Windows PowerShell commands
The following Windows PowerShell cmdlet or cmdlets perform the same function as steps 1-4 of the preceding procedure. You must supply values for the –MemoryStartupBytes and -NewVHDSizeBytes parameters for each virtual machine. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

New-VmSwitch -Name Corpnet -SwitchType Private
New-VM –Name DC1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet New-VM –Name APP1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet
New-VM –Name CLIENT1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet

 

To build out the Internet subnet in Windows Server 2012 Hyper-V, do the following:

  1. Create a private virtual switch named Internet.
  2. Create a new virtual machine named EDGE1 that is connected to the Corpnet virtual switch.
  3. Add a network adapter to EDGE1 that is connected to the Internet virtual switch. For the steps to do this, see Adding a network adapter to a new virtual machine.
  4. Create a new virtual machine named INET1 that is connected to the Internet virtual switch.
  5. Follow the instructions in the “Steps for Configuring the Internet Subnet” section of the Test Lab Guide: Base Configuration.

 

 

Windows PowerShell commands
The following Windows PowerShell cmdlet or cmdlets perform the same function as steps 1-4 of the preceding procedure. You must supply values for the –MemoryStartupBytes and -NewVHDSizeBytes parameters for each virtual machine. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

New-VmSwitch -Name Internet -SwitchType Private
New-VM –Name EDGE1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet
Add-VMNetworkAdapter –VMName EDGE1 –SwitchName Internet
New-VM –Name INET1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Internet

 

 

To build out the Corpnet2 subnet in Windows Server 2012 Hyper-V, do the following:

  1. Create a private virtual switch named Corpnet2.
  2. Add a network adapter to DC1 that is connected to the Corpnet2 virtual switch.
  3. Follow the instructions in the “Step 2: Configure the Test Lab for the Corpnet2 Subnet” section of the Test Lab Guide: Demonstrate IPv6.

 

Windows PowerShell commands
The following Windows PowerShell cmdlet or cmdlets perform the same function as steps 1-2 of 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.

New-VmSwitch -Name Corpnet2 -SwitchType Private
Add-VMNetworkAdapter –VMName DC1 –SwitchName Corpnet2

 

For additional Hyper-V test lab configuration articles, see Hosting Test Lab Guide Environments in Windows Server 2012 Hyper-V.

For more information, see Test Lab Guides.

For the latest developments in the Test Lab Guides initiative, see the Microsoft Test Lab Guides blog.