VNet peering says connected but receving resource not found error

Vignesh Sukumar 26 Reputation points Microsoft Employee
2024-02-22T17:56:53.5833333+00:00

Hi, Please help with the below query I am trying to peer two different VNet (from different region and subscription). was able to peer it and the connected status is displayed as connected. But not able to post from VNet2 to Vnet1. Was seeing a warning in Address space tab that the "Virtual networks with overlapping address space cannot be peered. If you intend to peer these virtual networks, change address space" Can i add additional set of ips in addition to this. (if yes, how the vnet peering understands new set of ips, and how to define it) or should i delete this range and add a new set (If yes how to define new range of ips)

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

Accepted answer
  1. Vinicius Deschamps 201 Reputation points
    2024-02-22T19:14:57.3033333+00:00

    Hi Vignesh,

    The address space overlap is not allowed due to the potential for IP address conflicts to establish the peering communication.

    You didn't share your address spaces, so I'm going try to explain how it might be overlapping:

    • The address space you will have available is determined by the network mask you choose (e.g /16, /24)
    • If you have an address space that is /24, the addresses available will be only from 1-254 (e.g 192.168.1.1 to 192.168.1.254), and only at the last part of the address
    • If you have an address space that is /16, the addresses available from 1-254 in the last two part of the address (e.g 192.168.1.1 to 192.168.254.254)

    Imagining a scenario that you have the following address spaces:

    • 192.168.1.0/24 (VNET1)
    • 192.168.5.0/16 (VNET2)

    The address space from VNET2 is overlapping VNET1, because VNET2 also has the option to have 192.168.1.0 addresses which conflicts with VNET1

    I'd recommend you to check IP Calculator, and check where is the overlapping happening

    Once you determine that, then you can follow this steps

    1. In the search box at the top of the Azure portal, enter virtual networks. Select Virtual networks from the search results.
    2. From the list of virtual networks, select the virtual network to modify.
    3. Under Settings, select Address space.
    4. On the Address space page, change the address range prefix per your requirements, and select Save. Screenshot of the Address Space page for changing a subnet's prefix.
    5. Under Settings, select Peerings and select the checkbox for the peering that you want to sync.
    6. Select Sync from the taskbar. Screenshot of the Peerings page where you resync a peering connection.
    7. Select the name of the other peered virtual network under Peer.
    8. Under Settings for the peered virtual network, select Address space and verify that the address space listed has been updated. Screenshot of the Address Space page where you verify the address space has changed.

    When you update the address space for a virtual network, you need to sync the virtual network peer for each remote peered virtual network. We recommend that you run sync after every resize address space operation instead of performing multiple resizing operations and then running the sync operation.


0 additional answers

Sort by: Most helpful

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.