Is there a way to do a migration maintaining the same Ip Address?

Andrea Longhitano 80 Reputation points
2024-06-24T14:05:08.1466667+00:00

Hi everyone,

is there a solution to do a migration using the same IP Addresses?

Let's say I have an on-premise VNET 10.0.0.0/24 and I would like to execute a migration to Azure using the same IP Addresses. Is there a feasible solution?

I have found https://video2.skills-academy.com/en-us/azure/virtual-network/subnet-extension this solution but it's not documented very well. Is it working? the last update is on 2021, so I'm not sure.

Thank you,
Andrea

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,252 questions
{count} votes

Accepted answer
  1. Deepanshukatara-6769 6,715 Reputation points
    2024-06-24T14:19:39.34+00:00

    Hi Andrea,

    Yes, there is a solution to migrate an on-premises VNET to Azure using the same IP addresses. The solution is called subnet extension, which allows you to extend your on-premises subnets to Azure using a layer-3 overlay network-based solution. This solution uses an overlay technology such as VXLAN to extend the layer-2 network using a layer-3 overlay network. The same subnet exists on both sides, that is, Azure and on-premises, and the IP addresses from the subnet are assigned to VMs on Azure and on-premises. Both Azure and on-premises have an NVA inserted in their networks. When a VM in Azure tries to talk to a VM in the on-premises network, the Azure NVA captures the packet, encapsulates it, and sends it over VPN/Express Route to the on-premises network. The on-premises NVA receives the packet, decapsulates it, and forwards it to the intended recipient in its network. The return traffic uses a similar path and logic.

    However, it's important to note that subnet extension is not a recommended practice in general, and you should only extend your subnets if it is necessary. In cases where you do extend your subnets, you should try to make it an intermediate step. With time, you should try to renumber applications in your on-premises network and migrate them to Azure.

    For more information, you can refer to the following resources:

    Kindly accept answer if it helps

    Please let me know if any further questions

    Thanks

    Deepanshu


1 additional answer

Sort by: Most helpful
  1. Jackson Martins 10,126 Reputation points MVP
    2024-06-24T14:19:31.63+00:00

    Hi @Andrea Longhitano
    Let me understand better,

    Are you planning to migrate your entire workload to Azure, or do you want to migrate part of your infrastructure and maintain a VPN?

    If you intend to migrate your entire workload, you can provision the subnet with the same IP address, and you will not encounter any issues.

    However, if you want to migrate part of your workload and maintain a VPN, you will face problems due to the overlapping IP addresses.

    The document you found on subnet extension provides a way to extend your on-premises subnets into Azure. This solution can work but requires careful planning and configuration to avoid conflicts and ensure seamless connectivity.

    A practical solution, which I have implemented several times, is to change the IP addressing. For example:

    On-premise: 10.0.0.0/24

    Azure: 10.10.0.0/24

    You can then manage access transparently for the users via your firewall. Here's how:

    Old server address: 10.0.0.10

    New server address: 10.10.0.10

    When your local network tries to access the address 10.0.0.10, the request is forwarded to the Azure VPN at the new address. This way, the transition is seamless for the users, and you avoid IP conflicts.

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--

    0 comments No comments