Set-VBRCloudVLANConfiguration

In this article

    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 3 parameter sets.

    • For quick adding/removing VLANs:

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

    • For VMware:

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

    • For Hyper-V:

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

    Detailed Description

    This cmdlet modifies a selected VLANs pool.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Configuration

    Specifies the VLAN configuration you want to modify.

    Accepts VBRCloudVLANConfiguration type.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    False

    ViVirtualSwitch

    Specifies the VMware virtual switch connected to the target host.

    Accepts VBRViVirtualSwitch type.

    True

    Named

    False

    False

    HvNetworkInfo

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

    Accepts VBRHvServerNetworkInfo type.

    True

    Named

    False

    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.

    True

    Named

    False

    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.

    True

    Named

    False

    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.

    True

    Named

    False

    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.

    True

    Named

    False

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Return Type

    VBRCloudVLANConfiguration

    Example

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

    1. Run Get-VBRCloudVLANConfiguration to get the VLAN pools. Save the array of pools to the $configs variable.
    2. Run Set-VBRCloudVLANConfiguration. Use the first VLAN pool in the array saved to the $configs variable. Specify new ranges of VLANs.

    $configs = Get-VBRCloudVLANConfiguration

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

    Related Commands

    Get-VBRCloudVLANConfiguration

    Get-VBRViVirtualSwitch

    Get-VBRHvServerNetworkInfo

    I want to report a typo

    There is a misspelling right here:

     

    I want to let the Veeam Documentation Team know about that.