Troubleshoot dynamic routing protocols in NSX

For this section, I will mainly be focusing on OSPF, however debuging other routing protocols is very similar, just change the commands to bgp or isis. To troubleshooting dynamic routing protocols in NSX, you should first enable logging for the edge devices. To enable logging, navigate to Networking & Security -> NSX Edges and double click the edge device to enable routing logging.

Click on Manage -> Routing and Edit next to Dynamic Routing Configuration

Check the box Enable Logging and then set your log level. I usually just set it to debug so that it gathers the most information. Click OK

From there, you can SSH or console into the edge device and run the following command.

You should be able to see your neighbor list, if you do not, then you will need to review the log. There can be many things wrong with the configuration, incorrect hello intervals, dead intervals, configuration for uplinks or forwarding/protocol addresses are wrong, or even route redistribution not being configured correctly.

If there is a problem with OSPF, or a configuration, the log will tell you what the problem is, and does a good job at being specific. I have highlighed an example below. As you can see, OSPF is not working due to a mismatched hello interval.

I suggest playing around in your lab environment with incorrect settings to see what specific log messages you get, and how you can work toward resolving them. As mentioned, I only went through OSPF troubleshooting, but the concept is the same across the routing protocols.