官术网_书友最值得收藏!

Configuring virtual network peering

Configuring virtual network peering is a very straightforward process. To do so, you can follow these steps:

  1. Navigate to Virtual networks, and open the blade of one of the virtual networks that you want to peer.
  2. Scroll down to Peerings, as shown in the following screenshot:
Figure 2.7: Virtual network peering
  1. Click on Add, and a new blade will pop up, where you have to specify the following:
    • Name: Give the peer a name.
    • Virtual network deployment model: Specify whether you want to work with Resource manager or Classic model.
    • I know my resource ID: Select this option to enter the resource ID of the virtual network you wish to peer with if you do not have read access to the virtual network or a subscription you want to peer with.
    • Subscription: Select the subscription of the virtual network you wish to peer with.
    • Virtual network: Specify the virtual network you wish to peer with.
    • Allow virtual network access: Enable this option if you wish to allow communication between the two virtual networks. This allows the virtual network address space to be included as a part of the VIRTUAL_NETWORK tag.
    • Allow forwarded traffic: This option allows the peer's forwarded traffic (traffic not originating from inside the peer virtual network) into your virtual network.
    • Allow gateway transit: This option allows the peer virtual network to use your virtual network gateway. The virtual network cannot have a gateway configured, and must select Use remote gateways in its peering settings.
    • Use remote gateways: Select this option if you wish to use your peer's virtual network gateway. The peer virtual network must have a gateway configured, as well as Allow gateway transit enabled. Only one peering in this virtual network can have this enabled. You cannot use this setting if you already have a gateway configured in your virtual network.
Figure 2.8: Configuring the peering
  1. Once you are done, you can see that the peer has been created, as shown in the following screenshot:
Figure 2.9: The created peer
  1. As you can see in the previous screenshot, the PEERING STATUS is Initiated, and that means you are only done with the first part. Therefore, you need to navigate to the peered virtual network and repeat the same steps for the peer creation.
  2. Once you are done with repeating the process on the peered virtual network, the PEERING STATUS should be turned into Connected, which means everything is going fine, and you can communicate successfully with resources from any virtual network peer, as shown in the following screenshot:
Figure 2.10: Peering status change
  1. By now and based on the settings you have specified during the peering configuration, the traffic would follow between the two virtual networks.
主站蜘蛛池模板: 扶绥县| 荥阳市| 宁安市| 安康市| 钟祥市| 莲花县| 潍坊市| 黄龙县| 兴文县| 塔城市| 辽阳市| 翁牛特旗| 松滋市| 九台市| 阜阳市| 庆城县| 老河口市| 屯留县| 乐亭县| 申扎县| 进贤县| 盐源县| 漳平市| 馆陶县| 太保市| 逊克县| 新巴尔虎右旗| 阿勒泰市| 镇巴县| 夹江县| 象州县| 景宁| 天峨县| 靖宇县| 淅川县| 茌平县| 赤壁市| 枝江市| 宁津县| 蓬安县| 文登市|