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.
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
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.
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:
My name is Amine El Badaoui and I currently live in Aylesbury, a small town in the south east of England
I have been working in the IT industry for few years now and specialise in VMware virtualisation, data centre infrastructure and cloud technologies. Over the years I have obtained numerous industry certifications from Microsoft, Netapp and VMware.I currently work as a VMware Product Engineer @ https://www.rackspace.com/
This blog represents my random technical notes and thoughts. The thoughts expressed here do not reflect my current employer in anyway.