To enable access between your VMs and the outside world, you can configure an external BGP (eBGP) connection between a tier-0 logical router and a router in your physical infrastructure.
About this task
When configuring BGP, you must configure a local Autonomous System (AS) number for the tier-0 logical router. For example, the following topology shows the local AS number is 64510. You must also configure the remote AS number of the physical router. In this example, the remote AS number is 64511. The remote neighbor IP address is 192.168.100.254. The neighbor must be in the same IP subnet as the uplink on the tier-0 logical router. BGP multihop is not supported.
For test purposes, the 10.10.10.10/32 address is configured on the external router loopback interface.
Router ID used for forming BGP sessions on an edge node is autoselected from the IP addresses configured on the uplinks of a tier-0 logical router. BGP sessions on an edge node can flap when router ID changes. This can happen when the IP address auto-selected for router ID is deleted or the logical router port on which this IP is assigned is deleted.
Verify that the tier-1 router is configured to advertise connected routes. See Configure Route Advertisement on a Tier-1 Logical Router. This is not strictly a prerequisite for BGP configuration, but if you have a two-tier topology and you plan to redistribute your tier-1 networks into BGP, this step is required.
Verify that a tier-0 router is configured. See Create a Tier-0 Logical Router.
Make sure the tier-0 logical router has learned routes from the tier-1 logical router. See Verify that a Tier-0 Router Has Learned Routes from a Tier-1 Router.
- From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
- Select Routing from the navigation panel.
- Select the tier-0 logical router.
- Click the Routing tab and select BGP from the drop-down menu.
- Click Edit to configure the local AS number and click Save.
For example, 64510.
- Click the Status toggle button to enable BGP.
The Status button must be appear as Enabled.
- (Optional) : Configure route aggregation, enable graceful restart, and enable ECMP.
Graceful restart is only supported if the edge cluster associated with the tier-0 router has only one edge node.
- Click Save.
- Click Add under the Neighbors section to add a BGP neighbor.
- Enter the neighbor IP address.
For example, 192.168.100.254.
- (Optional) : Select a local address from the drop-down menu.
- Enter the remote AS number.
For example, 64511.
- (Optional) : Configure the timers (keep alive time and hold down time) and a password.
- (Optional) : Add an address family and configure route filtering and route maps.
What to do next
Test whether BGP is working properly. See Verify BGP Connections from a Tier-0 Service Router.