具有公共IP负载平衡器的Azure Vnet对等 [英] Azure Vnet peering with public IP load balancer
问题描述
我有两个Vnet:
Vnet#1:1个具有公共(面向互联网)IP负载平衡器的VM-互联网连接的应用程序VM.
Vnet #1: 1 VM with Public (internet facing) IP load balancer - internet connected App VMs.
Vnet#2:3个具有 public (面向互联网)IP负载均衡器的VM-Internet和私有DB服务器(负载均衡器使用public ip,以便我可以访问数据库).
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).
我在Vnet1&之间建立了对等连接Vnet2,因此它们之间的通信将是私有的/内部的,并且不需要Internet路由即可快速进行通信.
I set up a peering between Vnet1 & Vnet2 so that the communication between them will be private/internal and fast with no internet routing.
我想从Vnet1访问Vnet2中的数据库(使用负载平衡器)-因此,在位于Vnet1中的VM中,我使用Vnet2公共IP负载平衡器.
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.
有效...
但是问题是-通信将通过互联网进行路由还是内部进行?由于Vnet被对等,Azure将在内部路由该路由,还是应该使用私有IP设置另一个负载平衡器?
推荐答案
通信是通过互联网进行路由还是通过内部的?Azure将在内部路由该路由,因为Vnet是对等还是应该使用私有IP设置另一个负载均衡器?
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?
如果您要通过专用网络路由网络流量,我们应该使用专用IP创建另一个负载均衡器,然后使用专用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.
更新:
在实验室进行测试后,根据结果,如果我们使用公共IP,则流量网络将不在内部.
After test in my lab, according to the result, it seems if we use public IP, the traffic network will not be internal.
在设置对等连接之前,这是Trart :
Here is the tracert before set peering:
这是设置对等关系后的
Here is the tracert after set peering:
14跳,与未设置对等功能相同,因此我认为对等功能不会将公共IP流量更改为内部IP.
14 hops, same as not set peering, so I think peering will not change the public IP traffic to internal.
顺便说一下,Azure的两个公用IP地址,我猜他是说所有流量都将在内部,这意味着公用IP流量将在Azure数据中心中,而不会进入Internet.
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.
这篇关于具有公共IP负载平衡器的Azure Vnet对等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!