Payton Flint's Tech Blog
Menu
  • Home
  • Blog
  • Categories
  • Resources
  • About
  • Contact
Menu

Homelab – Virtual Network Configuration

Posted on November 7, 2022June 4, 2023 by paytonflint

In my home lab environment, I find it convenient (most of the time) for my devices to be able to communicate with one another unimpeded. Doing so allows for simple file transfer, to use RDP, or to ping virtual devices. Often these capabilities are not a necessity, but they do make things convenient. And, in my mind, the lab is for rapid testing and learning – not for toiling over simple tasks. It should be noted that it is important to understand the security implications of allowing unimpeded communication between your devices, and this should only be done in a secure environment. Caution should be exercised here.

I’ll be using Hyper-V, as it is the virtualization platform I am most familiar with. Although, I should give honorable mention to VMWare, because I find their virtual network scheme to be much more intuitive – so much so, in fact, that it helped me in troubleshooting my virtual network configuration using Hyper-V.

Let’s get started- in Hyper-V, navigate to Virtual Switch Manager from the Actions pane in Hyper-V Manager.

We’re going to configure an external switch that shares your network adapter by using a bridged connection. Select New virtual network switch, select External, and press Create Virtual Switch.

In Virtual Switch Properties, select your desired network adapter from the external network drop-down menu and be sure to check the Allow management operating system to share this network adapter box. This allows for the VM to share the network adapter of the host machine by using a bridged connection. If we were not to do this, a device using this switch will not be given its own internal IP by the DHCP server, because it will effectively be viewed as the same entity.

If a bridged connection is not being used, you will notice that the host machine will infer the improper DNS suffix when resolving the hostname, and the IP will be in the improper range. To check this, I would use a quick ping of the VM from the host – BUT, default Windows settings will not allow ICMP traffic.

To fix this, navigate to your Windows Defender Firewall settings and select Allow an app or feature through Windows Defender Firewall.

Check the boxes for File and Printer sharing. And, while we are here, scroll down to Remote Desktop and check those boxes as well.

In Windows 11, Remote Desktop now has its own settings menu under Settings > System > Remote Desktop. Be sure Remote Desktop is enabled.

I also want to enable network discovery. To enable network discovery, open Run using the hotkeys Win+R, and enter “services.msc”. Enable and start the following services, and set their startup type to Automatic: DNS Client, Function Discovery Resource Publication, SSDP Discovery, and UPnP Device Host.

Finally, in Control Panel, enable Network discovery and File and printer sharing.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About The Author

Author's Portrait

In my journey as a technologist and 11 years of experience as an IT professional, I have found my niche as Director of Infrastructure Services; developing my skillsets in management, scripting, cloud infrastructure, identity management, and networking.

I have experience as a Systems Administrator and Engineer for large enterprises including the DoD, government agencies, and a nuclear-generation site.

I've been blessed to collaborate with engineers at esteemed Fortune 50 corporations, and one of Africa's largest, to ensure successful implementation of my work.

GitHub Button

Credentials

M365 Endpoint Administrator Associate
M365 Fundamentals
Microsoft AZ-900
CompTIA CSIS
CompTIA CIOS
CompTIA Security+
CompTIA Network+
CompTIA A+
  • April 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
© 2022 Payton Flint | The views and opinions expressed on this website belong solely to the author/owner and do not represent the perspectives of any individuals, institutions, or organizations, whether affiliated personally or professionally, unless explicitly stated otherwise. The content and products on this website are provided as-is with no warranties or guaranties, are for informational/demonstrative purposes only, do not constitute professional advice, and are not to be used maliciously. The author/owner is not responsible for any consequences arising from actions taken based on information provided on this website, nor from the use/misuse of products from this site. All trademarks are the property of their respective owners.