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

Geeaz 121 Reputation points
2021-03-29T07:32:02.47+00:00

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 Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,072 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,130 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 13,921 Reputation points MVP
    2021-03-29T08:25:40.187+00:00

    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.

    0 comments No comments

  2. Geeaz 121 Reputation points
    2021-03-29T10:24:15.323+00:00

    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.


  3. SaiKishor-MSFT 17,176 Reputation points
    2021-04-02T20:40:24.09+00:00

    @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.

    0 comments No comments