简体   繁体   English

在连接的Azure虚拟网络上的VM之间进行通信

[英]Communicate between VMs on connected Azure Virtual Networks

I have two virtual networks (classic) in Azure, and I need to be able to ssh between vms on these networks. 我在Azure中有两个虚拟网络(经典),并且需要能够在这些网络上的vm之间切换。 I have followed the instructions here ( https://azure.microsoft.com/en-us/blog/vnet-to-vnet-connecting-virtual-networks-in-azure-across-different-regions/ ), and successfully connected the networks. 我已按照此处的说明( https://azure.microsoft.com/en-us/blog/vnet-to-vnet-connecting-virtual-networks-in-azure-across-different-regions/ ),已成功连接网络。 However, when I try and ping vm1 on vnet1 and vm2 on vnet2 the request times out, so it looks like vm1 cannot see vm2. 但是,当我尝试在vnet1上ping vm1和在vnet2上ping vm2时,请求超时,因此看起来vm1看不到vm2。 Are there any further steps I need to take to allow communication? 我需要采取其他步骤来允许交流吗? Shouldn't they be able to see each other's private IP addresses? 他们不应该能够看到彼此的私有IP地址吗?

That's a pretty loaded question, but I think there is a better walk through for you to have a look at: 这是一个非常棘手的问题,但是我认为有一个更好的方法可以让您了解一下:

Configure a VNet-to-VNet connection in the Azure Classic Portal 在Azure经典门户中配置VNet到VNet连接

or 要么

Configure a VNet-to-VNet connection for virtual networks in the same subscription by using Azure Resource Manager and PowerShell 使用Azure资源管理器和PowerShell为同一订阅中的虚拟网络配置VNet到VNet连接

Pick your poison... I've verified both of these work as intended if you follow the steps carefully. 选择您的毒药...如果您认真执行以下步骤,我已经验证了这两项工作均符合预期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM