--- title: "New-VBRADForestReIpIPv6Rule" description: "This cmdlet creates the VBRADForestReIpIPv6Rule object. This object contains settings for re-assigning IPv6 addresses to domain controller VMs during an entire Microsoft Active Directory forest recovery." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/new-vbradforestreipipv6rule.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Microsoft Active Directory Forest Recovery > New-VBRADForestReIpIPv6Rule" dateModified: "2026-11-06" --- # New-VBRADForestReIpIPv6Rule ## Short Description Creates an IPv6 re-IP rule for an entire Microsoft Active Directory forest recovery. **Platform**: VMware, Hyper-V **Product Edition**: Veeam Universal License ## Syntax ``` New-VBRADForestReIpIPv6Rule -SourceIPAddress -SourcePrefix -TargetIPAddress -TargetPrefix [-TargetGateway ] [-PreferredDNSServer ] [-AlternateDNSServer ] [-Description ] [-VlanTag ] [] ``` ## Detailed Description This cmdlet creates the [`VBRADForestReIpIPv6Rule`](vbradforestreipipv6rule.md) object. This object contains settings for re-assigning IPv6 addresses to domain controller VMs during an entire Microsoft Active Directory forest recovery. Use re-IP rules when the domain controllers must be recovered to a network with a different IP addressing scheme. Use this object with the [`Start-VBRADForestRestore`](start-vbradforestrestore.md) cmdlet. To create a re-IP rule for IPv4 addresses, run the [`New-VBRADForestReIpRule`](new-vbradforestreiprule.md) cmdlet. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AlternateDNSServer

Specifies the IPv6 address of the alternate DNS server to assign to the recovered domain controller VM.

String

False

Named

False

Description

Specifies the description of the re-IP rule.

String

False

Named

False

PreferredDNSServer

Specifies the IPv6 address of the preferred DNS server to assign to the recovered domain controller VM.

String

False

Named

False

SourceIPAddress

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

String

True

Named

False

SourcePrefix

Specifies the prefix length of the network in which the source domain controller VM is located. Permitted values: 1 to 128.

Int32

True

Named

False

TargetGateway

Specifies the IPv6 address of the default gateway of the network to which the domain controller VM will be recovered.

String

False

Named

False

TargetIPAddress

Specifies the IPv6 address or the IPv6 addressing scheme of the network to which the domain controller VM will be recovered. You can use the asterisk character (*) to specify a range of IP addresses.

String

True

Named

False

TargetPrefix

Specifies the prefix length of the network to which the domain controller VM will be recovered. Permitted values: 1 to 128.

Int32

True

Named

False

VlanTag

Specifies the VLAN ID of the network to which the domain controller VM will be recovered. Permitted values: 1 to 4094.

Note: This parameter applies only when you recover domain controllers to a Microsoft Hyper-V host. For VMware vSphere, the VLAN is defined by the target network.

Int32

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object The cmdlet returns the [`VBRADForestReIpIPv6Rule`](vbradforestreipipv6rule.md) object that contains the IPv6 re-IP rule settings for Microsoft Active Directory forest recovery. ## Examples ::: example ### Example 1. Creating IPv6 Re-IP Rule This command creates an IPv6 re-IP rule with source and target IPv6 addressing schemes and a target gateway. Save it to the `$reIpRule` variable to use it when you run the [`Start-VBRADForestRestore`](start-vbradforestrestore.md) cmdlet. ``` $reIpRule = New-VBRADForestReIpIPv6Rule -SourceIPAddress "2001:0DB8:ABCD:0012:0000:0000:0000:*" -SourcePrefix 64 -TargetIPAddress "2001:0DB8:ABCD:0034:0000:0000:0000:*" -TargetPrefix 64 -TargetGateway "2001:0DB8:ABCD:0034:0000:0000:0000:0001" ``` ::: ::: example ### Example 2. Creating IPv6 Re-IP Rule with DNS Servers This command creates an IPv6 re-IP rule that also reassigns the preferred and alternate DNS server addresses. Save it to the `$reIpRule` variable to use it when you run the [`Start-VBRADForestRestore`](start-vbradforestrestore.md) cmdlet. ``` $reIpRule = New-VBRADForestReIpIPv6Rule -SourceIPAddress "2001:0DB8:ABCD:0012:0000:0000:0000:*" -SourcePrefix 64 -TargetIPAddress "2001:0DB8:ABCD:0034:0000:0000:0000:*" -TargetPrefix 64 -TargetGateway "2001:0DB8:ABCD:0034:0000:0000:0000:0001" -PreferredDNSServer "2001:0DB8:ABCD:0034:0000:0000:0000:0002" -AlternateDNSServer "2001:0DB8:ABCD:0034:0000:0000:0000:0003" -Description "Production to DR network" ``` ::: ::: example ### Example 3. Creating IPv6 Re-IP Rule with VLAN ID This command creates an IPv6 re-IP rule that assigns VLAN ID 120 to the recovered domain controller VM on the target network. Save it to the `$reIpRule` variable to use it when you run the [`Start-VBRADForestRestore`](start-vbradforestrestore.md) cmdlet. ``` $reIpRule = New-VBRADForestReIpIPv6Rule -SourceIPAddress "2001:0DB8:ABCD:0012:0000:0000:0000:*" -SourcePrefix 64 -TargetIPAddress "2001:0DB8:ABCD:0034:0000:0000:0000:*" -TargetPrefix 64 -TargetGateway "2001:0DB8:ABCD:0034:0000:0000:0000:0001" -VlanTag 120 ``` ::: ## Related Commands - [`New-VBRADForestReIpRule`](new-vbradforestreiprule.md) - [`Start-VBRADForestRestore`](start-vbradforestrestore.md)