Set-VBRViNetworkMappingRule
Short Description
Modifies network mapping rules of isolated networks.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRViNetworkMappingRule -NetworkMapping <VBRViVirtualLabNetworkMappingRule>
[-ProductionNetwork <VBRViNetworkInfo>] [-IsolatedNetworkName <String>] [-VLANID <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies network mapping rules of isolated networks.
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
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.
|
String
|
False
|
Named
|
False
|
|
NetworkMapping
|
Specifies the network mapping rule of isolated networks. The cmdlet will modify settings of this network mapping rule.
Accepts the VBRViVirtualLabNetworkMappingRule object. To create this object, run the New-VBRViNetworkMappingRuleDefines network mapping rules of isolated networks. cmdlet.
|
VBRViVirtualLabNetworkMappingRule
|
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 VBRViNetworkInfo object. To get this object, run the Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host. cmdlet.
|
VBRViNetworkInfo
|
False
|
Named
|
False
|
|
VLANID
|
Specifies an ID of an isolated network. The cmdlet will create the isolated network with the specified ID.
|
Int32
|
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
Example 1. Modifying Mapping to Production Network
|
This example shows how to modify mapping rule and to map an isolated network to another production network.
|
$server = Get-VBRServer -Name "srv01.tech.local"
$production = Get-VBRViServerNetworkInfo -Server $server
$isolated = New-VBRViNetworkMappingRule -ProductionNetwork $production[3] -IsolatedNetworkName "Sandbox01 Private VM Network" -VLANID 5
Set-VBRViNetworkMappingRule -NetworkMapping $isolated -ProductionNetwork $production[7] |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
- Run the
Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host. cmdlet. Set the $server variable as the Server parameter value. Save the result to the $production variable.
- Run the
New-VBRViNetworkMappingRuleDefines network mapping rules of isolated networks. cmdlet. Specify the ProductionNetwork, IsolatedNetworkName and VLANID parameter values. Save the result to the $isolated variable.
- Run the
Set-VBRViNetworkMappingRule cmdlet. Set the $isolated variable as the NetworkMapping parameter value. Set the $production[7] variable as the ProductionNetwork parameter value.
The Get-VBRViServerNetworkInfo cmdlet 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 sixth production network in the array).
|
Example 2. Modifying Isolated Network Name and ID
|
This example shows how to modify a name and ID of an isolated network.
|
$server = Get-VBRServer -Name "srv01.tech.local"
$production = Get-VBRViServerNetworkInfo -Server $server
$isolated = New-VBRViNetworkMappingRule -ProductionNetwork $production[3] -IsolatedNetworkName "Sandbox01 Private VM Network" -VLANID 5
Set-VBRViNetworkMappingRule -NetworkMapping $isolated -IsolatedNetworkName "Sandbox07 Private VM Network" -VLANID 7 |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
- Run the
Get-VBRViServerNetworkInfoReturns virtual networks for a VMware host. cmdlet. Set the $server variable as the Server parameter value. Save the result to the $production variable.
- Run the
New-VBRViNetworkMappingRuleDefines network mapping rules of isolated networks. cmdlet. Specify the ProductionNetwork, IsolatedNetworkName and VLANID parameter values. Save the result to the $isolated variable.
- Run the
Set-VBRViNetworkMappingRule cmdlet. Specify the following settings:
- Set the
$isolated variable as the NetworkMapping parameter value.
- Specify the
IsolatedNetworkName parameter value.
- Specify the
VLANID parameter value.
|
Related Commands