Set-NetLbfoTeam

Set-NetLbfoTeam

Sets parameters on the specified NIC team.

Sintaxis

Parameter Set: ByName
Set-NetLbfoTeam [[-Name] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-LoadBalancingAlgorithm <LBAlgos> ] [-PassThru] [-TeamingMode <TeamingModes> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByMemberOfTheTeam
Set-NetLbfoTeam [-AsJob] [-CimSession <CimSession[]> ] [-LoadBalancingAlgorithm <LBAlgos> ] [-MemberOfTheTeam <CimInstance> ] [-PassThru] [-TeamingMode <TeamingModes> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: ByTeamNicForTheTeam
Set-NetLbfoTeam [-AsJob] [-CimSession <CimSession[]> ] [-LoadBalancingAlgorithm <LBAlgos> ] [-PassThru] [-TeamingMode <TeamingModes> ] [-TeamNicForTheTeam <CimInstance> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: InputObject (cdxml)
Set-NetLbfoTeam -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-LoadBalancingAlgorithm <LBAlgos> ] [-PassThru] [-TeamingMode <TeamingModes> ] [-ThrottleLimit <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Descripción detallada

The Set-NetLbfoTeam cmdlet sets the TeamingMode or LoadBalancingAlgorithm parameters on the specified NIC team.

You need administrator privileges to use Set-NetLbfoTeam.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<CimInstance[]>

Specifies the object which contains the NIC team parameters to set.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-LoadBalancingAlgorithm<LBAlgos>

Specifies the load balancing algorithm the NIC team uses to distribute network traffic between the interfaces. You can specify one of the following load balancing algorithms:

-- Dynamic:  Uses the source and destination TCP ports and the IP addresses to create a hash for outbound traffic.  Moves outbound streams from team member to team member as needed to balance team member utilization.  When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, inbound traffic is routed to a particular team member. 

-- TransportPorts: Uses the source and destination TCP ports and the IP addresses to create a hash, and then assigns the packets that have the matching hash value to one of the available interfaces. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value all inbound traffic arrives on the primary team member.

-- IPAddresses: Uses the source and destination IP addresses to create a hash, and then assigns the packets that have the matching hash value to one of the available interfaces. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, all inbound traffic arrives on the primary team member.

-- MacAddresses: Uses the source and destination MAC addresses to create a hash and then assigns the packets that have the matching hash value to one of the available interfaces. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, all inbound traffic arrives on the primary team member.

-- HyperVPort: Distributes network traffic based on the source virtual machine Hyper-V switch port identifier. When you specify this algorithm with the TeamingMode parameter and the SwitchIndependent value, inbound traffic is routed to the same team member as the switch port’s outgoing traffic. 

Alias

lba

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-MemberOfTheTeam<CimInstance>

Specifies the network adapter name for which to modify the parameters.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-Name<String[]>

Specifies the name of the NIC team to modify.

Alias

ninguno

¿Requerido?

false

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-PassThru

Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-TeamNicForTheTeam<CimInstance>

Specifies the team interface whose associated NIC team is to be modified.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-TeamingMode<TeamingModes>

Specifies the mode of the NIC teaming. You can specify one of the following teaming modes:

-- LACP: Requires configuration on both the switch and the host to identify which links form the team. Uses the Link Aggregation Control Protocol (LACP) to identify links that are connected between the host and a given switch.

-- Static: Requires configuration on both the switch and the host to identify which links form the team.

-- SwitchIndependent: Specifies that a network switch configuration is not needed for the NIC team. Because the network switch is not configured to know about the NIC teaming, the team members can be connected to different switches.

Alias

tm

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Confirm

Solicita confirmación antes de ejecutar el cmdlet.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

¿Requerido?

false

¿Posición?

named

Valor predeterminado

falso

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None

    This cmdlet takes no input objects.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • MSFT_NetLbfoTeam

    By default, this cmdlet produces no output. If the PassThru parameter is specified, the cmdlet returns the updated MSFT_NetLbfoTeam object.

Ejemplos

Example 1: Set the teaming mode

This command sets the teaming mode of the team named Team1 to LACP.

PS C:\> Set-NetLbfoTeam -Name Team1 –TeamingMode LACP

Example 2: Set the load balancing algorithm

This command sets the load balancing algorithm of the team named Team1 to HyperVPorts.

PS C:\> Set-NetLbfoTeam -Name Team1 –LoadBalancingAlgorithm HyperVPorts

Example 3: Set the teaming mode and load balancing algorithm

This command sets the teaming mode and load balancing algorithm of the team named Team1 at the same time. The teaming mode is set to LACP and the load balancing algorithm is set to HyperVPorts.

PS C:\> Set-NetLbfoTeam -Name Team1 –TeamingMode LACP –LoadBalancingAlgorithm HyperVPorts

Temas relacionados

New-NetLbfoTeam

Get-NetLbfoTeam

Rename-NetLbfoTeam

Remove-NetLbfoTeam