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:

  1. To configure the new vlan at physical switch level.
  2. To define the vlan in the LACP as a port group in the distributed virtual switch.
  3. To define the NSX Logical switch
  4. To define the NSX Edge and assign the logical switch on it.
  5. 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.

as there is no vlan reference in the switche database, let’s configure the vlan.

and now let’s write the switch configuration.

 

 

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!!

Sharing is caring!

2 comments

  1. Reply

    Greetings fг᧐m Floгida! I’m bored to tears at work so I decided to browse
    your website on my iphone Ԁuring lunch break. I enjoy the knowledge you provide
    heгe and can’t waіt to take a look ѡhеn I
    get home. I’m surprised at how fast your blog loaded on my mobile ..

    I’m not even using WIFI, just 3G .. Anyways,
    great blⲟg!

Leave a comment

Your email address will not be published. Required fields are marked *