In the Network Virtualization with VMware NSX – Part 5 we discussed about VXLAN to VLAN Layer 2 Bridging, Configure and Deploy an NSX Edge Gateway, Configure Routes (Static Routing) on the NSX Edge Gateway and on the Distributed Router. Here in Network Virtualization with VMware NSX – Part 6 will discuss about Configure Dynamic Routing (OSPF) on Perimeter Gateway and on Distributed Router.
As we discussed and Configured Static Routing on both Perimeter Gateway and on Distributed Router in the Network Virtualization with VMware NSX – Part 5. So before going to configure Dynamic Routing we need to delete that.
Remove Static Routes from Perimeter Gateway and from Distributed Router:-
1. Connect to vCenter Server through vSphere Web Client —> Click Home tab –> Inventories –> Networking & Security and select NSX Edges.2. In the edge list, double-click the Perimeter Gateway to open and manage that object. In the middle pane, click the Manage tab –> click Routing and Click Static Routes.
3. In the Static Routing list select the Route to delete and click Red X icon (X). Click Publish Changes to take effect of the changes.
4. Once done you’ll see the selected Static Route has been deleted from list.
5. Repeat steps 1-4 to delete Static Routes from the Distributed Router.
So now we have deleted Static Routes from both Perimeter Gateway and Distributed Router.
———————————————————————————————————-
Now Will Configure Dynamic Routing (OSPF) on Perimeter Gateway:-
1. Click Home tab –> Inventories –> Networking & Security and NSX Edges. Double Click the Perimeter Gateway router to open and manage this.2. Select Manage –> Routing –> Global Configuration and Under Dynamic Routing Configuration –> Click Edit to Edit the Dynamic Routing Configuration.
3. In the Edit Dynamic Routing Configuration dialog box, Select the Router ID from List and Click OK.
4. Click Publish Changes to Apply changes.
5. Once Changes Applied You can see under Dynamic Routing Configuration Router ID and OSPF Enabled.
6. Next we need to Configure OSPF. To do so In the routing category, select OSPF and Under Area Definitions verify that Area 0 is exist. If Area 0 does not exist we need to create that.
7. We need to add more area as needed. So to add Area Click Green Plus Sign (+) under Area Definitions.
8. In the New Area Definition dialog box, Enter the Area ID and Click OK.
9. Click Publish Changes to Apply changes.
10. Once Changes Applied You can see Area ID under Area Definitions List.
11. Once Area ID has been created we need to Map Interface to specified Area. To Map Interface to Area Click Green Plus Sign (+) Under Area to Interface Mapping:
12. Select the required vNIC and enter Area ID into Area box and Click OK.
13. Click Publish Changes to Apply changes.
14. Once changes has been applied you can see that Interface has been mapped to specified Area.
15. Repeat the steps 11-14 to Map all the required Interface to Area ID.
16. Once All the Interfaces have been Mapped to Required Area ID. We need to Redistribute Perimeter Gateway Subnets. To do so In the routing category, select Route Redistribution and Under Route Redistribution Table Click the green plus sign (+) to open the New Redistribution criteria dialog box.
17. In the New Redistribution criteria dialog box, Under Allow learning from select the Connected check box and Action Permit and Click OK.
18. Click Publish Changes to Apply changes.
19. In the Route Redistribution Status at the top of the page, determine if a green check mark appears next to OSPF. If a green check mark does not appear Click Edit to edit the settings to Enable OSPF.
20. In the Change Redistribution settings dialog box Check the OSPF Check box and Click OK.
21. Once Changes done you can see green check mark appears next to OSPF.
———————————————————————————————
Now we will be Configuring OSPF on Distributed Router:-
1. Click Home tab –> Inventories –> Networking & Security and NSX Edges. Double Click the Distributed Router to open and manage Distributed Router.
2. Select Manage –> Routing –> Global Configuration and Under Dynamic Routing Configuration –> Click Edit to Edit the Dynamic Routing Configuration.
3. In the Edit Dynamic Routing Configuration dialog box, Select the Router ID from List and Click OK.
4. Click Publish Changes to Apply changes.
5. Once Changes Applied You can see under Dynamic Routing Configuration Router ID and OSPF Enabled.
6. Next we need to Configure OSPF. To do so In the routing category, select OSPF and On the right side of the OSPF Configuration panel, click Edit to open the OSPF Configuration dialog box.
7. In the OSPF Configuration dialog box, Select the Enable OSPF check box. Enter Protocol Address and Enter Forwarding Address and Click OK.
8. We need to add more area as needed. So to add Area Click Green Plus Sign (+) under Area Definitions.
9. In the New Area Definition dialog box, Enter the Area ID and Click OK. And Click Publish Changes to Apply changes.
10. Once Area ID has been created we need to Map Interface to specified Area. To Map Interface to Area Click Green Plus Sign (+) Under Area to Interface Mapping.
11. Select the required Interface and enter Area ID into Area box and Click OK. And Click Publish Changes to Apply changes.
12. After the changes have been published, verify that the OSPF Configuration Status is Enabled.
13. Once All the Interfaces have been Mapped to Required Area ID. We need to Redistribute Distributed Router Internal Subnets. To do so In the routing category, select Route Redistribution and Under Route Redistribution Table Click the pencil icon to open the Edit Redistribution criteria dialog box, and verify that settings are configured as: Prefix Name: Any, Learner Protocol: OSPF, Allow Learning From: Connected and Action: Permit.
If the default route redistribution entry does not appear in the list, we need to create a new route redistribution by clicking the green plus sign (+) and configure the table.
That’s it ! we have done with Configuring Dynamic Routing (OSPF) on Perimeter Gateway and on Distributed Router.
In the next Network Virtualization with VMware NSX – Part 7 will discuss Network Address Translation (NAT) and Load Balancing with NSX Edge Gateway.
Thank You and Keep sharing 🙂
————————————————————————————————————–
Other NSX Parts:-
Network Virtualization with VMware NSX – Part 1
Network Virtualization with VMware NSX – Part 2
Network Virtualization with VMware NSX – Part 3
Network Virtualization with VMware NSX – Part 4
Network Virtualization with VMware NSX – Part 5
Network Virtualization with VMware NSX – Part 6