If you have a portable computer with which you use to connect in different locations (home, office), you may need to constantly reconfigure your TCP/IP settings, IP address, subnet mask, default gateway etc, manually. Another example is that if you want to format your hard drive to perform a new installation then it would be nice to save your IP settings. Normally you would write all of these on a piece of paper, that then lies around your office until you need them again.
To prevent having to constantly perform these changes, there is an integrated command in Windows that will allows you to automate this task.
Here’s how it can be done: 1.Saving your IP configuration in a file. Click on “Start”, “Run” and type “cmd”. Click “OK” so that you have a DOS command line in front of you. Then type the following command:
netsh -c interface dump > c:\home.txt
The “home.txt” file will be generated on the C drive, and will contain all the IP settings on your network interface.
2.Restoring your IP configuration from a file
Click on “Start”, “Run” and type “cmd”. Press “OK” and you will have a DOS command line in front of you. Then type the following command:
netsh -f c:\maison.txt
All the IP configuration settings will be imported; there will be nothing else that you need to do.
Note: For Windows XP users, it is possible to have an alternative IP configuration with this option being specially designed for people that carry laptop computers. This is accessible directly from the “TCPI/IP Settings” under the “Alternative Configuration” tab.
To learn more about the netsh (NetShell) command, then I recommend that you read this comprehensive article: