Configure VNet Peering

Hi Friends,

In this section, we will see how to configure peering between virtual networks.

  • Right now, we have two virtual network that are setup to talk to each other over peering relationship.
  • But, in previous example, we have actually setup global peering itself means virtual network setup in one region is talking to another region.
  • Same peering relationship can be setup for the same region itself. Currently, we have three virtual networks as shown below.

image

  • Out of which first and second are connected either way. Now, let’s setup for third as well. Here, I will connect VM 3 to VM 1. Below, I have used the same settings and created the peering.

image

  • Now, in current scenario, VM 3 can talk to VM 1. VM 2 can talk VM 1, but VM 2 can’t talk to VM 3.
  • In order to solve this, we can obviously setup peering relationship between VM 2 and VM 3. But, the other option we have is to setup the chaining relationship via forwarded traffic.

image

  • I can now go to VM 2 and into VM2ToVM1 peerings.

image

  • Now, I can click on this and enable the forwarded traffic as shown below.

image

  • So, any traffic from VM 3 which wants to travel to VM 2, we can enable it via here. We also need to enable VM 1 to talk to VM 3.
  • Now, I will go into First VM and then into peerings and then click on VM1ToVM3.

image

image

  • With this now chaining relationship has been setup.

Thanks for joining me.

Thanks,
Rahul Sahay
Happy Coding