VMware Networking Community
rajeevsrikant
Expert
Expert
Jump to solution

Migrating from work load from VXLAN to VLAN

I am planning to migrate the work loads from VXLAN to VLAN

I have 2 VXLAN network which i am planning to migrate to VLAN so that their D.G will be the Physical L3 switch.

I understand migrating from VLAN to VXLAN using L2 bridging.

Would like to know whether the procedure will be the same by using L2 bridging or is there any other way by which it can be done.

Reply
0 Kudos
1 Solution

Accepted Solutions
bayupw
Leadership
Leadership
Jump to solution

Yes migration in this case = migrate network which is changing VM portgroup from VXLAN logical switch to PortGroup

If you need to change the ESXi host, in vSphere 6 you can change ESXi and network in the same time

You can use vSphere Web Client > Networking > VDS Migrate VM or use PowerCLI so you can migrate multiple VMs at a time

vSphere Web Client: Migrate Virtual Machine Networking to the vSphere Distributed Switch

PowerCLI: Migrate Virtual Machine Networking Configuration from a vSphere Standard Switch to a vSphere Distrib...

migratevm1.PNG migratevm2.PNG

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw

View solution in original post

Reply
0 Kudos
9 Replies
bayupw
Leadership
Leadership
Jump to solution

Is the current default gateway in NSX DLR?

If you need to migrate in phases/stages then you will need L2 bridging and the procedure is pretty much the same like migrating from VLAN to VXLAN with bridging

But if you want to migrate all VMs on a VXLAN altogether, then you just need to

- reconnect all the VMs on that particular VXLAN to VLAN-backed PortGroup

- disconnect the DLR LIF for that default gateway

- make sure the north-south Edge is not advertising that network anymore

- lastly enable/migrate default gateway to the physical L3 switch (you can probably do a pre-configuration with the interface shut down, so you just need to enable it during migration)

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Thanks.

Yes the current default gateway is NSX DLR.

I have 4 VXLAN & out of which i need to migrate 2 VXLAN to VLAN & keep the remaining VXLANs the same.

So it will be a phased migration for the 2 VXLAN.

My understanding is that there will be down time to this.

Reply
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Further to the above I don't want all the VM`s in the VXLAN to migrate at single go. I want to do it in a phased manner.

Reply
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

I have prepared the steps as below.  Let me know if this is correct.

My ESXi hosts are connected to the L2 physical switch which are further connected to the L3 Physical switch.

Create a distributed port group for the VXLAN which needs to be extended to the Physical L3 switch.

ex VLAN – 100 (10.15.8.0/24)

   VLAN – 101 (10.15.9.0/24)

Create VLAN 100 & 101 in the Physical switch.

Configure trunk between the ESXi hosts <-> L2 Switch to allow VLAN 100 & 101

Configure trunk between the L2 Switch  <-> Physical L3 switch

Create L2 Bridging in the NSX DLR for each for VLAN 100 & 101

There will be 1:1 ratio mapping of the VLAN to VXLAN mapping

Migration of the VM`s from VXLAN logical switch to VLAN Distributed port group.

Configure the L3 Interface in the Physical L3 switch (shutdown state)

Change the D.G from NSX DLR to the Physical L3 switch.

Remove the bridging instance for that particular VXLAN – VLAN

Remove the VXLAN (Logical switches) f

Reply
0 Kudos
bayupw
Leadership
Leadership
Jump to solution

Yes there will be a downtime.

You can still do 1 VXLAN per time without bridging but all VMs on that particular VXLAN

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
bayupw
Leadership
Leadership
Jump to solution

Yes that should be correct and I don't think you have missed any steps

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Thanks.

Migration of the VM`s from VXLAN logical switch to VLAN Distributed port group.

- For the above step my understanding is that we need change the VM`s NIC i need to change pointing from Logical swith to Distributed port group.

Let me know if my understanding is right.

Reply
0 Kudos
bayupw
Leadership
Leadership
Jump to solution

Yes migration in this case = migrate network which is changing VM portgroup from VXLAN logical switch to PortGroup

If you need to change the ESXi host, in vSphere 6 you can change ESXi and network in the same time

You can use vSphere Web Client > Networking > VDS Migrate VM or use PowerCLI so you can migrate multiple VMs at a time

vSphere Web Client: Migrate Virtual Machine Networking to the vSphere Distributed Switch

PowerCLI: Migrate Virtual Machine Networking Configuration from a vSphere Standard Switch to a vSphere Distrib...

migratevm1.PNG migratevm2.PNG

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
Reply
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Thanks Got it

Reply
0 Kudos