Set-VBRCloudVLANConfiguration

Short Description

Modifies pools of VLANs reserved for Veeam Cloud Connect.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides parameter sets that allow you to:

  • Quickly add/remove VLANs.

Set-VBRCloudVLANConfiguration -Configuration <VBRCloudVLANConfiguration> [-FirstVLANWithInternet <int32>] [-LastVLANWithInternet <int32>] [-FirstVLANWithoutInternet <int32>] [-LastVLANWithoutInternet <int32>] [-PassThru] [<CommonParameters>]

  • Modify pools of VLANs for VMware.

Set-VBRCloudVLANConfiguration -Configuration <VBRCloudVLANConfiguration> [-ViVirtualSwitch <VBRViVirtualSwitch>] [-FirstVLANWithInternet <int32>] [-LastVLANWithInternet <int32>] [-FirstVLANWithoutInternet <int32>] [-LastVLANWithoutInternet <int32>] [-PassThru]  [<CommonParameters>]

  • Modify pools of VLANs for Hyper-V.

Set-VBRCloudVLANConfiguration -Configuration <VBRCloudVLANConfiguration> [-HvNetworkInfo <VBRHvServerNetworkInfo>] [-FirstVLANWithInternet <int32>] [-LastVLANWithInternet <int32>] [-FirstVLANWithoutInternet <int32>] [-LastVLANWithoutInternet <int32>] [-PassThru]  [<CommonParameters>]

Detailed Description

This cmdlet modifies a selected VLAN pool.

Note

To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameters values with new values. The parameters that you omit will remain unchanged.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

Configuration

Specifies the VLAN configuration you want to modify.

Accepts the VBRCloudVLANConfiguration object. To get this object, run the Get-VBRCloudVLANConfiguration cmdlet.

True

Named

True (ByValue,
ByProperty
Name)

ViVirtualSwitch

Specifies the VMware virtual switch connected to the target host.

Accepts the VBRViVirtualSwitch object. To get this object, run the Get-VBRViVirtualSwitch cmdlet.

True

Named

False

HvNetworkInfo

Specifies the Hyper-V virtual switch connected to the target host.

Accepts the VBRHvServerNetworkInfo object. To get this object, run the Get-VBRHvServerNetworkInfo cmdlet.

True

Named

False

FirstVLANWithInternet

Specifies the first VLAN ID in the range of VLANs you plan to use for providing networks with internet access to VM replicas on the cloud host.

Int32

True

Named

False

LastVLANWithInternet

Specifies the last VLAN ID in the range of VLANs you plan to use for providing networks with internet access to VM replicas on the cloud host.

Int32

True

Named

False

FirstVLANWithoutInternet

Specifies the first VLAN ID in the range of VLANs you plan to use for providing networks without internet access to VM replicas on the cloud host.

Int32

True

Named

False

LastVLANWithoutInternet

Specifies the last VLAN ID in the range of VLANs you plan to use for providing networks without internet access to VM replicas on the cloud host.

Int32

True

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRCloudVLANConfiguration

Examples

Changing Number of VLANs in Pool of Reserved VLANs

This example shows how to change the number of VLANs in the pool of reserved VLANs.

$configs = Get-VBRCloudVLANConfiguration

Set-VBRCloudVLANConfiguration -Configuration $configs[0] -FirstVLANWithInternet 1 -LastVLANWithInternet 10 -FirstVLANWithoutInternet 11 -LastVLANWithoutInternet 20

Perform the following steps:

  1. Run the Get-VBRCloudVLANConfiguration cmdlet. Save the array of pools to the $configs variable.

Mind the ordinal number of the necessary VLAN pool (in our example, it is the first VLAN pool in the array).

  1. Run the Set-VBRCloudVLANConfiguration cmdlet. Specify the following settings:
  • Set the $configs variable as the Configuration parameter value.
  • Specify the FirstVLANWithInternet and the LastVLANWithInternet parameter values.
  • Specify the FirstVLANWithoutInternet and the LastVLANWithoutInternet parameter values.

Related Commands