How do I configure the IP address for my PC to communicate with my WWVDS system via command line?
This article discusses setting your PC's IP address to communicate with your WWVDS system from a command line.
To communicate, your computer and the WWVDS must have compatible IP protocol settings, namely, they must belong to the same TCP/IP subnet.
Open Command Prompt
- Open command prompt using one of the following methods:
- Windows key + R —> type cmd —> click OK.
- Star menu —> type run and open applet —> type cmd —> click OK.
List Availed Ethernet Network Interfaces
- To view a list of Ethernet interfaces available on your computer, type the command and press Enter:
netsh interface ip show config | findstr "Ethernet"
Be sure capitalize Ethernet.
Depending on your computer configuration, you will see output similar to the following:
Configuration for interface "Ethernet 2"
Make a note of the network interface name. In the example above it is Ethernet 2 (case sensitive) but it may be different in your configuration. In the next steps we will use this name to configure your computer's network settings.
Save Current Network Settings
After changing your computer's network interface settings, you may lose Internet connection. Once setup is complete, you can apply your computer's original network settings to restore access.
- To save your current network configuration, use the command:
netsh -c interface dump > <drive_letter>:\<path>\<settings_file>
For example, to save the network configuration to the file original_ip_config.txt in the root folder of drive C:, run the command:
netsh -c interface dump > c:\original_ip_config.txt
- To restore the original settings, follow the steps in the "Restoring Network Interface Settings Using CLI" section.
- To set network settings, use the netsh command:
netsh interface ip set address name="<interface name>" static <computer_ip_address> <subnet_mask> <gateway_ip_address> <gateway_metric>
- To configure an interface named Ethernet 2 with a static IP address of 192.168.1.100, a subnet mask of 255.255.255.0, and a default gateway of 192.168.1.1, run the command:
netsh interface ip set address name="Ethernet 2" static 192.168.1.100 255.255.255.0 192.168.1.1
Or you can use a simplified version of the command (without specifying the gateway):
netsh interface ip set address name="Ethernet 2" static 192.168.1.100 255.255.255.0
Verify That Settings Are Applied
- Check network settings using the netsh command:
netsh interface ip show config