To add a subnetwork interface or an additional IP address on a Windows Server, you can use the following steps:
Method 1: Using GUI (Graphical User Interface)
- Open Network Connections:
- Press
Win + X
and select “Network Connections” from the Power User menu.
- Press
- Access Adapter Properties:
- Right-click on the network adapter for which you want to add the additional IP address and select “Properties.”
- Add Additional IP Address:
- In the “Networking” tab, scroll down and find “Internet Protocol Version 4 (TCP/IPv4)” or “Internet Protocol Version 6 (TCP/IPv6)” depending on your network configuration.
- Click on it to highlight, then click the “Properties” button.
- Configure IP Settings:
- In the properties window, click the “Advanced” button.
- In the “Advanced TCP/IP Settings” window, go to the “IP Settings” tab.
- Click the “Add” button under the “IP addresses” section.
- Enter the additional IP address and subnet mask.
- Click “Add,” then “OK” to close the windows.
- Verify Configuration:
- Close the network adapter properties window and verify the changes by running
ipconfig
in the Command Prompt.
- Close the network adapter properties window and verify the changes by running
Method 2: Using PowerShell
- Open PowerShell:
- Right-click on the Start menu and select “Windows PowerShell” or “Windows PowerShell (Admin)” to open PowerShell with administrative privileges.
- Use PowerShell Commands:
- To add an additional IP address to an interface, you can use the following command:
New-NetIPAddress -InterfaceAlias "YourNetworkAdapter" -IPAddress "NewIPAddress" -PrefixLength "SubnetPrefixLength" -Type Unicast
Replace “YourNetworkAdapter,” “NewIPAddress,” and “SubnetPrefixLength” with your specific values.
- To add an additional IP address to an interface, you can use the following command:
- Verify Configuration:
- After running the command, use
Get-NetIPAddress
to verify that the new IP address has been added.
- After running the command, use
Method 3: Using netsh Command
- Open Command Prompt:
- Open the Command Prompt with administrative privileges.
- Use netsh Command:
- To add an additional IP address to an interface, you can use the following command:
netsh interface ipv4 add address "YourNetworkAdapter" address="NewIPAddress" mask="SubnetMask" gateway="GatewayIP"
Replace “YourNetworkAdapter,” “NewIPAddress,” “SubnetMask,” and “GatewayIP” with your specific values.
- To add an additional IP address to an interface, you can use the following command:
- Verify Configuration:
- After running the command, use
ipconfig
to verify that the new IP address has been added.
- After running the command, use
Choose the method that suits your preference and environment, and ensure that you have the necessary administrative privileges to make these changes.