---
title: "Criação de VLANs (EN)"
description: "Find out how to create VLANs in your vRack"
url: https://docs.ovhcloud.com/pt/guides/hosted-private-cloud/powered-by-vmware/create-vlan
lang: pt
lastUpdated: 2022-02-07
---
# Criação de VLANs (EN)

## Objective

OVHcloud sets up a base of 11 VLANs on your vRack.

**This guide explains how to create additional VLANs.**

## Requirements

- Being an administrative contact of your [Hosted Private Cloud infrastructure](https://www.ovhcloud.com/pt/enterprise/products/hosted-private-cloud/) to receive login credentials
- A user account with access to vSphere as well as the specific rights for Networking (created in the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>)

## Instructions

In the Hosted Private Cloud solutions, VLANs can be used to isolate private communications between different OVHcloud services that are vRack-compatible (Dedicated Server, Public Cloud instance, etc.).

First, go to your vSphere client's `Networking
` view. Deploy the **vrack**
 folder then right-click on the **dVS**
 ending in _-vrack_
 and finally click on `New Distributed Port Group
`.
![New Distributed Port Group](/images/hosted-private-cloud/powered-by-vmware/create-vlan/08network1.png)
The next step is to name your **Port Group**:

![nominate portgroup](/images/hosted-private-cloud/powered-by-vmware/create-vlan/09network2.png)
Then configure the settings recommended by OVHcloud:

- **Port binding**: Static (reserving and assigning the port to a virtual machine)
- **Port allocation**: Elastic (allows the number of ports to be hot-wired)
- **Number of ports**: 24
- **VLAN type**: VLAN (the others are [PVLAN](https://kb.vmware.com/s/article/1010691) and Trunk)
- **VLAN ID**: 21 (knowing that the ID can be configured from 1 to 4096)
- Check the option _Customize default policies configuration_.

![portgroup configuration](/images/hosted-private-cloud/powered-by-vmware/create-vlan/10network3.png)
You have 3 security settings that can be activated according to your needs:

- _Promiscuous mode_: eliminates any filtering that the VM adapter can perform so that the guest operating system receives all observed traffic on the network.
- _MAC address changes_: when set to **Accept**, ESXi will accept requests to change the effective MAC address to an address other than the initial MAC address.
- _Forged transmits_: affects traffic transmitted from a virtual machine. When set to **Accept**, ESXi does not compare the source and effective MAC addresses.

:::info
The most frequent use of these 3 parameters is the CARP, especially used on **pfSense**.

:::

![security settings](/images/hosted-private-cloud/powered-by-vmware/create-vlan/11network4.png)
Leave [Traffic shaping](https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.networking.doc/GUID-CF01515C-8525-4424-92B5-A982489BACE2.html) disabled.

![traffic shaping](/images/hosted-private-cloud/powered-by-vmware/create-vlan/12network5.png)
In terms of load balancing, select _Route Based on IP hash_, which is the best method for redundancy and load balancing.

:::warning
Be careful when configuring the failover order: It is necessary to set the `lag1` uplink to _Active_ (connection between the virtual network and the physical network), otherwise no communication between the hosts will be possible.

:::

![load balancing](/images/hosted-private-cloud/powered-by-vmware/create-vlan/13network6.png)
The `NetFlow` is disabled (traffic flow activity report).

![netflow](/images/hosted-private-cloud/powered-by-vmware/create-vlan/14network7.png)
Leave the `Block All Ports` value at "No".

![portgroup finalisation](/images/hosted-private-cloud/powered-by-vmware/create-vlan/15network9.png)
You will then be presented with a summary of the changes. Click `Finish
` to confirm the creation.
![portgroup finalisation](/images/hosted-private-cloud/powered-by-vmware/create-vlan/16network10.png)
Here we can see that **VLAN21** is available and functional.

![vlan created](/images/hosted-private-cloud/powered-by-vmware/create-vlan/17network11.png)
## Go further

Join our [community of users](https://community.ovhcloud.com/).
