Currently, IP customization is not supported for Windows core VM.
To work around this issue for the core VM part of the recovery plan, complete this procedure:
- In the vSphere Web Client, go to the Recovery Plan tab > Related Object tab > Virtual Machine.
- Click Configure Recovery.
- Under Recovery properties, click Post Power on Steps.
- Click + and select command on Recovered VM type.
- In the Content field, enter these parameters:
Note: Replace the IP with the IP you want the VM to use at the recovery site.
C:\Windows\System32\netsh.exe interface set interface name=Ethernet0 DISABLED
C:\Windows\System32\netsh.exe interface ipv4 set address name=Ethernet0 static 192.168.0.146 255.255.255.0 192.168.0.1
C:\Windows\System32\netsh.exe interface set interface name=Ethernet0 ENABLED
This parameter will add Nesh command during test recovery.
- Start the SRM service on both the sites.