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

New-VBRViReplicaReIpRule

In this article

    Short Description

    Creates a new VMware replica re-IP rule.

    Applies to

    Platform: VMware

    Product Edition: Standard, Enterprise, Enterprise Plus

    Syntax

    New-VBRViReplicaReIpRule [-SourceIp <String>] [-SourceMask <String>] [-TargetIp <String>] [-TargetMask <String>] -TargetGateway <String> [-DNS <String[]>] [-WINS <String[]>] [-Description <String>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    None

    Return Type

    VBRViReplicaReIpRule

    Detailed Description

    This cmdlet creates a VBRViReplicaReIpRule object containing a list of rules for different IP addressing scheme. This object is then further used for creating or modifying replication jobs.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Source
    Ip

    Specifies the IP address or the IP addressing scheme of the network in which the source VM is located. You can use the asterisk character (*) to specify a range of IP addresses.

    Accepts string type.

    Default: 172.16.*.*.

    False

    Named

    False

    False

    Source
    Mask

    Specifies the mask of the network in which the source VM is located. You can use the asterisk character (*) to specify a range of IP addresses.

    Accepts string type.

    Default: 255.255.0.0.

    False

    Named

    False

    False

    Target
    Ip

    Specifies the IP address or the IP addressing scheme of the network in which the replica VM will be located. You can use the asterisk character (*) to specify a range of IP addresses.

    Accepts string type.

    Default: 172.17.*.*.

    False

    Named

    False

    False

    Target
    Mask

    Specifies the mask of the network in which the replica VM will be located. You can use the asterisk character (*) to specify a range of IP addresses.

    Accepts string type.

    Default: 255.255.0.0.

    False

    Named

    False

    False

    TargetGateway

    Specifies the gateway address of the network in which the replica VM will be located.

    Accepts string type.

    True

    Named

    False

    False

    DNS

    Specifies the DNS server address.

    Accepts string type.

    False

    Named

    False

    False

    WINS

    Specifies the WINS server address.

    Accepts string type.

    False

    Named

    False

    False

    Description

    Specifies the description of the re-IP rule.

    If not set, Veeam Backup & Replication will enter date and time of creation by default.

    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 1

    This command creates a new re-IP rule. The created object is saved into the '$reiprule' variable.

    PS C:\PS> $reiprule = New-VBRViReplicaReIpRule -SourceIp 172.16.*.* -SourceMask 255.255.0.0 -TargetIp 172.17.*.* -TargetMask 255.255.0.0 -TargetGateway 172.17.0.1

    Example 2

    This example shows how to set a re-IP rule to an existing replica job.

    • The re-IP rule is assigned to the '$reiprule' variable that was created in the 'Example 1'.
    • To set the re-IP rule, the replication job is edited with Set-VBRViReplicaJob. The job is obtained with Get-VBRJob and assigned to the '$replicajob' variable beforehand.

    PS C:\PS> Set-VBRViReplicaJob -Job $replicajob -EnableReIp -ReIpRule $reiprule