Configuring virtual IPs in Windows

When you use a computer that is run on the Windows operating system and you want to configure virtual IP addresses so that the virtual IPs can then be configured as virtual clients in tests or as virtual servers in stubs.

Important: The steps for the task that are to be performed on the operating system are only indicative. The steps might vary depending on the version of the operating system. You might be able to use multiple methods to accomplish the task. You might already be aware of such methods. You can perform the task by following the on-screen instructions or by referring to the documentation provided by the operating system provider.

About this task

You can create multiple virtual IPs either by using the UI options or by running commands from the Windows command prompt.

When you create the multiple virtual IP addresses to use them as virtual clients, you must ensure that the following conditions are satisfied:
  • The IP addresses that you create are legitimate.
  • The IP addresses are available within the same subnet in the network.
  • The IP addresses are blocked for distribution outside of the network.

Procedure

  1. Select the method that you want to use to create multiple IPs from the following options:
    • To use the UI, go to Step 1.
    • To use the command prompt, go to Step 9.
  2. Click Start > Settings > Control Panel > Network Connection.
  3. Open the network interface to associate the IP aliases.
    Note: In most cases, this is the Local Area Connection.
  4. Click Properties.
  5. Find the Internet Protocol (TCP/IP) option, and then click Properties.
    Important: You must use the static IP addresses to create virtual IPs.
  6. Verify that the Use the following IP address option is selected, and then click Advanced.
  7. Create the IP aliases by performing the following steps:
    1. Click Add in the IP Addresses section of the IP Settings page to specify the IP address of the new alias.
    2. Enter the IP address and the subnet mask of the new alias.
  8. Click OK in the dialog boxes that are open to complete the configuration.

    The task is completed and no further action is required.

  9. Add multiple IP aliases by using the netsh command as shown in the following example:
    netsh -c Interface ip add address name="Gig Ethernet" addr=10.10.0.21 mask=255.255.0.0

    The task is completed and no further action is required.

    Note: When you want to remove the IPs that you configured, you can use the following command:
    netsh -c Interface ip delete address name="Gig Ethernet" addr=10.10.0.21

Results

You have successfully configured virtual IPs on a computer that is run on Windows.

What to do next