跳至主要内容

Windows 10 无法使用 Powershell 创建 NIC Team

主板上有两块网卡,一个是 Intel 的,另一个是 Killer 的。为了充分利用,将两个千兆口都连在了 Hub 上。 在网上看到 Windows 其实可以组建 `NIC Team`,将多块网卡绑定成一个 team,内部通过负载均衡算法来控制网卡的使用。这样整个操作系统的应用程序只通过 team 来发送和接收数据,具体分配到哪一块 NIC 则是由 Windows 来管理的。 这么美好的东西怎么可以错过呢,MSDN 告诉我可以[使用 Cmdlets 来创建 NIC Team](https://technet.microsoft.com/en-us/library/jj130849(v=wps.630).aspx),于是我激动的开始尝试使用 powershell 来执行一行行命令: PS C:\WINDOWS\system32> Get-NetAdapter -Name Nic* Name InterfaceDescription ifIndex Status ---- -------------------- ------- ------ NicIntel Intel(R) Ethernet Connection I217-V 16 Up NicKiller Killer e2200 PCI-E Gigabit Ethernet ... 11 Up PS C:\WINDOWS\system32> New-NetLbfoTeam -Name LinkNics -TeamingMode SwitchIndependent -TeamMembers NicIntel,NicKiller New-NetLbfoTeam : 参数错误。 所在位置 行:1 字符: 2 + New-NetLbfoTeam -Name LinkNics -TeamingMode SwitchIndependent -TeamM ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (MSFT_NetLbfoTeam:root/StandardCimv2/MSFT_NetLbfoTeam) [New-NetLbfoTeam ],CimException + FullyQualifiedErrorId : Windows System Error 87,New-NetLbfoTeam 一开始由于我的系统是中文,NIC 的名字都是这样的—— “以太网”、“以太网 2”。我怀疑是由于文本编码导致的问题,后来参考了[另一篇文章](https://blogs.technet.microsoft.com/heyscriptingguy/2014/01/14/renaming-network-adapters-by-using-powershell/)使用另一个 Cmdlet 修改了网卡的名字,一个叫做 `NicIntel`,另一个叫做 `NicKiller`。 上网搜了很久,没有找到任何解决方案。最后看到了这篇帖子 [『Teaming not possible in Win10pro Insider Builds 10565 and 10576 - error 87』](https://social.technet.microsoft.com/Forums/en-US/936e8936-810c-434f-9e06-525daafa50b8/teaming-not-possible-in-win10pro-insider-builds-10565-and-10576-error-87?forum=WindowsInsiderPreview) 确定了这是 Windows 自己的问题。 又被微软带沟里了!

评论