HOWTO: Configure VMware NSX with Dynamic Routing – OSPF

Dynamic Routing provides the necessary forwarding information between Layer 2 broadcast domains.  There are 3 types of Dynamic Routing supported by VMware NSX OSPF, BGP and IS-IS.

In this post, as part of the VCAP6-NV Deployment Study Guide, we will be covering the configuration of OSPF.

Prerequisites

The following prerequisites are assumed for this Objective:

  • A working VMware vSphere 6.x environment.
  • A working VMware NSX 6.x environment.

Configure a Router ID for each NSX Edge

To configure OSPF, each NSX Edge must have a Router ID configured.  The steps to do this is covered in HOWTO: Configure the Router ID for a VMware NSX Edge.

Configure OSPF on a Distributed Logical Router (DLR)

Note: These steps assume you are not even logged into vCenter Server.  Skip the first few steps if you are!

Using your favourite web browser, navigate to the vCenter Server login page (https://vcenter.fqdn).

Enter appropriate User name and Password and click Login.

Click Networking and Security.

Click NSX Edges.

Double-Click on the target DLR.

Click the Manage tab, select Routing and then select OSPF.

At OSPF Configuration, click Edit.

Check the Enable OSPF checkbox and enter the Protocol Address and Forwarding Address.

Click OK.

Click Publish Changes.

(Optional) Under Area Definition, select Area ID 51 and click Delete (X).

Click Yes.

Under Area Definition, click Add(+).

Enter an Area ID, select a Type of Area (Normal or NSSA) from the dropdown, select Authentication method (None, MD5 or Password) and (if required enter a Value.

Click OK.

Under Area to Interface Mapping, click Add(+).

Select the correct Interface from the dropdown, the correct Area and optionally make changes to the Advanced settings.  Then click OK.

Click Publish Changes.

Configure OSPF on an Edge Services Gateway (ESG)

Note: These steps assume you are not even logged into vCenter Server.  Skip the first few steps if you are!

Using your favourite web browser, navigate to the vCenter Server login page (https://vcenter.fqdn).

Enter appropriate User name and Password and click Login.

Click Networking and Security.

Click NSX Edges.

Double-click on the target ESG.

Click the Manage tab, select Routing and then select OSPF.

At OSPF Configuration, click Edit.

 

Check the Enable OSPF checkbox.

Click OK.

(Optional) Under Area Definition, select Area ID 51 and click Delete (X).

Click Yes.

Under Area to Interface Mapping, click Add(+).

Select the appropriate vNIC, the Area and then Click OK.

Click Publish Changes.

Checking Route Redistribution (OSPF)

These steps should be completed for each of the NSX Edges in the OSPF configuration.

Note: These steps assume you are not even logged into vCenter Server.  Skip the first few steps if you are!

Using your favourite web browser, navigate to the vCenter Server login page (https://vcenter.fqdn).

Enter appropriate User name and Password and click Login.

Click Networking and Security.

Click NSX Edges.

Double-click on the target NSX Edge.

Click Route Redistribution.

Checking if Route Redistribution is enabled for OSPF

If the Route Distribution Status is OSPF set to Disabled, click Edit.

Check the OSPF checkbox.

Click OK.

Click Publish Changes.

Checking the Route Redistribution Table is updated

If the Route Distribution Table is empty, click Add(+).

Select the Prefix Name (Any), the Learner Protocol (OSPF), check the Connected checkbox and select Permit from the Action dropdown.

Click OK.

Click Publish Changes.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.