Azure Network Peering not working with VPN Gateway on both sites?

Thomas S 21 Reputation points
2021-08-06T12:08:07.427+00:00

Hello,

maybe someone can help me with my problem. As in the picture below show, i have 2 virtual networks with each a virtual network gateway and vpn connection to on premise. between the two VNETs i established a VNET peering with "use this virtual network gateway or route server" activated. i can't use one the left peering "use the remote virtual network gateway or route server". I guess this is because there is also a Virtual Network Gateway on this site?
As in the picture shown, i can access ressources from both VNETs. That is not a problem. The problem is, that i can't access the 10.78.192.0/22 network from the onpremise 10.40.0.0/16 network. Is there anything i forgot or is this not a possible way? Or do i need something in addition.

121202-azure-vpn2.jpg

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,401 questions
0 comments No comments
{count} votes

Accepted answer
  1. SaiKishor-MSFT 17,206 Reputation points
    2021-08-06T23:24:50.993+00:00

    @Thomas S The setup shown above will not work because, the virtual network that is using a remote gateway can't have its own gateway. A virtual network has only one gateway.

    Therefore, if you want connectivity between Virtual Network 1 (10.78.192.0/22) & on-premise (10.40.0.0/16), you have the following options:

    1. You can have a VPN connection directly from on-premise (10.40) to Virtual Network 1. Otherwise, you need to disable the VPN1 Gateway on Vnet1 and enable the option to Use Remote Gateway only and that will work.
    2. You can also implement a Hub Vnet and peer the Vnet1 &2 to it and setup a VPN from both on-premises to this Hub network as shown below:

    121276-image.png

    The above setup would be ideal as it simplifies the setup as the network keeps growing. Hope this helps.

    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

0 additional answers

Sort by: Most helpful