How do I route all traffic to SonicWall NSv using the same address space (same VNet) and same subnet?
03/26/2020 5 7473
IP Addresses used in this article
Create a virtual machine (10.5.1.5/24) which uses the same address space (same resource group) behind X0 interface of SonicWall 10.5.1.5/24 and X1 interface of SonicWall 10.5.0.4/24.
Create a route table defining the resource group under Home > Route Tables. Note: SonicWall and Virtual Machine belongs to same resource group.
Add a route which will send any traffic to the next hop as 10.5.1.4 under Home > Route Tables > Azure_Traffic_via_X0.
Associate the subnet to the route table by defining the virtual network AzureNSvSonicWALL and Subnet X0.
NOTE: Deploy a virtual appliance into a different subnet than the resources that route through the virtual appliance.
CAUTION: Deploying the virtual appliance to the same subnet, then applying a route table to the subnet that routes traffic through the virtual appliance, can result in routing loops, where traffic never leaves the subnet.