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(192.168.10.1).
The router ID is the logical router’s uplink interface—in other words, the IP address that faces the ESG(192.168.10.2).
The logical router configuration uses 192.168.10.2 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, 192.168.10.3 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.