VMware HCX Multi-Site Network Extension

3 min read
VMware-HCX-Multi-Site-Network-Extension

Recently I have been having some great conversations around VMware HCX and the mobility functionality within.

Allowing the migration of workloads from either legacy on-prem environments to new environments on-prem such as VMware Cloud Foundation (VCF) deployment or out to a VMware Cloud platform such as VMware Cloud on AWS.

VMware HCX Network Extension

A question came up around networking, and the network extension capability of VMware HCX. Previous work completed has mainly been between two sites, all starting with a “legacy” site, migrating workloads into new environments whether that been VCF or cloud.

This required network extensions to facilitate the migration path, which is achievable with the Network Extension function of VMware HCX. This particular case requires the extension of a network from a legacy environment into two destination environments.

Extending a network

Extending a network from one vSphere environment into two others, that’s a set of two different tracks in my mind.

First being “let’s tap up the documentation, is this possible?”. Well turns out, yes, it is possible, as detailed here https://docs.vmware.com/en/VMware-HCX/4.5/hcx-user-guide/GUID-DBDB4D1B-60B6-4D16-936B-4AC632606909.html 

“HCX supports one Network Extension to a maximum of 3 distinct destinations or routers.”

The second track, time to lab it! It shouldn’t be too complicated using the nested and remote VMware HCX lab’s that I have kicking about.

At a very high-level the below image shows the concept, extending VLAN-10 from VCSA-1 to VCSA-2 and VCSA-3.

Concept - Vmware Hcx

I set about creating this in the lab, first thing I created a new segment within NSX to use for the extension test – ironic really given that I have just been clearing out old segments, I’ll remember to delete this segment once I have completed the testing!

Test Segment

Time to power up the VMware HCX labs (it’s been a while) make sure that they all come up cleanly, fortunately they did. I then confirmed that the site parings were all in place.

Site Paring

For the sake of this test, I actually chose to create new service mesh’s between the sites as I was only interested in testing the network extensibility so no requirement for hybrid interconnect functions.

Service Mesh Config 1024X324 1

Confirming the topology deployment ready for the deployment into the nested HCX environment.

Hcx Sm Topology 1024X363 1

I then completed the same process for the remote HCX lab and created a service mesh with only network extension services enabled. Two service mesh’s deployed and ready for use.

Hcx Sm 1024X386 1

Next step was to extend the NSX segment into each of the HCX Cloud destinations. After stepping through the network extension wizard the segment was extended to both HCX Cloud destinations.

Ne Ext In Place 1024X414 1

Okay, that’s the network extension in place between the “legacy” site and two different HCX Cloud destinations, now time to test it works.

In theory, I should be able to put a VM on the segment/extended segment in each location and they will be able to communicate on the same layer 2 broadcast domain – well that’s what the VMs will believe anyway. I powered up the below components to validate the connectivity.

Site/ VCSA

VM

IP Adresses

OS

VCSA-1

VM-1

172.18.3.10

Photon

VCSA-2

VM-2

172.18.3.11

Photon

VCSA-3

VM-3

172.18.3.12

Windows

Using VM-3 as a GUI, I set about confirming the connectivity using ICMP. The below screenshot is a little busy but it shows a number of things.

  • The bottom two command prompt windows show a ping running from 172.18.3.12 (VM-3) to 172.18.3.10 (VM-1) and 172.18.3.11 (VM-2) with success.
  • Top left there are two SSH sessions connected to 172.18.3.10 (VM-1) this shows a ping operation going to 172.18.3.12 (VM-3) and 172.18.3.11 (VM-2).
  • Top right there are two SSH sessions connected to 172.18.3.11 (VM-2) this shows a ping operation going to 172.18.3.12 (VM-3) and 172.18.3.10 (VM-1).
Ping Tests 1024X606 1

All tests passed, they are all in separate vSphere environments and even better, one is actually in a different physical location with HCX NE Tunnels established over the internet/VPN.

I carried out a number of other tests as well, for example VM-3 is located at a different physical location as this is connected to a segment that is stretched from VCSA-1 when browsing the internet for example VM-3’s egress point is out of the internet breakout in the same location as VM-1.

All in a great test, good to see this working and I’m looking forward to seeing how the conversations progress around multi site networking extensions via HCX.

share
Table of Contents
Subscribe to the Xtravirt Newsletter

Receive updates from the Xtravirt team, including information on new technologies and the expert analysis of cloud trends and strategies you should know about, unsubscribe anytime using the link included in every email.

Senior Consultant