VCF 5.2 supports bring up and workload domain deployment with either DHCP or Static IP Pools for NSX host TEPs. Customers who are running VCF 5.2 and want to change the IP assignment method can use this KB article, for instance, to replace DHCP with Static IP Pools so that VCF can manage the process including future cluster expansions.
The following is a manual procedure to update the existing host TEPs to Static IP Pools from DHCP, or vice-versa. If you use Static IP Pools, the TEP assignment for future cluster expansion workflows will automatically select available IP's from the pools.
This is applicable to both VCF on Ready Nodes and VCF on VxRail on version 5.2, including for stretched clusters.
VMware Cloud Foundation 5.2
Migration of NSX Host TEPs to Static IP Pools from DHCP on VCF 5.2
Two use-cases:
General notes:
NSX has Transport Node Profiles (TNP) attached to the vSphere clusters
Note, in case of multiple Availability Zones, TNP will include Sub-TNP
(Networking -> IP Address Pools -> Add IP Address Pool). If the vSphere cluster is not stretched, create one IP Pool. If it is stretched, create two pools, one for each Availability Zone.Static-TEP-Pool-A), then click on the Set link under the Subnets column. Set Subnets properties page, click the ADD SUBNET button and choose IP Ranges. IP Ranges / Block column, click on the IP Ranges property box, then enter an IP Range that does not conflict with the addresses administered by the DHCP server (e.g., 172.16.30.200-172.16.30.249). Press Enter.172.16.30.0/24).172.16.30.1).ADD, then APPLY, and SAVE on the IP Address Pools page.IP Address Pool Status column indicates Success for the newly created IP Address Pool.Static-TEP-Pool-B172.16.31.200-172.16.31.249172.16.31.1(System -> Fabric -> Hosts -> Clusters) shown under the column Applied Profile. Then click on Transport Node Profile, find the Transport Node Profile and click on Edit. Then click on the number under Host Switch. Host Switch properties page, click Edit on the host switch definition. On the IPv4 Assignment property drop-down, replace Use DHCP with Use IP Pool. Then, on IPv4 Pool, select the first IP Pool created before (e.g., Static-TEP-Pool-A).SUB-TRANSPORT NODE PROFILE, then click on the number for Sub-Transport Node Profile(Sub-TNP). Otherwise, jump to Step 14.Sub-TNP associated to the second Availability Zone and repeat Step 11 to replace DHCP with the second IP Pool created (e.g., Static-TEP-Pool-B). Click on ADD and APPLY. ADD and APPLY. Then SAVE to finish the configuration of the Transport Node Profile.Clusters and expand the vSphere cluster. The new settings of the Transport Node Profile will be applied to all hosts of the cluster automatically. Monitor the progress under the Node Status column.Cluster view, expand the vSphere cluster and examine the TEP IP Address column.
NSX does not have Transport Node Profiles (TNP) attached to the vSphere clusters
Networking -> IP Address Pools -> Add IP Address Pool). If the vSphere cluster is not stretched, create one IP Pool. If it is stretched, create two Pools, one for each Availability Zone.Static-TEP-Pool-A), then click on the Set link under the Subnets column.Set Subnets properties page, click the ADD SUBNET button and choose IP Ranges.IP Ranges / Block column, click on the IP Ranges property box, then enter an IP Range that does not conflict with the addresses administered by the DHCP server (e.g., 172.16.30.200-172.16.30.249). Press Enter. CIDR property box enter the CIDR (e.g., 172.16.30.0/24).172.16.30.1).ADD, then APPLY, and SAVE on the IP Address Pools page.IP Address Pool Status column indicates Success for the newly created IP Address Pool.Static-TEP-Pool-B172.16.31.200-172.16.31.249172.16.31.1System -> Fabric -> Hosts -> Transport Node Profile). SDDC Manager uses the vSphere cluster name to name TNPs. The TNP will show 0 under the Applied Cluster column. Edit. Then click on the number under Host Switch.Host Switch properties page, click Edit on the host switch definition. On the IPv4 Assignment property drop-down, replace Use DHCP with Use IP Pool. Then, on IPv4 Pool, select the first IP Pool created before (e.g., Static-TEP-Pool-A).SUB-TRANSPORT NODE PROFILE, then click on Set. Otherwise, jump to Step 22.ADD SUB-TRANSPORT NODE PROFILE. Enter a name for the Sub-TNP, e.g., profile-mgmt-cluster-2. Select the VDS prepared for NSX in the vSphere cluster.Uplink Profile property drop-down, then jump to Step 20. Otherwise, create new Uplink Profiles for the hosts in AZ2. Click on the three vertical dots and select Create New. Create Uplink Profile properties page, enter a name (e.g., uplink-profile-mgmt-cluster-2), the host TEP VLAN, and then click on Set for Teamings.Set Teamings properties page, select a Teaming Policy for the Default Teaming, e.g., Load Balance Source. Then for the Active Uplinks, add as many arbitrary labels separated by commas as uplinks defined in the VDS selected above. In most cases, you will use the same names used in the main TNP. For instance, if the VDS prepared for NSX has two uplinks, enter uplink-1, uplink-2. Then press Enter, ADD and APPLY.SAVE on the Create Uplink Profile properties page.Sub-Transport Node Profile properties page, ensure that the Uplink Profile property drop-down has the profile just createdIPv4 for IP Address Type and Use IP Pool for IPv4 Assignment. Then, select the second IP Pool created (e.g., Static-TEP-Pool-B).Teaming Policy Uplink Mapping, map the strings entered in Step 17 (new Uplink Profile) or the strings created by SDDC Manager (existing Uplink Profile) to the appropriate VDS Uplinks. Click on ADD and APPLY.ADD and APPLY. Then SAVE to finish the configuration of the Transport Node Profile.Clusters tab and select the vSphere cluster to configure with the updated TNP. If the vSphere cluster is stretched, click on Set on the column Sub-cluster. Otherwise, jump to Step 26.Sub-Cluster properties page, click ADD SUB-CLUSTER. Enter a name (e.g., mgmt-cluster01-profile1). Click on Set under Nodes.Set Host Nodes properties page, select the hosts that belong to the second Availability Zone. Click on APPLY, SAVE and CLOSE.Clusters tab, select again the vSphere cluster to configure with the updated TNP. Click on CONFIGURE NSX.NSX Installation properties page, select the updated TNP.Sub-Cluster Nodes tab, expand the Sub-Cluster name created before (e.g., mgmt-cluster01-profile1) and select the Sub-TNP name created for AZ2 (e.g., profile-mgmt-cluster-2). Click on SAVE. Node Status column.Cluster view, expand the vSphere cluster and examine the TEP IP Address column.
Procedure to change the networks used by host TEPs
If you cannot reuse the networks and/or VLANs used in the DHCP server, for instance, because there are not enough IP addresses available for the host TEPs, you can follow this procedure to change the IP networks.
Networking -> IP Address Pools -> Add IP Address Pool) as described above with the new IP addresses.System -> Fabric -> Profiles -> Uplink Profiles).Node Status column of the Clusters view.TEP IP Address column.