Asr vnet has same ip address space as main vnet

tayfun tek 66 Reputation points
2023-01-24T17:48:55.04+00:00

As you know, when we create azure site recovery, it creates asr-vnet for the target region.

I noticed that asr-vnet has same IP address space with main-vnet. We're also planning to establish VPN connection from on-premise to main-vnet.

My concern is if both Vnets have the same IP address space, does it trigger any IP overlap situations?

Thanks

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,773 questions
0 comments No comments
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 49,611 Reputation points Microsoft Employee Moderator
    2023-01-25T09:07:02+00:00

    @tayfun tek

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to understand about the address space overlap constraints and best practises in Azure.

    From your verbatim,

    • I take it that you are planning to connect mainVnet and OnPremises.
    • Also, I assume that you are not planning to connect mainVNet and asr-vnet.
    • Please let me know if my understanding is incorrect.

    Having overlapping address space in a single Network (Azure + OnPrem which are connected) is not a best-practise and is not recommended.

    However, since you are planning to connect only mainVnet and OnPremises, I do not see any challenges/scenario where you would end up with an Overlapping Address Range.

    Your scenario is illustrated here : Hybrid resources: full failover.

    • In the asr-vnet, you only provision gateways but do not establish a connection before failover.
    • User's image
    • And After failover, you can delete/disconnect the original connection object and create a new connection with the asr-vnet.
    • User's image

    Kindly let us know if the below helps or you need further assistance on this issue.

    P.S:

    In case you have a requirement to connect overlapping IP Addresses across Azure S2S, you can consider NAT on VPN Gateway

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. Luke Murray 11,436 Reputation points MVP Volunteer Moderator
    2023-01-24T19:02:59.2733333+00:00

    It does, if the address space matches, it won't be able to be peered:

    User's image

    Your best bet would be to change the address space to the range that doesn't overlap with on-premises and any other network in Azure, to avoid routing issues..

    https://learn.microsoft.com/en-us/azure/virtual-network/update-virtual-network-peering-address-space#modify-the-address-range-prefix-of-an-existing-address-range

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.