问题
I got two Vnets:
Vnet #1: 1 VM with Public (internet facing) IP load balancer - internet connected App VMs.
Vnet #2: 3 VMs with public (internet facing) IP load balancer - internet and private DB servers (the load balancer is using public ip so that I could access the DBs).
I set up a peering between Vnet1 & Vnet2 so that the communication between them will be private/internal and fast with no internet routing.
I want to access the DBs (using a load balancer) in Vnet2 from Vnet1 - so in the VM located in Vnet1 I use Vnet2 public IP load balancer.
It works...
But the question is - will the communication be routed through the internet or will it be internal? will Azure route the that internally because the Vnets are peered or should I set up another load balancer with Private IP?
回答1:
will the communication be routed through the internet or will it be internal? will Azure route the that internally because the Vnets are peered or should I set up another load balancer with Private IP?
If you want to route the network traffic through the private network, we should create another load balancer with private IP, then use private IP address to access it.
Update:
After test in my lab, according to the result, it seems if we use public IP, the traffic network will not be internal.
Here is the tracert before set peering:
Here is the tracert after set peering:
14 hops, same as not set peering, so I think peering will not change the public IP traffic to internal.
By the way, two public IP addresses of Azure, I guess he mean that all traffic will internal, means that public IP traffic will in Azure data centers, will not go to the Internet.
来源:https://stackoverflow.com/questions/46602280/azure-vnet-peering-with-public-ip-load-balancer