VMware NSX Installation and Configuration Part 11-Configuring OSPF on a Logical (Distributed) Router:

Configuring OSPF on a logical router enables VM connectivity across logical routers and from logical routers to edge services gateways (ESGs). OSPF routing policies provide a dynamic process of  traffic load balancing between routes of equal cost.

An OSPF network is divided into routing areas to optimize  traffic flow and limit the size of routing tables.

An area is a logical collection of OSPF networks, routers, and links that have the same area

identification. Areas are  identified by an Area ID.


Double click on Distributed logical router.




Click Routing and then click OSPF

.1 Enable OSPF.

a Click Edit at the top right corner of the window and click Enable OSPF

b In Forwarding Address, type an IP address that is to be used by the router data path module in the

hosts to forward data path packets.

c In Protocol Address, type a unique IP address within the same subnet as the Forwarding Address

.The protocol address is used by the protocol to form adjacencies with the peers.

2Configurethe OSPF areas.

a Optionally, delete the not-so-stubby area (NSSA) 51 that is configured by default.

b In Area Definitions, click the Add icon.


Click on edit:


Under Area Definitions , click on (+) sign:


Enter the area ID and click on okay:


Under Area to interface mapping click on (+):



Under route redistribution, make sure that OSPF is enabled:


The NSX Topology now is some like below:


In the following screen, the logical router’s default gateway is the ESG’s internal interface IP address(

The router ID is the logical router’s uplink interface—in other words, the IP address that faces the ESG(


The logical router configuration uses as its forwarding address. The protocol address can be any IP address that is in the same subnet and is not used anywhere else. In this case, is configured.


The area ID configured is 20, and the uplink interface (the interface facing the ESG) is mapped to the area.


In the next blog post , i will cover the OSPF routing configuration on ESG so that DLR and ESG can share the routes with each other.

3 thoughts on “VMware NSX Installation and Configuration Part 11-Configuring OSPF on a Logical (Distributed) Router:

    1. No , it has to be different. Protocol address is used for the control plane and forwarding address is actually used for data plane !


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 )

Connecting to %s