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
- Select the method that you want to use to create multiple IPs from the following options:
- Click .
-
Open the network interface to associate the IP aliases.
Note: In most cases, this is the Local Area Connection.
- Click Properties.
-
Find the Internet Protocol (TCP/IP) option, and then click Properties.
Important: You must use the static IP addresses to create virtual IPs.
- Verify that the Use the following IP address option is selected, and then click Advanced.
-
Create the IP aliases by performing the following steps:
- Click Add in the IP Addresses section of the IP Settings page to specify the IP address of the new alias.
- Enter the IP address and the subnet mask of the new alias.
-
Click OK in the dialog boxes that are open to complete the configuration.
The task is completed and no further action is required.
-
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
What to do next
- You can use the virtual IPs in tests. See Configuring virtual IPs in tests.
- You can use the virtual IPs in stubs. See Configuring virtual IPs in stubs.