How do I restore the IP address for my PC via command line?

This article discusses restore your PC's IP address to communicate with your WWVDS system from a command line.

Open Command Prompt

  1. Open command prompt using one of the following methods:
    1. Windows key + R —> type cmd —> click OK.
    2. Star menu —> type run and open applet —> type cmd —> click OK.

Restore Previously Saved Settings

  1. To restore previously saved network settings, use the following command:
netsh exec <drive_letter>:\<path>\<settings_file>

For example:

  • to restore the network configuration from a file, such as c:\original_ip_config.txt, run the command:
netsh interface ip set address "<interface_name>" dhcp
  • if the interface name is Ethernet 2, run the command:
netsh interface ip set address "Ethernet 2" dhcp

Confirmation

  1. Check the network settings using the netsh command:
netsh interface ip show config