NVA & vHub routing issue

Yu Dongdong 0 Reputation points
2023-10-01T04:08:44.6233333+00:00

vwan-issue

I have below network :

  • 2 vNet in eastus connect to vHub1 ( vNet1 & vNet2 )
  • 1 vNet in CentralUS connect to vHub2 ( vNet3 )
  • vHub1 & vHub2 are belongs to my vWan1 ( vHub1 in eastus , vHub2 in centralUS )
  • 1 VM in each vNet, they can connect to each other properly, by ping, or by ssh. ( VM-1 in vNet1, VM-2 in vNet2, VM-3 in vNet3 )
  • there is a NAT GW in vNet-1 in eastus which associated to sub-1 in vNet-1. ( i plan to route all 3 vNet internet outbound traffic via this NAT GW )
  • VM-1 is a ubuntu22 with ip-forwording enabled in eth0, and added a new eth1 ( 10.0.0.33 ) to act as an NVA device.
  • VM-1 able to access internet through NAT GW.
  • the default route table in vHub ( and i tried in vNet ) including: ' 0.0.0.0/0 next hop eth1 ( 10.0.0.33 ) ' .

i suppose this allow my VMs in other vNet able to access internet. i checked all NICs "effective route", it's shows 0.0.0.0/0 to next hop eth1 ( 10.0.0.33 ) , it's seems meet my expectation, but unfortunately, VM-2 & VM-3 unable to access internet either.

So could you please help to find the problems ?

Thanks ~!

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
224 questions
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,488 questions
Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
37 questions
{count} votes

1 answer

Sort by: Most helpful
  1. msrini-MSFT 9,286 Reputation points Microsoft Employee
    2023-10-03T08:39:42.2833333+00:00

    Hi,

    I think there is a loop getting created in the VNET 1 connection. You can override it with 2 ways.

    1. Create a UDR with 0.0.0.0/0 next hop Internet and associate it on to the VM1 subnet.
    2. Or do not associate the default routing table to the VNET1 connection which has 0.0.0.0/0 next hop as your NVA Interface.

    Regards,

    Karthik Srinivas


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.