0

Practical NSX: Routing using BGP

As you probably all know, NSX out of the box supports a couple of routing protocols, namely OSPF and BGP. IS-IS used to be supported but has since been removed.  BGP is technically an Exterior Gateway Protocol or EGP and is designed to interact with devices outside of the network boundaries. OSPF and IS-IS on the other hand should be used inside the network boundaries. I am guessing that’s the reason why BGP cannot configured on the LDR and is only available on the EDGE.

Configuring BGP on NSX is quite simple. All you need is your neighbour’s details and the AS numbers of the devices involved and you are good to go! One thing I need to mention as it will have an impact on the configuration, is that I will be using iBGP instead of eBGP hence both my routers will be on the same AS. For those of you want to learn more about the differences between iBGP and eBGP please have a look this great article from Packet Design.

In this article, I will be setting up BGP between an NSX Edge and a Vyos virtual router. 

Vyos Configuration

Below are the interfaces that are configured. 

Let’s add the vyos-bgp-lif (192.168.16.2) as a neighbour with a remote AS of 6500 

Resulting config:

EDGE Configuration

Double click on your Edge and navigate to Manage > Routing > BGP 

Enable BGP and configure your Local AS

Now let’s configure our neighbour which is the Vyos router. Please note that I am using the same AS.

The last piece to take care of is the route distribution 

That’s it! The configuration is now complete on both sides. Looking at both the Edge and the Vyos routers we can see that they are both speaking BGP and exchanging routes.

Vyos Side:

NSX Edge:

Please note: I have no networks added to the interface on the Vyos router hence we are not seeing any BGP route entries on the Edge.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

Sharing is caring!

Related Post

Leave a Reply

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