Enable-NlbClusterPortRule

Enable-NlbClusterPortRule

Enables a port rule on a Network Load Balancing (NLB) cluster or on a specific node in the cluster.

Sintaxis

Parameter Set: NonPipeline
Enable-NlbClusterPortRule [-Port] <UInt32> [-ClusterWide] [-HostName <String> ] [-InterfaceName <String> ] [-IP <IPAddress> ] [ <CommonParameters>]

Parameter Set: Pipeline
Enable-NlbClusterPortRule -InputObject <PortRule[]> [ <CommonParameters>]

Descripción detallada

The Enable-NlbClusterPortRule cmdlet enables a specific port rule on a Network Load Balancing (NLB) cluster or on a specific node in the NLB cluster.

Parámetros

-ClusterWide

Enables the given port rule on all cluster nodes. If this parameter is omitted, then the port rule is only enabled on one node.

Alias

Cluster,C

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-HostName<String>

Specifies the name of the cluster host against which this cmdlet is run. If this parameter is omitted or a value of . is entered, then the local cluster is assumed.

Alias

Host,HN,H

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-IP<IPAddress>

Specifies the IP address for the cluster port rule that will be enabled.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-InputObject<PortRule[]>

Specifies the cluster port rule to enable.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue, ByPropertyName)

¿Aceptar caracteres comodín?

false

-InterfaceName<String>

Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.

Alias

Interface,IN,I

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Port<UInt32>

Specifies a port number within the port rule that will be enabled. Los valores aceptables para este parámetro son los siguientes: 0 through 65535.

Alias

P

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿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.

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Salidas

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

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Ejemplos

EXAMPLE 1

This example enables port rule 80 on the local cluster.

PS C:\> Enable-NlbClusterPortRule -Port 80

EXAMPLE 2

This example enables all port rules on the local cluster.

PS C:\> Get-NlbClusterPortRule | Enable-NlbClusterPortRule

Temas relacionados

Add-NlbClusterPortRule

Disable-NlbClusterPortRule

Get-NlbClusterPortRule

Remove-NlbClusterPortRule

Set-NlbClusterPortRule