Flipping between static addresses and dhcp addresses is a pain… right-click, click, click, double-click, type, type, type, type…. etc.
So – to change the address on the windows box using NETSH —
First, You must have an ADMINISTRATIVE command line (Start > Accessories > Command Line [right click select “run as administrator”]
To set a static ipv4 address:
netsh interface ipv4 set address name="Local Area Connection" static [IP] [mask] [gateway]
To set to use DHCP:
netsh interface ipv4 set address name="Local Area Connection" source=dhcp
And DONE
This works very well in a single-threaded virtual machine.