How to Configure VLANs for VMware Cloud Hardware Plan
If you are a service provider and set up a VMware cloud hardware plan, you must first configure networking for tenants’ VM replicas. The service provider must allocate a range of VLANs to Veeam Cloud Connect. This can be done in the following steps:
- Get the ESXi host or VMware vCenter server in the service provider virtualization environment where the tenants’ VM replicas will be registered:
- For a ESXi host run Get-VBRServer with Type parameter: ESXi.
- For a VMware vCenter server run Get-VBRServer with Type parameter: VC.
- Save the result to the $server variable.
- Get the array of virtual switches located on ESXi host: run Get-VBRViVirtualSwitch and save the result to the $switcharray variable.
- Get the specific virtual switch:
- Use the properties of the $switcharray object to get the switches located on ESXi host.
- Select the needed switch.
- Save the result to the $switch variable.
- Allocate a range of VLANs to Veeam Cloud Connect:
- Run New-VBRCloudVLANConfiguration with the $server and $switch variables.
- Indicate the range for VLANs with internet connection and the range of VLANs without internet connection.
The total number of VLANs reserved for Veeam Cloud Connect Replication must be equal to or exceed the total number of all tenants' production networks.
$server = Get-VBRServer -Type ESXi -Name "ESXi Host"
$switcharray = Get-VBRViVirtualSwitch -Server $server
$switch = $switcharray
New-VBRCloudVLANConfiguration –Server $server -ViVirtualSwitch $switch –FirstVLANWithInternet 1 –LastVLANWithInternet 30 –FirstVLANWithoutInternet 31 –LastVLANWithoutInternet 60