NIC 小組與區域網路 (Vlan)NIC Teaming and Virtual Local Area Networks (VLANs)

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

本主題提供使用的區域網路 (Vlan) 小組的 NIC Vm 和主機電腦上的相關資訊,並包含下列各節。This topic provides information about using NIC Teaming with virtual Local Area Networks (VLANs) on both host computers and VMs, and includes the following sections.

小組介面和 VlanTeam interfaces and VLANs

當您使用 NIC 小組時,建立多個小組介面的唯一的原因是邏輯進行除法運算輸入的流量的 virtual 區域網路 (VLAN)。When you use NIC Teaming, the only reason to create multiple team interfaces is to logically divide inbound traffic by virtual LAN (VLAN). 建立多個小組介面,可讓同時連接到不同的 Vlan 主機。Creating multiple team interfaces allows a host to be connected to different VLANs at the same time.

當您使用 NIC 小組的 Vlan 時,請確定您設定您的環境使用下列指導方針。When you use NIC Teaming with VLANs, ensure that you configure your environment using the following guidelines.

  1. 您可以 NIC 小組之前,設定連接到使用(混合式)主幹模式,小組主機的實體切換連接埠。Before you enable NIC Teaming, configure the physical switch ports connected to the teaming host to use trunk (promiscuous) mode. 實體切換應該不需要將修改流量篩選傳遞所有的資料傳輸至主機。The physical switch should pass all traffic to the host for filtering without modifying the traffic.

  2. 請勿設定 VLAN 篩選 Nic 使用而進階屬性設定。Do not configure VLAN filters on the NICs by using the NIC advanced properties settings. 讓 NIC 小組軟體或 HYPER-V Virtual 開關切換至(如果有的話)執行 VLAN 篩選。Let the NIC Teaming software or the Hyper-V Virtual Switch (if present) perform VLAN filtering.

使用 Vlan NIC 小組,在 VM 中Using VLANs with NIC Teaming in a VM

當小組已連接到 HYPER-V Virtual 切換時,必須完成所有 VLAN 責任分隔 HYPER-V Virtual 切換中,而不是在 NIC 小組。When a team is connected to a Hyper-V Virtual Switch, all VLAN segregation must be done in the Hyper-V Virtual Switch rather than in NIC Teaming.

您可以使用已 NIC 團隊 VM 中的 Vlan 規劃時使用下列指導方針。You can use the following guidelines when planning to use VLANs in a VM that is configured with a NIC Team.

  • 多個 Vlan 支援 VM 中的建議的方式是使用多個連接埠 HYPER-V Virtual 開關切換至上設定 VM 及關聯 VLAN 每個連接埠。The preferred method of supporting multiple VLANs in a VM is to configure the VM with multiple ports on the Hyper-V Virtual Switch and associate each port with a VLAN. 從未小組這些連接埠,在 VM 中的,因為這會造成網路通訊的問題。Never team these ports in the VM because doing so will cause network communication problems.

  • 如果 VM 有多個 SR-IOV Virtual 功能 (VFs),請確保其相同的 VLAN 上之前 VM 中的聯合它們。If the VM has multiple SR-IOV Virtual Functions (VFs), ensure that they are on the same VLAN before teaming them in the VM. 設定會在不同的 Vlan 上不同 VFs 可以輕鬆地,如此一來,會導致網路通訊的問題。It's easily possible to configure the different VFs to be on different VLANs and doing so will cause network communication problems.

管理網路介面和 VlanManaging network interfaces and VLANs

如果您有多個 VLAN 公開來賓作業系統,請考慮重新命名澄清的 VLAN Ethernet 介面已指派給介面。If you must have more than one VLAN exposed into a guest operating system, consider renaming the Ethernet interfaces to clarify which VLAN is assigned to the interface. 例如如果乙太網路介面是相關聯的 VLAN 12 和乙太網路 2介面的 VLAN 48 相關,請重新命名 Ethernet 介面到EthernetVLAN12和其他,EthernetVLAN48For example, if the Ethernet interface is associated with VLAN 12 and the Ethernet 2 interface is associated with VLAN 48, rename the interface Ethernet to EthernetVLAN12 and the other to EthernetVLAN48. 您可以使用 Windows PowerShell 命令重新命名介面重新命名-NetAdapter或 [,執行下列程序。You can rename interfaces by using the Windows PowerShell command Rename-NetAdapter or by performing the following procedure.

若要重新命名網路介面卡To rename a network adapter

  1. 在伺服器管理員中,在屬性窗格伺服器的網路介面卡,您想要重新命名,請按一下連結以右邊的網路介面卡名稱。In Server Manager, in the Properties pane for the server whose network adapters you want to rename, click the link to the right of the network adapter name. 例如,如果您的網路介面卡名為乙太網路,按一下 [IP 位址或其他發生藍色文字右邊的乙太網路的名稱。For example, if the network adapter is named Ethernet, click either the IP address or other blue text to the right of the name Ethernet. 裝置管理員資料夾開啟。The Network Connections folder opens.

  2. 以滑鼠右鍵按一下您想要重新命名,請選取 [網路介面卡重新命名Right-click the network adapter that you want to rename, and select Rename.

  3. 輸入新的網路介面卡的名稱,然後按 ENTER 鍵。Type the new name for the network adapter and press ENTER.

也了See Also

NIC 小組 MAC 位址使用與管理NIC Teaming MAC Address Use and Management
NIC 小組NIC Teaming