Morning! welcome to virtualcloudblog.com and thanks for checking it out. Today, I’ll write this post about vSphere + NSX and the way to create and configure a new vlan. In my case LACP is enabled.
- To configure the new vlan at physical switch level.
- To define the vlan in the LACP as a port group in the distributed virtual switch.
- To define the NSX Logical switch
- To define the NSX Edge and assign the logical switch on it.
- NSX Bridging .
To configure the new vlan at physical switch level.
Firstly I kindly recommend you to check if the vlan is already defined in the switches. SSH to our swich, log in as admin.
Using username "admin".
Last login: Sun Jun 8 18:15:34 2018 from 192.168.0.22
switch01#show vlan id 301
% VLAN 301 not found in current VLAN database
as there is no vlan reference in the switche database, let’s configure the vlan.
switch01(config)# vlan 301
and now let’s write the switch configuration.
Copy completed successfully.
switch01(config)#copy running-config flash:/cfg_20180712
switch01#copy running-config flash:/cfg_20180712
Copy completed successfully.
To define the vlan in the LACP as a port group in the distributed virtual switch.
Log in into the vSphere Web Client, to Go Home, Networking, distributed virtual switch (right click), distributed port group, new distributed port group.
Type the vlan name.
In the vlan type choose “VLAN” and enter your vlan ID and click the “customize default policies configuration” checkbox.
Here, use the “lag” as uplink and, the two uplinks as unused links, please check the following screenshot (this is the standard way to configured a new vlan if LACP is enabled and configured).
and then click Next to finish the wizard and keep default values.
To define the NSX Logical switch
Go to Home, Networking & Security, Logical switches, New logical switch (green cross)
and type the vlan name, the Transport Zone and replication mode are populated by default. If needed (not in my case), both values can be changed based on your necessities. Then click OK.
To define the NSX Edge and assign the logical switch on it.
Go to Home, Networking & Security, NSX Edges, New NSX Edge (green cross)
Type the vlan name, and description (if needed). In this case, this vlan will work as bridge so in my case a “Logical Router” will be deployed without HA.
Enter your NSX Edge password.
Choose your “Datacenter”, click the green cross and select your Cluster and Datastore.
Choose the interface the appliance will be conected to the transport Zone, and then finish the wizard keeping default values.
Now bridging is needed, so double click in the NSX Edge has been created. Go to manage, Bridging and click the green cross.
Type the name, and select the Logical switch and the Port group have been defined in the previous steps. After clicking OK, the changes have to be published.
I hope it helps you and thanks for sharing!!