New-VBRViNetworkMappingRule
Short Description
Defines network mapping rules of isolated networks.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRViNetworkMappingRule -Server <CHost> -ProductionNetwork <VBRViNetworkInfo> -IsolatedNetworkName <String> [-VLANID <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBRViVirtualLabNetworkMappingRule object that defines network mapping rules of isolated networks. Veeam Backup & Replication will map isolated networks to production networks that are specified in this rule.
You can use this object to specify network mapping rules in network settings of isolated networks.
Run the New-VBRViVirtualLabNetworkOptionsDefines network settings of isolated networks. cmdlet to specify network settings of isolated networks.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
IsolatedNetworkName |
Specifies a name of an isolated network. The cmdlet will create an isolated network with this name. |
|
True |
Named |
False |
|
ProductionNetwork |
Specifies a production network with original VMs. The cmdlet will map VMs from this network to VMs from the isolated network.
Accepts the |
True |
Named |
False |
|
|
Server |
Specifies an ESXi host. The cmdlet will define a network mapping rule for the virtual lab that is added to this host.
Accepts the |
|
True |
Named |
False |
|
VLANID |
Specifies an ID of an isolated network. The cmdlet will create the isolated network with the specified ID. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRViVirtualLabNetworkMappingRule object that defines network mapping rules of isolated networks.
Examples
Defining Isolated Mapping Rules
This example shows how to define network mapping rules of isolated networks. The cmdlet output will show details on the following network settings: ProductionNetwork, IsolatedNetworkName and VLANID.
|
$server = Get-VBRServer -Name "srv01.tech.local" $network = Get-VBRViServerNetworkInfo -Server $server New-VBRViNetworkMappingRule -Server $server -ProductionNetwork $network[3] -IsolatedNetworkName "Sandbox01 Private VM Network" -VLANID 5 ProductionNetwork IsolatedNetworkName VLANID ----------------- ------------------- ------ Veeam.Backup.PowerShell.Infos.VBRViN... Sandbox01 Private VM Network 5 |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host. cmdlet. Set the$servervariable as theServerparameter value. Save the result to the$networkvariable. - Run the
New-VBRViNetworkMappingRulecmdlet. Specify the following settings:- Set the
$servervariable as theServerparameter value. - Set the
$network[3]variable as theProductionNetworkparameter value.The
Get-VBRViServerNetworkInfocmdlet will return an array of production networks. Mind the ordinal number of the necessary production network (An array starts with 0. In our example, it is the fourth production network in the array). - Specify the
IsolatedNetworkNameparameter value. - Specify the
VLANIDparameter value.
- Set the
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host.