Learning NSX-Part-8-Installing Distributed Logical Router

In last post of this series we discussed about distributed logical router and went through some important terms and terminologies. In this post we will jump into lab and will deploy logical distributed router.

If you have missed earlier posts of this series, you can read them from below links:

 

1: Introduction to VMware NSX

2: Installing and Configuring NSX Manager

3: Deploying NSX Controllers

4: Preparing Esxi Hosts and Cluster

5: Configure VXLAN on the ESXi Hosts

6: Logical Switching

7: Distributed Logical Router Tidbits

Before jumping into deploying distributed router, I want to stress on the fact that your logical switches be ready. What i mean here since you wanna test routing between 2 or more different subnets, you should have logical switches ready in place and should have some live VM’s attached to it.

In my lab I have 3 logical switches created for this purpose.

dlr-0

Lets jump into lab now.

1: To Deploy Logical Router login to vSphere Web Client and navigate to Networking & Security -> NSX Edges .Click on ‘+’ to add NSX Logical router.

dlr-1

2: On the New NSX Edge page, select Logical Router option and provide a name,hostname and sweet little description description. If you want your edges highly available, select the checkbox that says “Enable High Availability”. Hit Next to continue.

dlr-2

3: Supply the admin password and set the log level to emergency (if you dont want disk space of your edge appliance getting filled quickly)

I like doing things over ssh, so I have enabled SSH on my edge appliance which will be deployed. Hit next.

dlr-3

Note: If password for your edge appliance is contains less than 12 characters, then you are going to get below warning.

dlr-4

4: On configure deployment page, select the virtual datacenter where LDR will be deployed.

Click on green ‘+’ button which says NSX edge appliances. This will deploy DLR Control VM.

dlr-5

5: Specify the Cluster, Datastore, Host and Folder to deploy the DLR Control VM and hit ok.

dlr-6

6: On the Configure interfaces page, click the select button.

dlr-7

It will open a new window from where you can select the management network for the edge interface.

A note about Management Interface Configuration

Management Interface is not a LIF, it’s local to the Control VM and does not require an IP address assigned and even if you configure one you wouldn’t be able to reach it via a routing protocol because there’s Reverse Path Forwarding (RPF) enabled.

dlr-8

It should look like as shown below. Click on “Configure interface of this NSX Edge” to define your LIF’s.

dlr-10.PNG

7: On the Add Interface dialog box, Enter the name of Interface, Select Type, Click Select Link for Connected To: and choose the desired Logical Switch and OK.

dlr-11

Select the logical switch to which your LIF will connect to.

dlr-12

After selecting the logical switch with which this LIF will connect to, we have to define IP address and subnet mask for the LIF.

dlr-13

Using the ‘+’ symbol repeat the wizard until you have created all the LIFs required in your environment.

dlr-14

8: Next and optional, configure a default gateway for the DLR. This typically would be the EGW ip address.

dlr-15

9: On ready to complete page, review your settings and hit finish to start deploying the DLR.

dlr-16

10: Post deployment of DLR, if you navigate to VM and templates view, you will see 2 VM’s deployed (as I chose HA option during deployment). One of these VM will be in active mode and other in standby mode.

dlr-17.PNG

Also if you click on NSX edges under Networking and Security, you will se ethe newly created edge listed there.

dlr-17-1.PNG

Double click on the edge and navigate to Manage > Configuration tab, and you can verify from here as well that 2 control VM’s are deployed and one of em is currently active.

You will also find options like changing the edge size from compact to Large or Quad Large, option to define syslog server where edge will route all the logs and option to change HA configuration.

dlr-19.PNG

11: On VM and Templates select Logical Router and select Summary tab. Here you will see all the IP’s assigned on your edge VM.

dlr-18

DLR deployment verification steps:

1:  Check DLR instance

From NSX Controller run

This commands shows all the dLR instances and the corresponding hosts (VTEPs) that have joined. This command is very useful when something like routes are not propagated from the Control VM to the hosts.

dlr-20

2: Check Routing Table on ESXi host.

From ESXi, find the DLR name with the command

dlr-21

3: Check the routing table installed on the host coming from that dLR

dlr-22

4: On NSX Controller run following commands to see info about MAC Table/ARP table

show control-cluster logical-switches vni 5000 show control-cluster logical-switches mac-table 5001 show control-cluster logical-switches arp-table 5001

dlr-23

Note: In my lab ARP table/Mac Table returns as empty because I dont have any running VM’s connected to my logical switch yet.

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing. Be sociable :)