Set-VBRCloudVLANConfiguration
Short Description
Modifies pools of VLANs reserved for Veeam Cloud Connect.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
AllParameterSets (Default)Set-VBRCloudVLANConfiguration -Configuration <VBRCloudVLANConfiguration> [-FirstVLANWithInternet <Int32>]
[-LastVLANWithInternet <Int32>] [-FirstVLANWithoutInternet <Int32>] [-LastVLANWithoutInternet <Int32>]
[-PassThru] [<CommonParameters>]
-
ViSet-VBRCloudVLANConfiguration -Configuration <VBRCloudVLANConfiguration>
[-ViVirtualSwitch <VBRViVirtualSwitch>] [-FirstVLANWithInternet <Int32>] [-LastVLANWithInternet <Int32>]
[-FirstVLANWithoutInternet <Int32>] [-LastVLANWithoutInternet <Int32>] [-PassThru] [<CommonParameters>]
-
HvSet-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 parameter 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 |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
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. |
|
False |
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. |
|
False |
Named |
False |
|
HvNetworkInfo |
Specifies the Hyper-V virtual switch connected to the target host.
Accepts the |
False |
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. |
|
False |
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. |
|
False |
Named |
False |
|
PassThru |
Defines that the command returns the output object to the Windows PowerShell console. |
|
False |
Named |
False |
|
ViVirtualSwitch |
Specifies the VMware virtual switch connected to the target host.
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
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:
- Run the
Get-VBRCloudVLANConfigurationReturns reserved VLAN ranges. cmdlet. Save the array of pools to the$configsvariable.Mind the ordinal number of the necessary VLAN pool (in our example, it is the first VLAN pool in the array).
- Run the
Set-VBRCloudVLANConfigurationcmdlet. Specify the following settings:- Set the
$configsvariable as theConfigurationparameter value. - Specify the
FirstVLANWithInternetand theLastVLANWithInternetparameter values. - Specify the
FirstVLANWithoutInternetand theLastVLANWithoutInternetparameter values.
- Set the
Related Commands
Get-VBRCloudVLANConfigurationReturns reserved VLAN ranges.Get-VBRViVirtualSwitchReturns VMware virtual switches.Get-VBRHvServerNetworkInfoReturns virtual networks for a Hyper-V host.