Resetting the Network Stack in a Running Virtual Machine
In any case where you change the network identity settings in the guest operating
system of a running virtual machine, you must reset the network stack for the virtual NIC to
cause it to adopt the new settings. You can do this by invoking the
VirtualMachineGuestCustomizationManager.RestartNetwork_Task
method
after you customize the network settings, or you can do the reset from the guest operating
system, as with a physical machine. The way to reset a NIC differs, depending on the
operating system.
For information about the RestartNetwork_Task
method, see Restarting the Guest Network After Customization.