Azure Networking(3) : Peering

Azure Networking(3) : Peering

Peering is the best way to open a connection between two virtual networks, so the virtual machines inside those virtual networks that are peered can talk to each other using one of the protocols.

Scenario :

I will have two VMs each connected to a vnet, then I will try to send ping request to VM1 from VM2 before configuring the peering and after configuring it and see what is the result.  

Virtual networks :

These are the two networks that I need to connect them to each other.

Aucun texte alternatif pour cette image

First of all, I will connect to VM2 from my local due to its public IP address via SSH, then I will send ping request to VM1 and see what will be the response if there is any.

But before send the ping request to VM1, I should make sure that the network security group (NSG) include the rule that allows VM1 to receive ping request. And because it is not enabled by default, I will create that rule in VM1 NSG, that can be done just by adding inbound security rule for ICMP protocol.

Aucun texte alternatif pour cette image

Now once I made sure that VM1 has that rule that enables inbound for ICMP protocol, I will connect to VM2 and send ping request to VM1.

Aucun texte alternatif pour cette image

As you can see I send ping request before adding the inbound rule for ICMP and after adding it, and the result is always the same. What I need to do now, it is the peering.

Aucun texte alternatif pour cette image
Aucun texte alternatif pour cette image
Aucun texte alternatif pour cette image

And now by pressing Add, the peering between the two virtual networks will be created and we will be able to communicate the VMs inside them. 

Aucun texte alternatif pour cette image

Now if I resend ping request to the VM1 from VM2 I am sure that I will get response because the peering is created and the rule of inbound is enabled in VM1. And here is the response when I sent ping request from VM2 to VM1.

Aucun texte alternatif pour cette image

I hope you've enjoyed the reading of this article, any question or comment, I will answer .

要查看或添加评论,请登录

Mohamed-Lamin Taleb的更多文章

  • Azure Networking(5) : Network security Groups

    Azure Networking(5) : Network security Groups

    We cannot talk about Azure network security group without mentioning Network security group, so in this article I will…

  • Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    In this fourth articles about Azure networking, I would like to share with how to establish connection between two…

  • How To Build Your Own ChatGPT API With Express_js

    How To Build Your Own ChatGPT API With Express_js

    As AI is going so popular, I felt the need to explain how someone could build his own ChatGPT API using one of the…

  • Azure Networking (2) : Private Endpoints

    Azure Networking (2) : Private Endpoints

    Private endpoints are somehow extremely Important when it comes to the privacy of the cloud and its security parameter,…

  • Azure Networking (1): Azure Private DNS Zones

    Azure Networking (1): Azure Private DNS Zones

    Azure private DNS zone is one of azure services to keep privacy on virtual networks (Vnet) in Azure networking, in this…

  • Patch Function in Power Apps : SharePoint Number Column

    Patch Function in Power Apps : SharePoint Number Column

    Patch Function in Power Apps : SharePoint Number Column Let me show you, how to update a column of the type Number in…

  • How To Call Power Automate From Canvas App

    How To Call Power Automate From Canvas App

    Here in this article, we’ll see how to call Power Automate From Canvas App using PowerApps(V2) Action in Power Automate…

  • How To Install WordPress: Step-by-Step Guide

    How To Install WordPress: Step-by-Step Guide

    Used by more than 455 million sites, WordPress is a content management system (CMS) that has existed since 2003. It…

  • How To Get Started With NextJS

    How To Get Started With NextJS

    Nextjs is a Framework for creating pre-rendered React websites by server-side rendering (SSR) or static side generation…

  • How to use GPS in PowerApps.

    How to use GPS in PowerApps.

    Maps can be used to show contextual information to your users, reason for witch allowing you to represent location data…

    1 条评论

社区洞察

其他会员也浏览了