Create a VLAN-based Cluster in VCF
One of my customers asked a question about why a VLAN-based Transport Zone was not added to a cluster when it was created through the SDDC Manager. After some looking into this, and with the help of our Engineering organization, we found out why that is.
In short, it needs to be defined as part of the deployment process, in the “Distributed Switch” section. It is not automatically added to a new cluster.
So a short blog about how to create a cluster that is enabled to use VLAN-based networks. I am using the GUI to do this, but it is also possible to do this through the API.
After commissioning the right hosts (this is documented here: https://my-sddc.net/creating-a-vcf-lab-on-top-of-vcd-part-2-workload-domain/), we start the deployment of a new cluster (in the right WLD).
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding.png?resize=494%2C341&ssl=1)
In this case, I have three hosts, that are vSAN OSA capable:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-1.png?resize=640%2C398&ssl=1)
We define the Cluster settings:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-2.png?resize=640%2C197&ssl=1)
The vSAN Storage Settings:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-3.png?resize=640%2C271&ssl=1)
Select the three commissioned hosts:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-4.png?resize=640%2C336&ssl=1)
And then we come to the interesting part, Configuring the Switch:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-6.png?resize=640%2C354&ssl=1)
If we choose the “Default”, this will create a new Distributed Switch and all the right Port Groups. It will configure NSX in the default manner, but in this configuration, there is no VLAN-based Transport Zone created. So to get that VLAN-based TZ, we have to create a “Custom Switch Configuration”. So we click that line and on the next screen, we copy the “Default” switch configuration. We could start from scratch, but in this case, it is easier to start from the default and adjust it to our needs.
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-7.png?resize=640%2C354&ssl=1)
So we Edit the Distributed Switch:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-8.png?resize=640%2C354&ssl=1)
The main focus for this change will be in the NSX Section of the Distributed Switch:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-9.png?resize=640%2C549&ssl=1)
So we click on “Edit”.
Then we see that the default setting for NSX-VLAN is unselected, so we check the box:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-11.png?resize=640%2C414&ssl=1)
We select this and then configure the name of the VLAN-TZ. This can be a new name or an existing one if one was already created. In that case, it is visible in the Drop Down Menu.
We then Save the NSX part of the Configuration:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-12.png?resize=640%2C613&ssl=1)
And subsequently, Save the Distributed Switch and go back to the Swith Configuration screen.
Here we acknowledge the fact that we have defined the right VLAN ID and move forward to Licensing:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-13.png?resize=640%2C292&ssl=1)
We then select the right licenses:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-14.png?resize=640%2C189&ssl=1)
Click Next to review all the information, before submitting, by clicking Finish:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-15.png?resize=640%2C614&ssl=1)
This will start the process of creating the cluster:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-16.png?resize=640%2C409&ssl=1)
And after all these tasks have finished succesfully, we have a new cluster:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-19.png?resize=473%2C153&ssl=1)
And when we create a VLAN-based Segment in NSX, connected to the VLAN-TZ we have selected for this cluster:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-17.png?resize=640%2C256&ssl=1)
We can see it being added to the Distributed Switch of this (newly created) cluster:
![](https://i0.wp.com/my-sddc.net/wp-content/uploads/2024/07/afbeelding-18.png?resize=585%2C192&ssl=1)