azure - 如何使用 UDR 分析来自 Azure 中另一个 VM 的流量
问题描述
设想
在 Azure 中,我有以下配置:
1 VNET(地址空间)- 10.10.0.0/24
子网 1 - 10.10.0.0/28
子网 2 - 10.10.0.16/28
VM 1(在子网 1 中)- 具有 10.10.0.1 的 IP@
VM 2(在子网 2 中)- 具有 10.10.0.17 的 IP@
问题
我需要创建一个 UDR(自定义路由),允许 VM1 接收来自 VM2 的所有数据包。
那条路线会是什么?
我似乎在互联网上找不到任何解释这种情况的链接。
解决方案
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
推荐阅读
- curl - curl: (7) 连接 127.0.0.1 端口 3000 失败:连接被拒绝
- sql - 通过调用函数更新列非常慢 - 如何改进?SQL 服务器
- python - 使用对象时面临“列表索引超出范围”错误
- c# - MailKit - SmtpClient Connect 方法冻结
- c# - Azure函数使用实体框架但连接字符串不起作用
- javascript - 为 ag-grid 定义仅一个特定列的自动大小列是可能的吗?
- php - Laravel 与自定义键的多态关系
- javascript - 使用 jQuery.when() 调用两个 Html2Canvas 调用
- r - 将日期和时间与时间戳分开
- android - 当 ViewPager 中的片段出现和消失时如何执行一些代码