Post

Adding NSX Networking to a VCD Tenancy using IP Spaces

Introduction

IP Spaces is a new IP management service that was introduced in Cloud Director 10.4.1.

This feature enables Service Providers to have the capability to control and manage IP address scope, ranges, prefixes, and quotas .You can create different IP scopes and assign them across all tenants without any overlapping or duplication. It also is an improvement when tracking IP usage across tenants.

Not only are IP Spaces new to me but NSX integration with VCD is as well so I thought I’d spin up a new tenant from scratch and go from there.

Here is my BoM for this deployment

ComponentVersion
vCenter Server8.0.1 (21560480)
ESXI8.0.1 (21495797)
NSX4.1
Cloud Director10.4.2

Here is what we will go over in this post

Whats been set up already

  • Create Network Pool
  • Create Provider VDC
  • Create Org
  • Create Provider Gateway
  • Create Private IP Spaces
  • Assign IP Space Uplink
  • Create OrgVDC
  • Create Tenant Gateway
  • As a Tenant, create a new network

Whats been set up already

A working and configured vCenter Server and a working and configured NSX Instance

I have Deployed and configured VCD. I have added my vcenter server as a compute resource and my NSX Manager as a NSX Resource.

For this blog post my Provider Gateway (T0 router) is going to be set as Private, this means a T0 needs to be allocated per individual tenant. This has already been deployed in NSX and configured. Im also going to enable Route Advertisement on my Networks so I have configured BGP pairing to my physical router.

Figure 1: T0 router for my Tenant named Blue


Network Pool


First up is creating a Network Pool in VCD, this is done in the Provider Portal.

This essentially configures NSX-T backed traffic in VCD to use a specific Geneve backed Transport Zone in NSX.

In the Provider Portal go to Resources » Cloud Resources » Network Pools and click New

Give your Pool a Name and click Next

Figure 2: New Network Pool

NSX 4.X is installed so this deployment will use Geneve Backed as a Network Pool Type and then click Next

Figure 3: Choose Network Pool Type

Select NSX Instance and then click Next Figure 4: NSX instance

Choose the NSX overlay transport zone thats been configured and then click Next Figure 5: Choose Transport Zone

Review Settings and then click Finish Figure 6: Review Settings

VCD will now create the Network Pool, this pool is needed to configure your Provider VDC.


Create Provider VDC


Next is to create a new Provider VDC.

This can be done in the Provider Portal under Resources » Cloud Resources » Provider VDCs and clicking on New

Name your Provider VDC and click Next Figure 7: Name Provider VDC

Choose your Cloud Resource (vCenter) and click Next

Figure 8: Choose Provider

Choose the vCenter cluster or resource pool that will map to this Provider VDC and click Next

Figure 9: Select Cluster

Choose your Sotrage Policy and click Next

Figure 10: Storage Policy

Choose the Geneve Backed Network pool we created in the last step and click Next

Figure 11: Network Pool

Review Settings and then click Finish


Create Org


Next Step is to create an Organization, At the moment im colour coding all my Tenants so I will call this one ‘Blue’

This can be done in the Provider Portal on Resources » Cloud Resources » Organizations

Figure 12: Create Org


Create Provider Gateway


Next step is to create the Provider Gateway. This is assigning the T0 router that was created in NSX to my VCD tenant named Blue. Assigning a T0 to a specific tenant is done by setting the Provider Gateway to Private which will be done in the steps below.

Creating a new Provider Gateway is achieved in the VCD Provider Portal. Resources » Cloud Resources » Provider Gateways, click New

Figure 13: New Provider Gateway

Choose NSX Manager and click Next

Figure 14: Choose NSX-T

Give your Provider Gateway a Name and also choose what VCD IP Management capability will be used. In this example we will use IP Spaces, click Next

Figure 15: Name Provider Gateway

Set Provider Gateway to Private and assign to my Blue Organization, click Next

Figure 16: Make Private

Choose the NSX t0 router allocated for this Org and click Next

Figure 17: Choose T0

Review Settings and click Finish Figure 18: Review Settings


Create Private IP Space


Creating a IP Space will allow the tenant to request a IP Prefix to use within their OrgVDC, in this example the tenant ‘Blue’ will be allocated a /16 scope which will then be broken up into 255 /24 blocks.

Create a IP Space in the Provider Portal. Resources » Cloud Resources » IP Spaces

Figure 19: New IP Space

This IP Space will be allocated to the tenant Blue only so choose private, assign the appropriate Org and click Next Figure 20: Make IP Space Private

Give the IP Space a name and click Next

Figure 21: Name IP Space

Since im all configured with BGP, Route Advertisment will be enabled, this means we also need to set up IP Prefixes instead of IP Ranges. Click Next

Figure 22: Enable Route Advertisement

Scope is defining the /16 network, click Next

Figure 23: Enter Scope

Skip IP Ranges and click Next

Figure 24: IP Ranges

Set the IP Prefixes here, as stated below im going to take that /16 scope and break them up into 255 /24 networks. click Next

The IP prefixes need to match the scope of the IP Space.

Figure 25: IP Prefixes

Review Settings and click Finish

Figure 26: Review Settings

You can now see your IP Space, if you expand IP Prefix you will be able to see all the Sequences.

Figure 27: Review Settings



Since these IP Prefixes are going to be routable to the outside world, A IP Space Uplink needs to be created. This is done by browsing to your Provider Gateway created earlier.

Figure 28: Create IP Space Uplink

Under IP Space Uplinks in your Provider Gateway properties, click New

Figure 29: Provider Gateway Properties

Provide a Tenant Facing Name and click Next

Figure 30: Name Uplink

Choose your IP Space, click Next

Figure 31: Choose IP Space

Review Settings and click Finish

Figure 32: Review Settings

You should see your newly created IP Space Uplink now Figure 33: Review Settings


Create OrgVDC


OrgVDC Networks need a OrgVDC so lets create that.

In the Provider Portal under Resources » Cloud Resources » Organization VDCs, Click New

Figure 34: New OrgVDC

Name the OrgVDC, click Next

Figure 35: Name OrgVDC

Assign OrgVDC to Organization, click Next

Figure 36: Choose Org

Choose Provider VDC, click Next

Figure 37: Provider VDC

Choose the preferred Allocation Model, click Next

Figure 38: Allocation Model

Configure the Resource Allocation settings, click Next Figure 39: Resource Allocation

Add Storage Policies and Quotas, click Next

Figure 40: Storage Policies

Choose the Network Pool, click Next Figure 41: Network Pool

Review Settings, click Finish

Figure 42: Review Settings

You should now see your NSX-T backed OrgVDC Figure 43: NSX-T backed OrgVDC


Create Tenant Edge Gateway


Create Edge Gateway for Tenant Blue, This will provision a T1 Gateway in NSX

Created in the Provider Portal under Resources » Cloud Resources » Edge Gateways

Click New

Figure 44: New Edge Gateway

Choose the OrgVDC, click Next

Figure 45: OrgVDC

Name Edge Gateway and enable IP Spaces, click Next

Figure 46: Name Edge Gateway

Choose your Provider Gateway, click Next Figure 47: Provider Gateway

This is dependant on the NSX configuration but, in this instance the edge cluster linked to the provider T0 will be used, click Next

Figure 48: Edge Cluster Review Settings and click Finish

Figure 49: Review Settings

In NSX you will see the Edge Gateway deployed as a T1 Router linked to the T0 Provider Gateway Figure 50: Edge Gateway Summary


Modify Tenant Default Right Bundle


To allow Tenants to create Networks via an IP Space prefix, the Tenant Default Rights Bundle needs to be modified.

Figure 51: Tenant Default Right Bundle


Create New Network as Tenant


A tenant can now log into the Tenant Portal and create their own L3 Routable Network using IP Spaces.

Under Networking, click New

Figure 52: New Network

Choose your orgVDC, click Next

**If there is a need to present a network to multiple OrgVDCs, a Datacenter Group can be created. **

Figure 53: OrgVDC

Choose Routed, click Next

Figure 54:Routed

Specifiy the Edge Gateway, click Next

Figure 55: Edge Gateway

Name your Network, under Gateway CIDRs request a IP Prefix from your IP Space

Figure 56: Request a IP Prefix from your IP Space

VCD will then get a Sequence from the IP Space and assign to this network

Figure 57: IP Prefix Allocation

Figure 58: IP Prefix Confirmation

Skip Static IP Pools, click Next

Figure 59: Static IP Pools

Skip DNS, click Next

Figure 60: DNS

Review Settings, click Next

Figure 61: Review Settings

The Network is now visible in the Blue Tenancy, the tenant is now able to build VMs and applications to assign to this network.

Figure 62: Network


NSX and BGP Verification


viewing the IP Space usage and allocation can be done in the Tenant Portal under Networking » IP Spaces

Figure 63: IP Space usage and allocation

In NSX, you can now see your network created as an Overlay Segment.

Figure 64: Overlay Segment

As promised, this network is routable and is showing on my physical router via BGP.

Figure 65: BGP Route


Summary


IP Spaces is a VCD IP management system that allows providers to assign IP interfaces to customers without any duplication and overlapping.

Another benefit I can see here is if the Provider provides public IP addresses to customers where they can request and release as needed.

Thank you for reading

This post is licensed under CC BY 4.0 by the author.

Trending Tags