This is an archive version of the document. To get the most up-to-date information, see the current version.

Set-VBRDefaultGatewayConfiguration

In this article

    Short Description

    Modifies default gateways configuration.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    Set-VBRDefaultGatewayConfiguration -Configuration <VBRDefaultGatewayConfiguration> [-EnableRouting] [-PassThru] [<CommonParameters>]

    Related Commands

    Get-VBRDefaultGatewayConfiguration

    Return Type

    VBRDefaultGatewayConfiguration[]

    Detailed Description

    This cmdlet modifies settings of the default gateway. To modify settings, you need to enter the corresponding parameters with new values. The parameters that you omit will remain unchanged.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Configuration

    Specifies the default gateway configuration that you want to modify.

    Accepts VBRDefaultGatewayConfiguration object.

    True

    Named

    True (by Value
    FromPipeline, ValueFromPipeline
    ByPropertyName)

    False

    EnableRouting

    If indicated, the gateway will provide routing.

    False

    Named

    False

    False

    PassThru

    Indicates that the command returns the output object to the Windows PowerShell console.

    False

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example

    This example shows how to enable routing for a selected default gateway configuration.

    1. Run Get-VBRDefaultGatewayConfiguration to get all default gateway configurations. Save them to $c variable.
    2. Run Set-VBRDefaultGatewayConfiguration to enable routing.

    PS C:\PS> $c = Get-VBRDefaultGatewayConfiguration

    PS C:\PS> Set-VBRDefaultGatewayConfiguration -Configuration $c -EnableRouting