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.
Steps:
- 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.
1 2 3 4 5 6 |
Using username "admin". Last login: Sun Jun 8 18:15:34 2018 from 192.168.0.22 switch01>enable Password: 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.
1 2 3 4 |
switch01#config switch01(config)# vlan 301 name vlan_nas_301 ! |
and now let’s write the switch configuration.
1 2 3 4 5 6 |
switch01(config)#write Copy completed successfully. switch01(config)#copy running-config flash:/cfg_20180712 switch01#copy running-config flash:/cfg_20180712 Copy completed successfully. switch01# |
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.

New Distributed Port Group
Type the vlan name.

New Distributed Port Group-1

New Distributed Port Group Vlan ID
In the vlan type choose “VLAN” and enter your vlan ID and click the “customize default policies configuration” checkbox.

New Distributed Port Group – Security
Next,

New Distributed Port Group-Traffic Shaping
Next

New Distributed Port Group-Teaming LACP
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

Logical Switch Definition
Go to Home, Networking & Security, Logical switches, New logical switch (green cross)

Logical Switch Definition – 1
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.

NSX Edge – 1
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.

NSX Edge – Logical Router

NSX Edge – Logical Router
Enter your NSX Edge password.

NSX Edge – Logical Router appliance

NSX Edge – Logical Router – appliance 1
Choose your “Datacenter”, click the green cross and select your Cluster and Datastore.

NSX Edge – Logical Router – appliance 2

NSX Edge – Logical Router – appliance 3
Choose the interface the appliance will be conected to the transport Zone, and then finish the wizard keeping default values.
NSX Bridging

NSX Edge – Bridging
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!!
free iptv
tangle