Invoke the Powershell console
First get the list of nics
PS C:\Users\Administrator> Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress LinkSpeed
—- ——————– ——- —— ———- ———
Ethernet Intel(R) 82576 Gigabit Dual Port Net… 12 Up 1C-C1-DE-03-DD-A5 1 Gbps
Ethernet 2 Intel(R) 82576 Gigabit Dual Port N…#2 13 Up 1C-C1-DE-03-DD-A4 1 Gbps
Powershell is really easy and helpful 😀 just put “-” after New-NetLbfoTeam and fallow the Name parameters until LoadBalancing and choose the required ones 😀
PS C:\Users\Administrator> New-NetLbfoTeam -Name Generic -TeamMembers Ethernet,”Ethernet 2″ -TeamNicName Generic -TeamingMode SwitchIndependent -LoadBalancingAlgorithm Dynamic
Confirm
Are you sure you want to perform this action?
Creates Team:’Generic’ with TeamMembers:{‘Ethernet’, ‘Ethernet 2′}, TeamNicName:’Generic’,
TeamingMode:’SwitchIndependent’ and LoadBalancingAlgorithm:’Dynamic’.
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):
Name : Generic
Members : {Ethernet 2, Ethernet}
TeamNics : Generic
TeamingMode : SwitchIndependent
LoadBalancingAlgorithm : Dynamic
Status : Down
Get the our created teaming information
PS C:\Users\Administrator> Get-NetLbfoTeam Generic
Name : Generic
Members : {Ethernet 2, Ethernet}
TeamNics : Generic
TeamingMode : SwitchIndependent
LoadBalancingAlgorithm : Dynamic
Status : Up
In my case i created virtual switch with using Multiplexor Driver which name is vEthernet (ADandMNG) and need to send ip address , go
Invoke the Powershell console if you leave and execute such cmdlets
New-NetIPAddress -IPAddress 10.110.6.6 -InterfaceAlias “vEthernet (ADandMNG)” -DefaultGateway 10.110.1.1 -AddressFamily IPv4 -PrefixLength 16
Not : Myself instead of using -InterfaceAlias, use the ifindex which is -InterfaceIndex parameter which you can get it out from Get-NetAdapter
Need to set DNS
Set-DnsClientServerAddress -InterfaceAlias “vEthernet (ADandMNG)” -ServerAddresses 8.8.8.8,8.8.4.4
Thats it
VM
Make a Teaming and set ip address to teaming interface with Powershell on Windows 2012 R2
Feb 19
Posted by vmknowledge
Invoke the Powershell console
First get the list of nics
Powershell is really easy and helpful 😀 just put “-” after New-NetLbfoTeam and fallow the Name parameters until LoadBalancing and choose the required ones 😀
Get the our created teaming information
In my case i created virtual switch with using Multiplexor Driver which name is vEthernet (ADandMNG) and need to send ip address , go
Invoke the Powershell console if you leave and execute such cmdlets
Not : Myself instead of using -InterfaceAlias, use the ifindex which is -InterfaceIndex parameter which you can get it out from Get-NetAdapter
Need to set DNS
Thats it
VM
Posted in Teaming
1 Comment
Tags: 2012 R2 nic teaming, Dell Announced Hardware Support for Storage Spaces in Windows Server Subscribe Comments Contact Menu Home Atom Translate this page Microsoft® Translator Twitter Feed Recent Posts 2014 Winter PowerShe, Hey, How to Change Your IP Address Using PowerShell, how to configure nic teaming 2012 R2, How to server 2012 R2 nic teaming with powershell, how to set ip address with powershell, How to set the NIC IP Address using PowerShell in Server Core 2012, Make a Teaming with Powershell, New-NetLbfoTeam, Scripting Guy! Blog Learn about Windows PowerShell Search this blog Search all blogs Live Now on Server & Tools BlogsLive Now on Server & Tools Blogs Feed Making Big Data Work for Everyone Suc, Set DNS with PowerShell, team multiple interface on Windows 2012 R2, Windows 2012 R2 nic teaming