use netsh command:
i'll show you a demo.
say your current IP address setting is for Home
then run the following command at command prompt
c:\netsh -c interface dump > c:\MyHome.txt
the above command will save your home connection setting to c:\MyHome.txt file
Similarly run the following command when your office settings are configured
c:\netsh -c interface dump > c:\MyOffice.txt
Now whenever you want to load your saved IP setting, say Office one then run following command at command prompt:
c:\netsh -f c:\MyOffice.txt
this command will overwrite your current settings with one in MyOffice.txt file.
Cheers