question

Geeaz avatar image
0 Votes"
Geeaz asked SaiKishor-MSFT answered

How to detach and attach the network interface from VM1 to VM2 during failover?

Hi team,

We have 2 F5 load balancer VM's configured in our environment. With the current situation when we initiate the manual Failover, the switching of N/W interface is taking about 7-12 minutes to complete the DR activity. However, we would like to perform auto switching of these network interface from VM1 to VM2. How can we perform this.

What is the average time taken to detach and attach the network interface from 1 VM to another?

Please suggest.

azure-virtual-machinesazure-virtual-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

learn2skills avatar image
0 Votes"
learn2skills answered

Hi @Geeaz

I will suggest you other way, no need to detach and attach the network interface. just change IP address VM1 to VM2
1. First shutdown VM1
2. Change dummy IP address on the VM1
3. Shutdown VM2
4. Update VM1 IP address on VM2


If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Geeaz avatar image
0 Votes"
Geeaz answered learn2skills commented

No... I am aware on this. However, I need dettach and attach the Network interface with the IP configurations using powershell.

For example.
On a VM, we have 3 NIC's and one of the NIC have more IP configurations setup. We want to move this NIC and its IP configs to the VM2.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Geeaz
To detach and attach network interface average time 15-20 mins

0 Votes 0 ·
SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered

@Geeaz

This document provides steps to remove a network interface from a virtual machine using Powershell &
This document provides steps to add a network interface to a virtual machine using Powershell.

Hope this helps you. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

Remember:

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

Want a reminder to come back and check responses? Here is how to subscribe to a notification.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.