建立新 NIC 團隊,在 VM 中Create a New NIC Team in a VM

適用於:Windows Server(以每年次管道)、Windows Server 2016Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016

您可以使用此主題連接一樣 (VM) HYPER-V Virtual 切換至一致 NIC 小組需求,在 Vm 中的方式。You can use this topic to connect a virtual machine (VM) to Hyper-V Virtual Switches in a manner that is consistent with NIC Teaming requirements within VMs. 您也可以使用本主題以建立新 NIC 團隊,在 VM 中。You can also use this topic to create a new NIC team in a VM.

本主題包含下列各節。This topic contains the following sections.

網路設定需求Network configuration requirements

實體切換、HYPER-V Virtual 切換、區域網路(區域網路)和 NIC 小組需求建立 NIC 團隊,在 VM 中」:The physical switch, Hyper-V Virtual Switch, local area network (LAN), and NIC Teaming requirements for creating a NIC Team in a VM are:

  • 執行於 HYPER-V 的電腦必須配備具有兩個或更多的網路介面卡。The computer that is running Hyper-V must have two or more network adapters.

  • 如果網路介面卡連接至多個實體的參數,實體參數必須相同層級 2 子網路上。If the network adapters are connected to multiple physical switches, the physical switches must be on the same Layer 2 subnet.

  • 您必須使用 HYPER-V 管理員或 Windows PowerShell 命令來建立兩個外部 HYPER-V Virtual 參數,每一個都已連接至不同的實體網路介面卡。You must use Hyper-V Manager or Windows PowerShell commands to create two external Hyper-V Virtual Switches, each of which is connected to a different physical network adapter.

  • VM 中您想要設定 NIC 小組必須連接到您建立這兩個外部 virtual 參數。The VM in which you want to configure NIC Teaming must be connected to both external virtual switches that you create.

  • Windows Server 2016 NIC 小組方案支援小組的成員兩個 Vm 中。The Windows Server 2016 NIC Teaming solution supports teams with two members in VMs. 您可以建立大團隊,但不是支援此類團隊。Larger teams can be created but such teams are not supported.

  • NIC 團隊,在 VM 中必須有設定為 [切換獨立他們 Teaming 模式。NIC Teams within a VM must have their Teaming mode configured as Switch Independent. 此外,必須設定負載平衡模式 NIC 團隊,在 VM 中的位址 Hash distribution 模式。In addition, Load Balancing mode for the NIC Team in a VM must be configured with the Address Hash distribution mode.

設定實體和 virtual 網路Configure the physical and virtual network

在執行此程序之前,您必須部署具有兩個網路介面卡是連接至不同的實體參數,HYPER-V 主機,您必須使用的相同的 IP 位址範圍的 IP 位址設定網路介面卡。Before you perform this procedure, you must deploy a Hyper-V host with two network adapters that are connected to different physical switches, and you must configure the network adapters with IP addresses that are from the same IP address range.

使用下列程序,您可以建立兩個外部 HYPER-V Virtual 的參數,連接 VM 參數,然後設定切換至 VM 連接。By using the following procedure, you can create two external Hyper-V Virtual Switches, connect a VM to the switches, and then configure the VM connections to the switches.

重要

此程序,不包含如何建立 VM 上的指示操作。This procedure does not include instructions on how to create a VM.

資格在系統管理員,或相當於,才能執行此程序最小值。Membership in Administrators, or equivalent, is the minimum required to perform this procedure.

建立 virtual 切換,並連接 VMTo create a virtual switch and connect a VM

  1. HYPER-V 主機上開放 HYPER-V 管理員],然後按一下Virtual 切換管理員]On the Hyper-V host, open Hyper-V Manager, and then click Virtual Switch Manager.

    Virtual 切換管理員

  2. 開啟 virtual 切換管理員。Virtual Switch Manager opens. 您想要建立的 virtual 切換類型?,確保外部已選取,然後按一下建立 Virtual 切換In What type of virtual switch do you want to create?, ensure that External is selected, and then click Create Virtual Switch.

    建立 Virtual 開關切換至

  3. Virtual 切換屬性網頁開啟。The Virtual Switch Properties page opens. 輸入 a名稱針對 virtual 切換,並新增筆記視。Type a Name for the virtual switch, and add Notes as needed.

  4. 連接類型,請在外部網路,選取您要將開關切換至 virtual 附加實體網路介面卡。In Connection type, in External network, select the physical network adapter to which you want to attach the virtual switch.

  5. 設定其他切換屬性,這樣他們在您的部署,是正確的然後按一下 [ [確定]Configure additional switch properties so that they are correct for your deployment, and then click OK.

  6. 重複上一個步驟建立第二個外部 virtual 切換。Create a second external virtual switch by repeating the previous steps. 連接外部第二個切換至不同的網路介面卡。Connect the second external switch to a different network adapter.

  7. 打開 HYPER-V 管理員。Open Hyper-V Manager. 電腦虛擬,以滑鼠右鍵按一下您想要設定,然後按一下 [VM設定In Virtual Machines, right-click the VM that you want to configure, and then click Settings. VM設定對話方塊。The VM Settings dialog box opens.

    重要

    請確定 VM 不開始使用。Ensure that the VM is not started. 如果這開始,執行關機設定 VM 之前。If it is started, perform shutdown before configuring the VM.

  8. 硬體,按一下 [網路介面卡In Hardware, click Network Adapter.

    網路介面卡

  9. 網路介面卡屬性,選取其中在前一個步驟,建立 virtual 切換,然後按套用]In Network Adapter properties, select one of the virtual switches that you created in previous steps, and then click Apply.

    ![選取 virtual 切換

  10. 硬體,按一下 [下一步,以展開加號(+)網路介面卡In Hardware, click to expand the plus sign (+) next to Network Adapter. 按一下進階功能Click Advanced Features.

    注意

    步驟 10 12 到示範如何使用的圖形使用者介面,可讓 NIC 小組。Steps 10 through 12 demonstrate how to enable NIC Teaming by using the graphical user interface. 您也可以讓 NIC 小組,執行下列 Windows PowerShell 命令:You can also enable NIC Teaming by running the following Windows PowerShell command: Set-VMNetworkAdapter -VMName <VMname> -AllowTeaming On

    網路介面卡進階功能

  11. 進階功能,向下捲動到NIC 小組In Advanced Features, scroll down to NIC Teaming.

    NIC 小組

  12. NIC 小組,按一下以選取可讓這個網路介面卡,才能來賓作業系統小組的成員In NIC Teaming, click to select Enable this network adapter to be part of a team in the guest operating system. 按一下[確定]Click OK.

    加入團隊的網路介面卡

  13. 若要將新增第二個網路介面卡,在 HYPER-V 管理員中,虛擬機器,相同 VM 中,以滑鼠右鍵按一下,然後按一下 [設定To add a second network adapter, in Hyper-V Manager, in Virtual Machines, right-click the same VM, and then click Settings. VM設定對話方塊。The VM Settings dialog box opens.

  14. 新增硬體,按一下 [網路介面卡,然後按一下 [新增In Add Hardware, click Network Adapter, and then click Add.

    新增的網路介面卡

  15. 網路介面卡屬性,選取 [在上一個步驟,建立第二個 virtual 切換,然後按套用]In Network Adapter properties, select the second virtual switch that you created in previous steps, and then click Apply.

    適用於 virtual 開關切換至

  16. 硬體,按一下 [下一步,以展開加號(+)網路介面卡In Hardware, click to expand the plus sign (+) next to Network Adapter. 按一下進階功能Click Advanced Features.

  17. 進階功能,向下捲動到NIC 小組In Advanced Features, scroll down to NIC Teaming.

  18. NIC 小組,按一下以選取可讓這個網路介面卡,才能來賓作業系統小組的成員In NIC Teaming, click to select Enable this network adapter to be part of a team in the guest operating system. 按一下[確定]Click OK.

您現在可以開始並登入您建立新 NIC 小組 VM。You can now start and log on to your VM to create your new NIC Team.

建立 NIC 團隊Create a NIC Team

若要建立新的 NIC 團隊您 VM 中,請遵循此主題中的指示進行建立新的 NIC 小組To create a new NIC Team in your VM, follow the instructions in the topic Create a New NIC Team.

也了See Also

建立新的 NIC 團隊主機電腦上 VMCreate a New NIC Team on a Host Computer or VM
NIC 小組NIC Teaming