首页 > 解决方案 > 如何使用 UDR 分析来自 Azure 中另一个 VM 的流量

问题描述

设想

在 Azure 中,我有以下配置:

1 VNET(地址空间)- 10.10.0.0/24

问题

我需要创建一个 UDR(自定义路由),允许 VM1 接收来自 VM2 的所有数据包。

那条路线会是什么?

我似乎在互联网上找不到任何解释这种情况的链接。

标签: azureroutesvnet

解决方案


I have tested in my environment.

By default, the VM1 in subnet1 is allowed to receive all data packets from VM2 in subnet2 if both subnet1 and subnet2 are in the same Virtual Network. We do not need to create any custom route (User Defined Route) for this

For this to work, the firewall for the private networks needs to be turned off inside both the VMs. Then both the VMs will be able to receive data packets from each other

I created VM1 (10.0.0.4) in subnet1 (10.0.0.0/24) and VM2 (10.0.1.4) in subnet2 (10.0.1.0/24)

I turned the firewall off for private networks in both the VMs VM1 and VM2

I can receive data packets from each other

I pinged VM2 private IP address from VM1 and able to receive the data packets from VM2

enter image description here


推荐阅读