Configure Microsoft Hyper-V Network & Assign to Virtual Machine

Microsoft Hyper-V Network types and descriptions

External

Gives virtual machines access to a physical network to communicate with servers and clients on an external network. Allows virtual machines on the same Hyper-V server to communicate with each other.

  • Allow management operating system to share this network adapter: Select this option if you want to allow the Hyper-V host to share the use of the virtual switch and NIC or NIC team with the virtual machine. With this enabled, the host can use any of the settings that you configure for the virtual switch like Quality of Service (QoS) settings, security settings, or other features of the Hyper-V virtual switch.

  • Enable single-root I/O virtualization (SR-IOV): Select this option only if you want to allow virtual machine traffic to bypass the virtual machine switch and go directly to the physical NIC. For more information, see Single-Root I/O Virtualization in the Poster Companion Reference: Hyper-V Networking.

Internal

Allows communication between virtual machines on the same Hyper-V server, and between the virtual machines and the management host operating system.

Private

Only allows communication between virtual machines on the same Hyper-V server. A private network is isolated from all external network traffic on the Hyper-V server. This type of network is useful when you must create an isolated networking environment, like an isolated test domain.


Enable virtual LAN identification for management operating system: If you want to isolate network traffic from the management Hyper-V host operating system or other virtual machines that share the same virtual switch, select Enable virtual LAN identification for management operating system. You can change the VLAN ID to any number or leave the default. This is the virtual LAN identification number that the management operating system will use for all network communication through this virtual switch.

How to create External virtual switch at Microsoft Hyper-V?

  • Click on Start

    Windows Icon
  • Search hyper-v manager

  • Click on Hyper-v Manager. The Hyper-v Manager window will open.

  • From top menu Click Action >> Virtual Switch Manager.. Virtual Switch Manager will open then.

    action-virtual-switch-manager
  • Under Create virtual switch Select External then Click on Create Virtual Switch

  • In Virtual Switch Properties

    • Name: put a name. my case I put Physical Lan

    • What do you want to connect this virtual switch to? Select External network.

    • External network: Dropdown please select your lan card.

      external-network-creation
  • Click on Apply

  • It will show a working dialog called Apply Networking Changes

    apply-networking-changes
  • Click Yes

  • It will save the External Lan connection with the name called Physical Lan

This way the process finished.

How to add External virtual switch in virtual machine at Microsoft Hyper-V?

  • Open Hyper-v Manager.

  • Select your Virtual Machine

  • From right panel below select the Settings..

    virtual-machine-network-creation
  • From left panel find out Network Adapter & Click on it.

  • From right panel under Virtual switch dropdown select the network which you created earlier.

    vm-select-virtual-switch