2018年1月3日星期三

Creating a new virtual switch for Hyper-v Server

When you install the Hyper-v role in the Add Roles And Features Wizard, you can create the Hyper-v Server's first virtual switches. If without a virtual switch, the virtual machine will unable to communicate with other.

Open Hyper-v Manager, Select Hyper-v Server you want to creat virtual switch. Then right-click it and select Virtual Switch Manager or select Virtual Switch Manager in the Actions pane.


















Select the following switch types, and click Create Virtual Switch:
External: The virtual switch is bound to networking protocol stack in the host operating system and connected to a physical network adapter. Ability to communicate with the physical network.
Internal: Bound to a separate instance of the networking protocol stack in the host operating system, independent from the physical network interface adapter and its connected network. The Hyper-v host operating system can access the physical network through the physical network interface adapter, but the virtual machines cannot access the physical network through the physical adapter.
Private: A private virtual switch can only be accessed by a virtual machine running on a hyper-v host.





























Type a name for the new virtual switch in the name text box.
If Select an External Network, you also need select the physical network adapter to which the virtual switch will be bound. And need configure the following option:
Allow Management Operating System To Share This Network Adapter: Selected by default when you create an external virtual switch, clearing this check box the host operating system will not be able to use this physical network adapter.
Enable Single Root I/O Virtualization (SR-IOV): Allows you to create an external virtual switch associated with a physical network adapter that supports SR-IOV. This option is only available when creating a new virtual switch; you cannot change an existing virtual switch's this option.
Enable Virtual LAN Identification For Management Operating System: If your environment uses VLANs, you also need to select this check box and configure the VLAN identifier.
Then click OK.





























Each physical network adapter can only create one virtual switch, but you can create multiple internal or private virtual switches.

You can use the New-VMSwitch cmdlet on Windows PowerShell to create a new virtual switch.
Name: Virtual Switch Name
NetAdapterName: The name of the network adapter to which the virtual switch is bound.
If don't know the name of the network adapter, you can use Get-NetAdapter cmdlet on Windows PowerShell to see.











Create a new Private or Internal virtual switch.
Name: Virtual Switch Name
SwitchType: The type of virtual switch; Private or Internal.

没有评论:

发表评论