NSX DLR and ESG with OSPF – Part 3 – Deploy Logical Switches and DLR

vcdx133 This is part 3 of the NSX Distributed Logical Router (DLR) and Edge Services Gateway (ESG) with OSPF configuration guide, describing the deployment of the Logical Switches and Distributed Logical Router (DLR).

This is a five part series describing the steps to deploy DLR and ESG with OSPF:

What are we trying to do in this section?

  • Configure a Distributed Logical Router (DLR) that will allow Virtual Machines within different networks access to each other and the outside world via the Edge Services Gateway (ESG).
  • Configure four Logical Switches that will be used by the VMs, DLR and ESG.
  • The DLR will have two “Internal” interfaces, that is used by the Virtual Machine vNICs.
  • The DLR will have a single “Uplink” interface, that is connected to the “Internal” interface of the ESG.
  • All OSPF routing configuration will be covered in part 5.

A diagram to clarify things:

nsx_dlr_overview

Deploy the Logical Switches

  1. Login to the vSphere Web Client with an account that has NSX and vCenter Admin privileges.
  2. Select “Home” and then the “Networking & Security” icon to access “NSX Home”.
  3. Select “Logical Switches”, the correct “NSX Manager” IP Address and select the green “+” button.
  4. In the “New Logical Switch” window, enter the “Name”, “Description”, select the “Transport Zone”, “Replication Mode” as “Unicast” and tick the “Enable IP Discovery” and “Enable MAC Learning” options.  Then press the “OK” button.
  5. Repeat this again, so that four Logical Switches appear in the list.  Two will be used as “Internal” interfaces for the VMs (to DLR), the third will be the “Uplink” for the DLR to the Edge Services Gateway and the fourth will be the Management interface for the LDR.
  6. If you access the “Network” tab from the “Home” screen and view the “Portgroups” of the “Virtual Distributed Switch”, you will notice the additional portgroups that were created by NSX Manager for each Logical Switch.

Note: some of the configuration information in these screenshots does not match the diagram above.  The screenshots are provided for context.

nsx_logical_switches_1 nsx_logical_switches_2 nsx_logical_switches_3 nsx_logical_switches_4nsx_dlr_18

Deploy the Distributed Logical Router (DLR)

  1. Login to the vSphere Web Client with an account that has NSX and vCenter Admin privileges.
  2. Select “Home” and then the “Networking & Security” icon to access “NSX Home”.
  3. Select “NSX Edges”, the correct “NSX Manager” IP Address and select the green “+” button.
  4. In the “New NSX Edge” window, select the “Install Type” as “Logical (Distributed) Router” and enter the “Name”, “Hostname”, “Description” and “Tenant”.  Then press the “Next” button.
  5. In the “2 Settings” screen, enter the CLI “admin” Credentials and press “Next”.
  6. In the “3 Configure deployment” screen, select the “Datacenter” and press the green “+” button under “NSX Edge Appliances”.
  7. In the “Add NSX Edge Appliance” window, select the “Cluster/Resource Pool” and the “Datastore” for the DLR.  Then press “OK”.
  8. In the “3 Configure deployment” screen, verify that the “NSX Edge Appliance” is listed and press the “Next” button.
  9. In the “4 Configure Interfaces” screen, select the “Management Interface Configuration” as the third Logical Switch created earlier and press the green “+” sign.
  10. In the “Add Subnet” window, enter an IP Address from the Logical Switch, enter the “Subnet prefix length” (most likely Class C – “24”) and press “OK”.
  11. In the “4 Configure Interfaces” screen,  press the green “+” sign under “Configure interfaces for this NSX Edge”.
  12. In the “Add Interface” window, enter the “Name”, select the “Type” as “Internal” for VMs and “Uplink” for ESG and press the “Select” button in “Connected To” to assign the “Logical Switch”.
  13. In the “Connect NSX Edge to a Network” window, select the “Logical Switch” object and select the “Logical Switch” that will be used for Virtual Machine connectivity.
  14. In the “Add Interface” window, then press the green “+” button under “Configure subnets” to assign an IP Address to the interface.
  15. In the “Add Subnet” window, pres the green “+” button and enter the Primary IP Address for the interface and set the “Subnet prefix length”.  Then press “OK”.
  16. In the “Add Interface” window, leave the “MTU” at “1500” and press the “OK” button.
  17. In the “4 Configure Interfaces” screen,  add the second interface as an “Uplink”.  This will connect to the ESG.  Then press “Next”.
  18. In the “5 Default gateway settings” screen, deselect “Configure Default Gateway” and press “Next”.  We will be relying upon the default route to be published via OSPF from the ESG.
  19. In the “6 Ready to complete” screen, press the “Finish” button.
  20. In the “NSX Edges” window, wait for the “Logical Router” “Status” to change from “Busy” to “Deployed”.
  21. To view the progress of the “Logical Router” deployment, select the “Task Console” object from the “Home” location.
  22. To view the “Logical Router” virtual appliance within vCenter, select the “VMs and Templates” tab and locate the “<LDR-Name>-0” virtual appliance.  You can open the console to login as “admin” once the deployment process has finished.
  23. From the VM Summary tab, you can see that the LDR is deployed with the default VM Hardware resources of 1 vCPU, 512MB RAM and 500MB Hard Disk.  Also note that only a single Console session can exist concurrently and vSphere Infrastructure Navigator has no visibility of the LDR.
  24. You have completed the “Logical Router” deployment process.
  25. You are now ready to begin the ESG deployment in Part 4.

Note: some of the configuration information in these screenshots does not match the diagram above.  The screenshots are provided for context.

nsx_dlr_1 nsx_dlr_2 nsx_dlr_3 nsx_dlr_4 nsx_dlr_5 nsx_dlr_6 nsx_dlr_7nsx_dlr_9 nsx_dlr_8  nsx_dlr_11nsx_dlr_10  nsx_dlr_12 nsx_dlr_13 nsx_dlr_14 nsx_dlr_15 nsx_dlr_16 nsx_dlr_17  nsx_dlr_19

Other Resources

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s