the tcpip settings are stored in the registry under this key
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{47B32ABE-8D29-4C0D-919B-8FF291D4005C}\Parameters\Tcpip]
"EnableDHCP"=dword:00000000
"IPAddress"=hex(7):31,00,39,00,32,00,2e,00,31,00,36,00,38,00,2e,00,30,00,2e,00,\
32,00,00,00,00,00
"SubnetMask"=hex(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,32,00,35,\
00,35,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):31,00,39,00,32,00,2e,00,31,00,36,00,38,00,2e,00,30,00,\
2e,00,31,00,00,00,00,00
the random alphanumeric string inbetween services and paramaters will be different on your computer but you should be able to export this key for each config that you want and store them in .reg files
then you just merge the .reg file for whatever network you're on
hope this helps
ps this is only in theory
be carful in the reg as it is an easy way to fuck up your system