VNet Peering VPN Gateway

Handian Sudianto 5,776 Reputation points
2025-03-01T14:53:21.8133333+00:00

I have 2 Vnet and both Vnet is peered, VM inside Vnet1 can communicate with VM inside Vnet2.

I also have VPN gateway connected to Vnet1, and from my onprem can communicate with vnet1, but why from my onprem can't communicate to vnet2?

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

2 answers

Sort by: Most helpful
  1. Marcin Policht 38,000 Reputation points MVP
    2025-03-01T14:56:35.0866667+00:00

    Follow https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-peering-gateway-transit

    In hub-and-spoke network architecture, gateway transit allows spoke virtual networks to share the VPN gateway in the hub, instead of deploying VPN gateways in every spoke virtual network. Routes to the gateway-connected virtual networks or on-premises networks propagate to the routing tables for the peered virtual networks using gateway transit.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Marcin Policht 38,000 Reputation points MVP
    2025-03-01T23:59:25.14+00:00

    Use the following architecture to implement your scenario:

    https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-bgp-overview#transitrouting


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    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.