Microsoft Azure: Virtual Machines & Networking

Microsoft Azure: Virtual Machines & Networking

Here’s another lab I completed through CourseCareers IT Course. I’ll just give a walk-through in this article, but if you’re interested in seeing the steps along with screenshots, you can find the documentation here on my github. This lab focuses on using Microsoft Azure to create and configure virtual machines (VMs) and observe network traffic between them. The activity demonstrates Azure's capabilities in setting up a virtualized environment, using tools like Wireshark for traffic analysis, and applying basic networking principles such as ICMP, SSH, DHCP, and DNS. Participants also learn about configuring firewalls and managing network security groups.

Environments and Technologies Used

  • Microsoft Azure (Virtual Machines)
  • Remote Desktop
  • Wireshark

Operating Systems Used

  • Windows 10 (21H2)
  • Linux (ubuntu 22.04)

Step-by-Step

Create a Resource Group

  • Open the Azure portal and create a new Resource Group.

Create a Virtual Network

  • Set up a Virtual Network (VNet) and Subnet for the lab environment.

Create a Windows 10 Virtual Machine

  • Use the previously created Resource Group and Virtual Network.
  • Allow Azure to automatically configure the network and subnet for the VM.

Create a Linux (Ubuntu) Virtual Machine

  • Use the same Resource Group and Virtual Network as the Windows VM.
  • Configure username/password for authentication.

Set Up Remote Desktop

  • Install Microsoft Remote Desktop if on a Mac.
  • Use Remote Desktop to connect to the Windows VM.

Install Wireshark on Windows VM

  • Open Wireshark and start capturing traffic.
  • Apply filters for specific traffic types:
  • ICMP: Observe ping requests between the two VMs.?
  • Public Traffic: Ping a website (e.g., www.google.com) from the Windows VM.

Modify Firewall Rules

  • Initiate a continuous ping (ping 10.0.0.5 -t) from Windows VM to Linux VM.?
  • Block ICMP traffic in the Linux VM's Network Security Group and observe the effect in Wireshark.?
  • Re-enable ICMP traffic and confirm it resumes in Wireshark.

Analyze SSH Traffic

  • SSH into the Linux VM from the Windows VM using its private IP address.
  • Observe SSH traffic in Wireshark while executing commands.

Analyze DHCP Traffic

  • Filter for DHCP traffic in Wireshark.
  • Create a simple .bat file combining the ipconfig /release and ipconfig /renew commands. We run them from the file because if we run them manually, we lose our remote connection to the window-vm.
  • Use PowerShell to run the .bat file which performs the ipconfig /release and ipconfig /renew commands.?
  • Observe the DHCP traffic appearing in WireShark.

Analyze DNS Traffic

  • Filter for DNS traffic in Wireshark.
  • Use nslookup to retrieve the IP addresses of websites (e.g., google.com, disney.com).

Observe RDP Traffic

  • Filter for RDP traffic (tcp.port == 3389) in Wireshark.
  • Note the continuous traffic due to the live RDP session.

Close Connections

  • End the Remote Desktop session.

Delete Resources

  • Remove the Resource Groups and verify their deletion to avoid incurring charges.

Closing Thoughts This lab was an excellent opportunity to dive deeper into Azure's networking capabilities and to see how virtualized environments can replicate real-world network behaviors. From setting up virtual machines to analyzing traffic with Wireshark, the hands-on experience was invaluable in understanding key networking concepts like ICMP, SSH, DHCP, and DNS. By working through these tasks, I gained a clearer picture of how cloud infrastructure and networking come together to create scalable, efficient, and secure environments.

If you're new to Azure or cloud networking, I highly recommend experimenting with labs like this to build practical skills. Not only do they strengthen your understanding of the technology, but they also showcase your ability to solve real-world problems in a virtualized environment.

#CloudComputing #MicrosoftAzure #NetworkingBasics #ITTraining #CourseCareers

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

Theron Chaplin的更多文章

社区洞察