Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Set-VBRDefaultGatewayConfiguration

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>]

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

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.

Return Type

VBRDefaultGatewayConfiguration[]

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

Related Commands

Get-VBRDefaultGatewayConfiguration

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation