Hi there again! I’ve made some good progress with my NSX-T lab deployment, but there’s still a lot to do!
Back in part three I made a high-level plan for the NSX data plane deployment. Let’s have a look:
- Prepare the vSphere distributed switch – part three
- Configure transport zones – part three
- Create logical switches – part three
- Prepare & configure ESXi hosts – part four
- Deploy & configure Edge VMs –part four
- Configure routing
Things are working out pretty well so far so I’ll simply stick to this plan and go on with setting up NSX routing.
Tier-0 logical router
The Tier-0 logical router acts as a gateway service between the logical and physical network. A Tier-0 logical router has downlink ports to Tier-1 logical routers and uplink ports that connect to the external network. Tier-0 logical routers support things like BGP dynamic routing and ECMP.
Deploying the Tier-0 logical router
No reason to wait. In NSX Manager I navigate to Networking > Routing:
Here I’m clicking on the “+Add” button and choose “Tier-0 Router”:
I’m calling the Tier-0 router “tier-0-01” and select the Edge cluster I created in part four. I’m leaving the high-availability mode at the default “Active-Active” meaning that traffic is load balanced across all members of the Edge cluster.
Creating Tier-0 router ports
With the Tier-0 router deployed I will now create four router ports (of which two will be used at this point). I click the “tier-0-01” logical router and navigate to Configuration > Router Ports:
Clicking the “+Add” button brings up the following form:
I will use these are settings for the four router ports in my lab:
|Setting||Router Port #1||Router Port #2||Router Port #3||Router Port #4|
|Logical Switch Port Name||sp-uplink01-tn-edge-01||sp-uplink02-tn-edge-01||sp-uplink01-tn-edge-02||sp-uplink02-tn-edge-02|
The four router ports once they are created:
As you can see each Edge transport node has two uplink router ports.
Configuring Tier-0 dynamic routing
In my lab I will use BGP dynamic routing between Tier-0 and pfSense. On the Tier-0 router navigate to Routing > BGP:
First I enable BGP and ECMP and set the local AS to 65000:
Next I’m going to add the BGP neighbor by clicking the”+Add” button under “Neighbors”:
The neighbor address is 172.27.11.1 and the remote AS is 65001 as configured on the pfSense. I also modify the values for “keep alive” and “hold down” to 4 and 12 seconds respectively.
Under “Local Address” I will only select the two router ports in VLAN 2711 for now:
Note that the IP addresses of the Tier-0 uplink router ports have already been added as BGP neighbors in the pfSense configuration.
Finally, under “Address Families” I add and enable “IPV4_UNICAST”:
The BGP neighbor has now been configured:
The last thing I want to enable on the Tier-0 router is route redistribution. I click on Routing > Route Redistribution:
I create a new criteria called “redist-all” and select all sources:
This ensures that the Tier-0 will redistribute routes from all available sources.
Verifying Tier-0 dynamic routing
Let’s start by checking if the BGP neighbor connection status looks healthy. I select the “tier-0-01” router and click on Actions > Generate BGP Summary:
This generates a list with the current neighbor connection status:
To verify that routes are received from the pfSense router, I log in to one of the Edge VMs and run the following commands:
Listing the logical router instances on the Edge VM. It’s VRF 3 (service router) I’m interested in. Changing to VRF 3’s context:
And now I run:
This command lists the routes in the VRF 3 context. I can see a number of routes coming from the pfSense router via BGP (b).
To test actual traffic flow I ping an IP addresses located in the physical network from within the VRF 3 context:
It looks like North-South traffic flow is operational!
Let’s finish with a diagram of the routing topology I built so far:
Availability? Not really, but this is a lab environment. I do not recommend using this setup in a production environment. I will deploy another pfSense router and create additional BGP peerings to make my lab look more like a production deployment, but that’s for another time. 😉
In this part I deployed the Tier-0 logical router and configured North-South dynamic routing. After some basic verification and testing things seem to be working.
This piece of NSX infrastructure is critical when it comes to logical networks being able to communicate with the physical network and vice versa.
In the next part I will continue setting up routing by deploying a Tier-1 logical router and some logical L2 networks.