Skip to content

Tanakagi/Virtual-Network-Peering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Virtual-Network-Peering

In this project, my goal was to pair two virtual networks within the same region, ensuring they were connected and that resources could communicate with each other.

Environments Used

  • Azure Portal
  • CLI

Project walk-through:

I already have a virtual network named Vnet1 which I planned to peer with a new virtual network named vnet2 that I needed to create.

I started the creation of vnet2 using the CLI and made sure that the IP address space did not overlap with Vnet1’s:



I then verified the creation of vnet2 in the portal:



I then started the creation of a virtual machine (vm3) within the virtual network (vn2) using the CLI:
Disk Sanitization Steps


I then confirmed the creation of vm3 in the portal:
Disk Sanitization Steps


the next step was peering the virtual networks. in the portal, I went to vnet 2 and created a peering between vnet2 and Vnet1:
Disk Sanitization Steps


I named the peering MainVnetPeering and the peering link name Vnet1-to-vnet2. I selected both “Allow 'vnet2' to access 'Vnet1’” and “Allow 'Vnet1' to access 'vnet2’”:
Disk Sanitization Steps


I then made sure the peering status was connected:
Disk Sanitization Steps


Once the peering was complete I connected to vm3 in the portal via native RDP and followed the prompts:
Disk Sanitization Steps Disk Sanitization Steps Disk Sanitization Steps Disk Sanitization Steps


Once i was connected to vm3 i pinged VM1 which is hosted within vnet1 using its private IP address, which was 10.1.0.4:
Disk Sanitization Steps


After pinging VM1 from vm3 I attempted to connect to VM1 from vm3 by running the following command mstsc /v:10.1.0.4:
Disk Sanitization Steps


The connection was successful, so then I filled in VM1 credentials and followed the prompts:
Disk Sanitization Steps Disk Sanitization Steps


I successfully connected to VM1 from vm3 and reached the Goal of this project:
Disk Sanitization Steps

About

In this project, my goal was to pair two virtual networks within the same region, ensuring they were connected and that resources could communicate with each other.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors