Automatically set the TCP/IP settings in Windows 2000/XP. Custom settings such as "Append DNS Suffixes" must be added manually in the Advanced TCP/IP properties of the network adapter.
# netsh script for VOLARIS # netsh -c interface dump > volaris.netsh # run with netsh -f volaris.netsh #======================== pushd interface reset all popd pushd interface ip set address name="Local Area Connection" source=static addr=128.95.228.13 mask=255.255.255.0 set address name="Local Area Connection" gateway=128.95.228.100 gwmetric=0 set dns name="Local Area Connection" source=static addr=128.95.120.1 register=PRIMARY add dns name="Local Area Connection" addr=128.95.112.1 index=2 add dns name="Local Area Connection" addr=128.95.44.1 index=3 set wins name="Local Area Connection" source=static addr=none popd
# netsh script for dhcp # netsh -c interface dump > dhcp.netsh # run with netsh -f dhcp.netsh #======================== pushd interface reset all popd pushd interface ip set address name="Local Area Connection" source=dhcp set dns name="Local Area Connection" source=dhcp register=PRIMARY set wins name="Local Area Connection" source=dhcp popd
